aboutsummaryrefslogtreecommitdiff
path: root/vendor/rustix/src/shm.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rustix/src/shm.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/rustix/src/shm.rs')
-rw-r--r--vendor/rustix/src/shm.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/rustix/src/shm.rs b/vendor/rustix/src/shm.rs
deleted file mode 100644
index 450b6fc..0000000
--- a/vendor/rustix/src/shm.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-//! POSIX shared memory
-
-use crate::fd::OwnedFd;
-use crate::{backend, io, path};
-
-pub use crate::backend::fs::types::Mode;
-pub use crate::backend::shm::types::ShmOFlags;
-
-/// `shm_open(name, oflags, mode)`—Opens a shared memory object.
-///
-/// For portability, `name` should begin with a slash, contain no other
-/// slashes, and be no longer than an implementation-defined limit (255 on
-/// Linux).
-///
-/// Exactly one of [`ShmOFlags::RDONLY`] and [`ShmOFlags::RDWR`] should be
-/// passed. The file descriptor will be opened with `FD_CLOEXEC` set.
-///
-/// # References
-/// - [POSIX]
-/// - [Linux]
-///
-/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html
-/// [Linux]: https://man7.org/linux/man-pages/man3/shm_open.3.html
-#[inline]
-pub fn shm_open<P: path::Arg>(name: P, flags: ShmOFlags, mode: Mode) -> io::Result<OwnedFd> {
- name.into_with_c_str(|name| backend::shm::syscalls::shm_open(name, flags, mode))
-}
-
-/// `shm_unlink(name)`—Unlinks a shared memory object.
-///
-/// # References
-/// - [POSIX]
-/// - [Linux]
-///
-/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_unlink.html
-/// [Linux]: https://man7.org/linux/man-pages/man3/shm_unlink.3.html
-#[inline]
-pub fn shm_unlink<P: path::Arg>(name: P) -> io::Result<()> {
- name.into_with_c_str(backend::shm::syscalls::shm_unlink)
-}