Skip to content

Commit

Permalink
following up on openbsd's kinfo_vmentry flags
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 31, 2022
1 parent 4297ad1 commit 5fbf1bd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,23 @@ KERN_TTYCOUNT
KERN_USERMOUNT
KERN_VERSION
KERN_WATCHDOG
KVE_ADV_NORMAL
KVE_ADV_RANDOM
KVE_ADV_SEQUENTIAL
KVE_ET_CONCEAL
KVE_ET_COPYONWRITE
KVE_ET_FREEMAPPED
KVE_ET_OBJ
KVE_ET_STACK
KVE_ET_SUBMAP
KVE_ET_SYSCALL
KVE_ET_WC
KVE_F_KMEM
KVE_F_STATIC
KVE_INH_COPY
KVE_INH_NONE
KVE_INH_SHARE
KVE_INH_ZERO
KVE_PROT_EXEC
KVE_PROT_NONE
KVE_PROT_READ
Expand Down
24 changes: 24 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,11 +1372,35 @@ pub const KI_WMESGLEN: ::c_int = 8;
pub const KI_MAXLOGNAME: ::c_int = 32;
pub const KI_EMULNAMELEN: ::c_int = 8;

pub const KVE_ET_OBJ: ::c_int = 0x00000001;
pub const KVE_ET_SUBMAP: ::c_int = 0x00000002;
pub const KVE_ET_COPYONWRITE: ::c_int = 0x00000004;
pub const KVE_ET_NEEDSCOPY: ::c_int = 0x00000008;
pub const KVE_ET_HOLE: ::c_int = 0x00000010;
pub const KVE_ET_NOFAULT: ::c_int = 0x00000020;
pub const KVE_ET_STACK: ::c_int = 0x00000040;
pub const KVE_ET_WC: ::c_int = 0x000000080;
pub const KVE_ET_CONCEAL: ::c_int = 0x000000100;
pub const KVE_ET_SYSCALL: ::c_int = 0x000000200;
pub const KVE_ET_FREEMAPPED: ::c_int = 0x000000800;

pub const KVE_PROT_NONE: ::c_int = 0x00000000;
pub const KVE_PROT_READ: ::c_int = 0x00000001;
pub const KVE_PROT_WRITE: ::c_int = 0x00000002;
pub const KVE_PROT_EXEC: ::c_int = 0x00000004;

pub const KVE_ADV_NORMAL: ::c_int = 0x00000000;
pub const KVE_ADV_RANDOM: ::c_int = 0x00000001;
pub const KVE_ADV_SEQUENTIAL: ::c_int = 0x00000002;

pub const KVE_INH_SHARE: ::c_int = 0x00000000;
pub const KVE_INH_COPY: ::c_int = 0x00000010;
pub const KVE_INH_NONE: ::c_int = 0x00000020;
pub const KVE_INH_ZERO: ::c_int = 0x00000030;

pub const KVE_F_STATIC: ::c_int = 0x1;
pub const KVE_F_KMEM: ::c_int = 0x2;

pub const CHWFLOW: ::tcflag_t = ::MDMBUF | ::CRTSCTS;
pub const OLCUC: ::tcflag_t = 0x20;
pub const ONOCR: ::tcflag_t = 0x40;
Expand Down

0 comments on commit 5fbf1bd

Please sign in to comment.