summaryrefslogtreecommitdiffstats
path: root/vendor/rustix-0.37.6/src/fs/memfd_create.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix-0.37.6/src/fs/memfd_create.rs')
-rw-r--r--vendor/rustix-0.37.6/src/fs/memfd_create.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/rustix-0.37.6/src/fs/memfd_create.rs b/vendor/rustix-0.37.6/src/fs/memfd_create.rs
deleted file mode 100644
index dad964777..000000000
--- a/vendor/rustix-0.37.6/src/fs/memfd_create.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-use crate::fd::OwnedFd;
-use crate::{backend, io, path};
-
-pub use backend::fs::types::MemfdFlags;
-
-/// `memfd_create(path, flags)`
-///
-/// # References
-/// - [Linux]
-///
-/// [Linux]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
-#[inline]
-pub fn memfd_create<P: path::Arg>(path: P, flags: MemfdFlags) -> io::Result<OwnedFd> {
- path.into_with_c_str(|path| backend::fs::syscalls::memfd_create(path, flags))
-}