File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,15 @@ KERN_URND
507
507
KERN_VERIEXEC
508
508
KERN_VERSION
509
509
KERN_VNODE
510
+ KVME_FLAG_COW
511
+ KVME_FLAG_GROWS_DOWN
512
+ KVME_FLAG_GROWS_UP
513
+ KVME_FLAG_NEEDS_COPY
514
+ KVME_FLAG_NOCOREDUMP
515
+ KVME_FLAG_PAGEABLE
516
+ KVME_PROT_EXEC
517
+ KVME_PROT_READ
518
+ KVME_PROT_WRITE
510
519
LC_ALL
511
520
LC_ALL_MASK
512
521
LC_COLLATE
@@ -904,6 +913,8 @@ UT_HOSTSIZE
904
913
UT_LINESIZE
905
914
UT_NAMESIZE
906
915
VDSUSP
916
+ VM_PROC
917
+ VM_PROC_MAP
907
918
VSTATUS
908
919
WEXITED
909
920
WNOWAIT
Original file line number Diff line number Diff line change @@ -1735,6 +1735,8 @@ pub const KERN_PROC_NARGV: ::c_int = 2;
1735
1735
pub const KERN_PROC_ENV : :: c_int = 3 ;
1736
1736
pub const KERN_PROC_NENV : :: c_int = 4 ;
1737
1737
pub const KERN_PROC_PATHNAME : :: c_int = 5 ;
1738
+ pub const VM_PROC : :: c_int = 16 ;
1739
+ pub const VM_PROC_MAP : :: c_int = 1 ;
1738
1740
1739
1741
pub const EAI_AGAIN : :: c_int = 2 ;
1740
1742
pub const EAI_BADFLAGS : :: c_int = 3 ;
@@ -1836,6 +1838,18 @@ pub const SF_SNAPSHOT: ::c_ulong = 0x00200000;
1836
1838
pub const SF_LOG : :: c_ulong = 0x00400000 ;
1837
1839
pub const SF_SNAPINVAL : :: c_ulong = 0x00800000 ;
1838
1840
1841
+ // sys/sysctl.h
1842
+ pub const KVME_PROT_READ : :: c_int = 0x00000001 ;
1843
+ pub const KVME_PROT_WRITE : :: c_int = 0x00000002 ;
1844
+ pub const KVME_PROT_EXEC : :: c_int = 0x00000004 ;
1845
+
1846
+ pub const KVME_FLAG_COW : :: c_int = 0x00000001 ;
1847
+ pub const KVME_FLAG_NEEDS_COPY : :: c_int = 0x00000002 ;
1848
+ pub const KVME_FLAG_NOCOREDUMP : :: c_int = 0x000000004 ;
1849
+ pub const KVME_FLAG_PAGEABLE : :: c_int = 0x000000008 ;
1850
+ pub const KVME_FLAG_GROWS_UP : :: c_int = 0x000000010 ;
1851
+ pub const KVME_FLAG_GROWS_DOWN : :: c_int = 0x000000020 ;
1852
+
1839
1853
const_fn ! {
1840
1854
{ const } fn _ALIGN( p: usize ) -> usize {
1841
1855
( p + _ALIGNBYTES) & !_ALIGNBYTES
You can’t perform that action at this time.
0 commit comments