From a205bcd0da0ad8efe12f26cac15945a576c154e7 Mon Sep 17 00:00:00 2001 From: Beau McCartney Date: Sat, 5 Oct 2024 11:19:10 -0600 Subject: [PATCH] add VM_INHERIT constants --- core/sys/darwin/mach_darwin.odin | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/sys/darwin/mach_darwin.odin b/core/sys/darwin/mach_darwin.odin index 18d534773..902ac8b24 100644 --- a/core/sys/darwin/mach_darwin.odin +++ b/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 */