Skip to content

Commit a25c853

Browse files
committed
Auto merge of #2735 - devnexen:openbsd__kve_flags, r=Amanieu
openbsd kinfo_vmentry protection flags
2 parents 9d1d40a + 587230a commit a25c853

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ KERN_TTYCOUNT
412412
KERN_USERMOUNT
413413
KERN_VERSION
414414
KERN_WATCHDOG
415+
KVE_PROT_EXEC
416+
KVE_PROT_NONE
417+
KVE_PROT_READ
418+
KVE_PROT_WRITE
415419
KI_EMULNAMELEN
416420
KI_MAXCOMLEN
417421
KI_MAXLOGNAME

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,11 @@ 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_PROT_NONE: ::c_int = 0x00000000;
1376+
pub const KVE_PROT_READ: ::c_int = 0x00000001;
1377+
pub const KVE_PROT_WRITE: ::c_int = 0x00000002;
1378+
pub const KVE_PROT_EXEC: ::c_int = 0x00000004;
1379+
13751380
pub const CHWFLOW: ::tcflag_t = ::MDMBUF | ::CRTSCTS;
13761381
pub const OLCUC: ::tcflag_t = 0x20;
13771382
pub const ONOCR: ::tcflag_t = 0x40;

0 commit comments

Comments
 (0)