1 //! Memory map operations. 2 3 #[cfg(not(target_os = "redox"))] 4 mod madvise; 5 mod mmap; 6 mod msync; 7 #[cfg(any(target_os = "android", target_os = "linux"))] 8 mod userfaultfd; 9 10 #[cfg(not(target_os = "redox"))] 11 pub use madvise::{madvise, Advice}; 12 pub use mmap::{ 13 mlock, mmap, mmap_anonymous, mprotect, munlock, munmap, MapFlags, MprotectFlags, ProtFlags, 14 }; 15 #[cfg(any(target_os = "android", target_os = "linux"))] 16 pub use mmap::{mlock_with, MlockFlags}; 17 #[cfg(any(linux_raw, all(libc, target_os = "linux")))] 18 pub use mmap::{mremap, mremap_fixed, MremapFlags}; 19 pub use msync::{msync, MsyncFlags}; 20 #[cfg(any(target_os = "android", target_os = "linux"))] 21 pub use userfaultfd::{userfaultfd, UserfaultfdFlags}; 22