diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-13 09:32:21 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-03-13 09:42:24 +0100 |
| commit | a60292dfb3c09fe08d84f2b737fd25f751afa64d (patch) | |
| tree | 823968aabbf5f82034863b8de1cf71e2fedd8977 /lib/std/macho.zig | |
| parent | 0bc96354909c0828b7fd36ce0be5705b7b21d63c (diff) | |
| download | zig-a60292dfb3c09fe08d84f2b737fd25f751afa64d.tar.gz zig-a60292dfb3c09fe08d84f2b737fd25f751afa64d.zip | |
macos: add more mach primitives
Diffstat (limited to 'lib/std/macho.zig')
| -rw-r--r-- | lib/std/macho.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index d0cd238fa3..a6017ff8b4 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -1468,6 +1468,13 @@ pub const VM_PROT_WRITE: vm_prot_t = 0x2; /// VM execute permission pub const VM_PROT_EXECUTE: vm_prot_t = 0x4; +/// When a caller finds that they cannot obtain write permission on a +/// mapped entry, the following flag can be used. The entry will be +/// made "needs copy" effectively copying the object (using COW), +/// and write permission will be added to the maximum protections for +/// the associated entry. +pub const VM_PROT_COPY: vm_prot_t = 0x10; + // The following are used to encode rebasing information pub const REBASE_TYPE_POINTER: u8 = 1; pub const REBASE_TYPE_TEXT_ABSOLUTE32: u8 = 2; |
