structstd.os.linux.PROT[src]

Values

ConstantNONE[src]

page can not be accessed

Source Code

Source code
pub const NONE = 0x0

ConstantREAD[src]

page can be read

Source Code

Source code
pub const READ = 0x1

ConstantWRITE[src]

page can be written

Source Code

Source code
pub const WRITE = 0x2

ConstantEXEC[src]

page can be executed

Source Code

Source code
pub const EXEC = 0x4

ConstantSEM[src]

page may be used for atomic ops

Source Code

Source code
pub const SEM = switch (native_arch) {
    // TODO: also xtensa
    .mips, .mipsel, .mips64, .mips64el => 0x10,
    else => 0x8,
}

ConstantGROWSDOWN[src]

mprotect flag: extend change to start of growsdown vma

Source Code

Source code
pub const GROWSDOWN = 0x01000000

ConstantGROWSUP[src]

mprotect flag: extend change to end of growsup vma

Source Code

Source code
pub const GROWSUP = 0x02000000

Source Code

Source code
pub const PROT = struct {
    /// page can not be accessed
    pub const NONE = 0x0;
    /// page can be read
    pub const READ = 0x1;
    /// page can be written
    pub const WRITE = 0x2;
    /// page can be executed
    pub const EXEC = 0x4;
    /// page may be used for atomic ops
    pub const SEM = switch (native_arch) {
        // TODO: also xtensa
        .mips, .mipsel, .mips64, .mips64el => 0x10,
        else => 0x8,
    };
    /// mprotect flag: extend change to start of growsdown vma
    pub const GROWSDOWN = 0x01000000;
    /// mprotect flag: extend change to end of growsup vma
    pub const GROWSUP = 0x02000000;
}