MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / open

Function open

src/shm.rs:80–82  ·  view source on GitHub ↗
(name: P, flags: shm::OFlags, mode: Mode)

Source from the content-addressed store, hash-verified

78#[doc(alias = "shm_open")]
79#[inline]
80pub fn open<P: path::Arg>(name: P, flags: shm::OFlags, mode: Mode) -> io::Result<OwnedFd> {
81 name.into_with_c_str(|name| backend::shm::syscalls::shm_open(name, flags, mode))
82}
83
84/// `shm_unlink(name)`—Unlinks a shared memory object.
85///

Callers 15

test_compilationFunction · 0.70
test_sliceFunction · 0.70
test_slice_uninitFunction · 0.70
test_spare_capacityFunction · 0.70
openptFunction · 0.70
test_dupFunction · 0.50
test_close_fileFunction · 0.50
test_try_closeFunction · 0.50
test_ioctlsFunction · 0.50
test_int_setterFunction · 0.50
pgrp_nottyFunction · 0.50
sid_nottyFunction · 0.50

Calls 2

into_with_c_strMethod · 0.80
shm_openFunction · 0.50

Tested by 15

test_compilationFunction · 0.56
test_sliceFunction · 0.56
test_slice_uninitFunction · 0.56
test_spare_capacityFunction · 0.56
test_dupFunction · 0.40
test_close_fileFunction · 0.40
test_try_closeFunction · 0.40
test_ioctlsFunction · 0.40
test_int_setterFunction · 0.40
pgrp_nottyFunction · 0.40
sid_nottyFunction · 0.40
test_ttyname_okFunction · 0.40