Browse Source

add VM_INHERIT constants

Beau McCartney 11 months ago
parent
commit
a205bcd0da
1 changed files with 13 additions and 0 deletions
  1. 13 0
      core/sys/darwin/mach_darwin.odin

+ 13 - 0
core/sys/darwin/mach_darwin.odin

@@ -390,3 +390,16 @@ VM_PROT_DEFAULT :: VM_PROT_READ | VM_PROT_WRITE
  */
 
 VM_PROT_ALL     :: VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE
+
+
+// NOTE(beau): vm_inherit_t constants and type, ported directly
+vm_inherit_t           :: c.uint
+
+/*
+ *	Enumeration of valid values for vm_inherit_t.
+ */
+
+VM_INHERIT_SHARE       : vm_inherit_t : 0      /* share with child */
+VM_INHERIT_COPY        : vm_inherit_t : 1      /* copy into child */
+VM_INHERIT_NONE        : vm_inherit_t : 2      /* absent from child */
+VM_INHERIT_DONATE_COPY : vm_inherit_t : 3      /* copy and delete */