File tree Expand file tree Collapse file tree 9 files changed +41
-0
lines changed
Expand file tree Collapse file tree 9 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -1545,6 +1545,10 @@ UTUN_OPT_IFNAME
15451545VDISCARD
15461546VDSUSP
15471547VLNEXT
1548+ VM_INHERIT_COPY
1549+ VM_INHERIT_DONATE_COPY
1550+ VM_INHERIT_NONE
1551+ VM_INHERIT_SHARE
15481552VM_LOADAVG
15491553VM_MACHFACTOR
15501554VM_MAKE_TAG
Original file line number Diff line number Diff line change @@ -367,6 +367,10 @@ IFF_SMART
367367IFF_STATICARP
368368IFF_UP
369369IMAXBEL
370+ INHERIT_COPY
371+ INHERIT_NONE
372+ INHERIT_SHARE
373+ INHERIT_ZERO
370374INIT_PROCESS
371375IOV_MAX
372376IPC_CREAT
Original file line number Diff line number Diff line change @@ -516,6 +516,10 @@ IFF_SIMPLEX
516516IFF_STATICARP
517517IFF_UP
518518IMAXBEL
519+ INHERIT_COPY
520+ INHERIT_NONE
521+ INHERIT_SHARE
522+ INHERIT_ZERO
519523INIT_PROCESS
520524IOV_MAX
521525IPC_CREAT
@@ -1705,6 +1709,10 @@ VDISCARD
17051709VDSUSP
17061710VERASE2
17071711VLNEXT
1712+ VM_INHERIT_COPY
1713+ VM_INHERIT_DONATE_COPY
1714+ VM_INHERIT_NONE
1715+ VM_INHERIT_SHARE
17081716VM_TOTAL
17091717VREPRINT
17101718VSTATUS
Original file line number Diff line number Diff line change @@ -635,6 +635,10 @@ MAP_ALIGNMENT_MASK
635635MAP_ALIGNMENT_SHIFT
636636MAP_FILE
637637MAP_HASSEMAPHORE
638+ MAP_INHERIT_COPY
639+ MAP_INHERIT_NONE
640+ MAP_INHERIT_SHARE
641+ MAP_INHERIT_ZERO
638642MAP_NORESERVE
639643MAP_REMAPDUP
640644MAP_RENAME
Original file line number Diff line number Diff line change @@ -493,6 +493,10 @@ MAP_CONCEAL
493493MAP_COPY
494494MAP_FILE
495495MAP_HASSEMAPHORE
496+ MAP_INHERIT_COPY
497+ MAP_INHERIT_NONE
498+ MAP_INHERIT_SHARE
499+ MAP_INHERIT_ZERO
496500MAP_NOEXTEND
497501MAP_NORESERVE
498502MAP_RENAME
Original file line number Diff line number Diff line change @@ -3308,6 +3308,10 @@ pub const VM_PROT_NONE: crate::vm_prot_t = 0x00;
33083308pub const VM_PROT_READ : crate :: vm_prot_t = 0x01 ;
33093309pub const VM_PROT_WRITE : crate :: vm_prot_t = 0x02 ;
33103310pub const VM_PROT_EXECUTE : crate :: vm_prot_t = 0x04 ;
3311+ pub const VM_INHERIT_SHARE : c_int = 0 ;
3312+ pub const VM_INHERIT_COPY : c_int = 1 ;
3313+ pub const VM_INHERIT_NONE : c_int = 2 ;
3314+ pub const VM_INHERIT_DONATE_COPY : c_int = 3 ;
33113315pub const MEMORY_OBJECT_NULL : crate :: memory_object_t = 0 ;
33123316pub const HW_MACHINE : c_int = 1 ;
33133317pub const HW_MODEL : c_int = 2 ;
Original file line number Diff line number Diff line change @@ -576,6 +576,12 @@ pub const MAP_ANONYMOUS: c_int = MAP_ANON;
576576
577577pub const MAP_FAILED : * mut c_void = !0 as * mut c_void ;
578578
579+ // minherit syscall inherit values
580+ pub const INHERIT_SHARE : c_int = 0 ;
581+ pub const INHERIT_COPY : c_int = 1 ;
582+ pub const INHERIT_NONE : c_int = 2 ;
583+ pub const INHERIT_ZERO : c_int = 3 ;
584+
579585pub const MCL_CURRENT : c_int = 0x0001 ;
580586pub const MCL_FUTURE : c_int = 0x0002 ;
581587
Original file line number Diff line number Diff line change @@ -658,6 +658,7 @@ extern "C" {
658658 ) ]
659659 pub fn telldir ( dirp : * mut crate :: DIR ) -> c_long ;
660660 pub fn madvise ( addr : * mut c_void , len : size_t , advice : c_int ) -> c_int ;
661+ pub fn minherit ( addr : * mut c_void , len : size_t , inherit : c_int ) -> c_int ;
661662
662663 #[ cfg_attr(
663664 all( target_os = "macos" , target_arch = "x86" ) ,
Original file line number Diff line number Diff line change @@ -209,6 +209,12 @@ pub const MAP_ANONYMOUS: c_int = MAP_ANON;
209209
210210pub const MAP_FAILED : * mut c_void = !0 as * mut c_void ;
211211
212+ // minherit syscall inherit values
213+ pub const MAP_INHERIT_SHARE : c_int = 0 ;
214+ pub const MAP_INHERIT_COPY : c_int = 1 ;
215+ pub const MAP_INHERIT_NONE : c_int = 2 ;
216+ pub const MAP_INHERIT_ZERO : c_int = 3 ;
217+
212218pub const IPC_CREAT : c_int = 0o001000 ;
213219pub const IPC_EXCL : c_int = 0o002000 ;
214220pub const IPC_NOWAIT : c_int = 0o004000 ;
You can’t perform that action at this time.
0 commit comments