pub const PROT = switch (native_os)
Basic memory protection flags
1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862
pub const PROT = switch (native_os) { .linux => linux.PROT, .emscripten => emscripten.PROT, // https://github.com/SerenityOS/serenity/blob/6d59d4d3d9e76e39112842ec487840828f1c9bfe/Kernel/API/POSIX/sys/mman.h#L28-L31 .openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd, .windows, .serenity => packed struct(u32) { READ: bool = false, WRITE: bool = false, EXEC: bool = false, _: u29 = 0, }, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => vm_prot_t, else => void, }
Basic memory protection flags