Skip to content

Commit f59a970

Browse files
committed
Auto merge of #2736 - devnexen:obsd_kve_flags_followup, r=Amanieu
following up on openbsd's kinfo_vmentry flags
2 parents 4297ad1 + 5fbf1bd commit f59a970

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,23 @@ KERN_TTYCOUNT
412412
KERN_USERMOUNT
413413
KERN_VERSION
414414
KERN_WATCHDOG
415+
KVE_ADV_NORMAL
416+
KVE_ADV_RANDOM
417+
KVE_ADV_SEQUENTIAL
418+
KVE_ET_CONCEAL
419+
KVE_ET_COPYONWRITE
420+
KVE_ET_FREEMAPPED
421+
KVE_ET_OBJ
422+
KVE_ET_STACK
423+
KVE_ET_SUBMAP
424+
KVE_ET_SYSCALL
425+
KVE_ET_WC
426+
KVE_F_KMEM
427+
KVE_F_STATIC
428+
KVE_INH_COPY
429+
KVE_INH_NONE
430+
KVE_INH_SHARE
431+
KVE_INH_ZERO
415432
KVE_PROT_EXEC
416433
KVE_PROT_NONE
417434
KVE_PROT_READ

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,11 +1372,35 @@ pub const KI_WMESGLEN: ::c_int = 8;
13721372
pub const KI_MAXLOGNAME: ::c_int = 32;
13731373
pub const KI_EMULNAMELEN: ::c_int = 8;
13741374

1375+
pub const KVE_ET_OBJ: ::c_int = 0x00000001;
1376+
pub const KVE_ET_SUBMAP: ::c_int = 0x00000002;
1377+
pub const KVE_ET_COPYONWRITE: ::c_int = 0x00000004;
1378+
pub const KVE_ET_NEEDSCOPY: ::c_int = 0x00000008;
1379+
pub const KVE_ET_HOLE: ::c_int = 0x00000010;
1380+
pub const KVE_ET_NOFAULT: ::c_int = 0x00000020;
1381+
pub const KVE_ET_STACK: ::c_int = 0x00000040;
1382+
pub const KVE_ET_WC: ::c_int = 0x000000080;
1383+
pub const KVE_ET_CONCEAL: ::c_int = 0x000000100;
1384+
pub const KVE_ET_SYSCALL: ::c_int = 0x000000200;
1385+
pub const KVE_ET_FREEMAPPED: ::c_int = 0x000000800;
1386+
13751387
pub const KVE_PROT_NONE: ::c_int = 0x00000000;
13761388
pub const KVE_PROT_READ: ::c_int = 0x00000001;
13771389
pub const KVE_PROT_WRITE: ::c_int = 0x00000002;
13781390
pub const KVE_PROT_EXEC: ::c_int = 0x00000004;
13791391

1392+
pub const KVE_ADV_NORMAL: ::c_int = 0x00000000;
1393+
pub const KVE_ADV_RANDOM: ::c_int = 0x00000001;
1394+
pub const KVE_ADV_SEQUENTIAL: ::c_int = 0x00000002;
1395+
1396+
pub const KVE_INH_SHARE: ::c_int = 0x00000000;
1397+
pub const KVE_INH_COPY: ::c_int = 0x00000010;
1398+
pub const KVE_INH_NONE: ::c_int = 0x00000020;
1399+
pub const KVE_INH_ZERO: ::c_int = 0x00000030;
1400+
1401+
pub const KVE_F_STATIC: ::c_int = 0x1;
1402+
pub const KVE_F_KMEM: ::c_int = 0x2;
1403+
13801404
pub const CHWFLOW: ::tcflag_t = ::MDMBUF | ::CRTSCTS;
13811405
pub const OLCUC: ::tcflag_t = 0x20;
13821406
pub const ONOCR: ::tcflag_t = 0x40;

0 commit comments

Comments
 (0)