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

Function openat

src/fs/at.rs:78–87  ·  view source on GitHub ↗
(
    dirfd: Fd,
    path: P,
    oflags: OFlags,
    create_mode: Mode,
)

Source from the content-addressed store, hash-verified

76#[cfg(not(target_os = "redox"))]
77#[inline]
78pub fn openat<P: path::Arg, Fd: AsFd>(
79 dirfd: Fd,
80 path: P,
81 oflags: OFlags,
82 create_mode: Mode,
83) -> io::Result<OwnedFd> {
84 path.into_with_c_str(|path| {
85 backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode)
86 })
87}
88
89/// `readlinkat(fd, path)`—Reads the contents of a symlink.
90///

Callers 15

test_readwrite_pvFunction · 0.50
test_readwrite_pFunction · 0.50
test_readwrite_p_uninitFunction · 0.50
test_readwrite_vFunction · 0.50
test_readwriteFunction · 0.50
test_readwrite_uninitFunction · 0.50
test_pwritev2Function · 0.50
test_p_offsetsFunction · 0.50
test_ownedFunction · 0.50
openpty_basicFunction · 0.50
test_mmapFunction · 0.50

Calls 2

into_with_c_strMethod · 0.80
as_fdMethod · 0.45

Tested by 15

test_readwrite_pvFunction · 0.40
test_readwrite_pFunction · 0.40
test_readwrite_p_uninitFunction · 0.40
test_readwrite_vFunction · 0.40
test_readwriteFunction · 0.40
test_readwrite_uninitFunction · 0.40
test_pwritev2Function · 0.40
test_p_offsetsFunction · 0.40
test_ownedFunction · 0.40
openpty_basicFunction · 0.40
test_mmapFunction · 0.40