Function shm_open
pub fn shm_open<P>(
name: P,
flags: ShmOFlags,
mode: Mode,
) -> Result<OwnedFd, Errno> ⓘwhere
P: Arg,
Available on crate feature
dep_rustix
only.Expand description
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.