usesuper::shm; pubusecrate::backend::fs::types::Mode; pubusecrate::backend::shm::types::ShmOFlags as OFlags;
/// `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 [`shm::OFlags::RDONLY`] and [`shm::OFlags::RDWR`] should be /// passed. The file descriptor will be opened with `FD_CLOEXEC` set. /// /// # References /// - [POSIX] /// - [Linux] /// /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shm_open.html /// [Linux]: https://man7.org/linux/man-pages/man3/shm_open.3.html #[doc(alias = "shm_open")] #[inline] pubfn open<P: path::Arg>(name: P, flags: shm::OFlags, mode: Mode) -> io::Result<OwnedFd> {
name.into_with_c_str(|name| backend::shm::syscalls::shm_open(name, flags, mode))
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.