mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
VM_INHERIT_* as an enum
This commit is contained in:
@@ -55,7 +55,7 @@ foreign mach {
|
|||||||
copy : boolean_t,
|
copy : boolean_t,
|
||||||
cur_protection,
|
cur_protection,
|
||||||
max_protection : VM_Prot_Flags,
|
max_protection : VM_Prot_Flags,
|
||||||
inheritance : vm_inherit_t,
|
inheritance : VM_Inherit,
|
||||||
) -> Kern_Return ---
|
) -> Kern_Return ---
|
||||||
|
|
||||||
mach_make_memory_entry :: proc (
|
mach_make_memory_entry :: proc (
|
||||||
@@ -415,7 +415,12 @@ VM_PROT_ALL :: VM_Prot_Flags{.Read, .Write, .Execute}
|
|||||||
* Enumeration of valid values for vm_inherit_t.
|
* Enumeration of valid values for vm_inherit_t.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VM_INHERIT_SHARE : vm_inherit_t : 0 /* share with child */
|
VM_Inherit :: enum vm_inherit_t {
|
||||||
VM_INHERIT_COPY : vm_inherit_t : 1 /* copy into child */
|
Share,
|
||||||
VM_INHERIT_NONE : vm_inherit_t : 2 /* absent from child */
|
Copy,
|
||||||
VM_INHERIT_DONATE_COPY : vm_inherit_t : 3 /* copy and delete */
|
None,
|
||||||
|
Donate_Copy,
|
||||||
|
}
|
||||||
|
|
||||||
|
VM_INHERIT_DEFAULT :: VM_Inherit.Copy
|
||||||
|
VM_INHERIT_LAST_VALID :: VM_Inherit.None
|
||||||
|
|||||||
Reference in New Issue
Block a user