Name Description Size
mod.rs 47
syscalls.rs libc syscalls supporting `rustix::mm`. 6975
types.rs /bitflags/#externally-defined-flags> const _ = !0; } } bitflags! { /// `PROT_*` flags for use with [`mprotect`]. /// /// For `PROT_NONE`, use `MprotectFlags::empty()`. /// /// [`mprotect`]: crate::mm::mprotect #[repr(transparent)] #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] pub struct MprotectFlags: u32 { /// `PROT_READ` const READ = bitcast!(c::PROT_READ); /// `PROT_WRITE` const WRITE = bitcast!(c::PROT_WRITE); /// `PROT_EXEC` const EXEC = bitcast!(c::PROT_EXEC); /// `PROT_GROWSUP` #[cfg(linux_kernel)] const GROWSUP = bitcast!(c::PROT_GROWSUP); /// `PROT_GROWSDOWN` #[cfg(linux_kernel)] const GROWSDOWN = bitcast!(c::PROT_GROWSDOWN); /// `PROT_SEM` #[cfg(linux_kernel)] const SEM = linux_raw_sys::general::PROT_SEM; /// `PROT_BTI` #[cfg(all(linux_kernel, target_arch = "aarch64"))] const BTI = linux_raw_sys::general::PROT_BTI; /// `PROT_MTE` #[cfg(all(linux_kernel, target_arch = "aarch64"))] const MTE = linux_raw_sys::general::PROT_MTE; /// `PROT_SAO` #[cfg(all(linux_kernel, any(target_arch = "powerpc", target_arch = "powerpc64")))] const SAO = linux_raw_sys::general::PROT_SAO; /// `PROT_ADI` #[cfg(all(linux_kernel, any(target_arch = "sparc", target_arch = "sparc64")))] const ADI = linux_raw_sys::general::PROT_ADI; /// <https://docs.rs/bitflags/ 15803