summaryrefslogtreecommitdiffstats
path: root/vendor/rustix-0.37.6/src/mm/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix-0.37.6/src/mm/mod.rs')
-rw-r--r--vendor/rustix-0.37.6/src/mm/mod.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/rustix-0.37.6/src/mm/mod.rs b/vendor/rustix-0.37.6/src/mm/mod.rs
new file mode 100644
index 000000000..5a439b34b
--- /dev/null
+++ b/vendor/rustix-0.37.6/src/mm/mod.rs
@@ -0,0 +1,15 @@
+//! Memory map operations.
+
+#[cfg(not(target_os = "redox"))]
+mod madvise;
+mod mmap;
+mod msync;
+#[cfg(any(target_os = "android", target_os = "linux"))]
+mod userfaultfd;
+
+#[cfg(not(target_os = "redox"))]
+pub use madvise::{madvise, Advice};
+pub use mmap::*;
+pub use msync::{msync, MsyncFlags};
+#[cfg(any(target_os = "android", target_os = "linux"))]
+pub use userfaultfd::{userfaultfd, UserfaultfdFlags};