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

Function accessat

src/fs/at.rs:382–389  ·  view source on GitHub ↗
(
    dirfd: Fd,
    path: P,
    access: Access,
    flags: AtFlags,
)

Source from the content-addressed store, hash-verified

380#[inline]
381#[doc(alias = "faccessat")]
382pub fn accessat<P: path::Arg, Fd: AsFd>(
383 dirfd: Fd,
384 path: P,
385 access: Access,
386 flags: AtFlags,
387) -> io::Result<()> {
388 path.into_with_c_str(|path| backend::fs::syscalls::accessat(dirfd.as_fd(), path, access, flags))
389}
390
391/// `utimensat(dirfd, path, times, flags)`—Sets file or directory timestamps.
392///

Callers 5

test_mkdiratFunction · 0.50
test_mkdirat_with_o_pathFunction · 0.50
test_mknodatFunction · 0.50
test_renameatFunction · 0.50
test_fileFunction · 0.50

Calls 2

into_with_c_strMethod · 0.80
as_fdMethod · 0.45

Tested by 5

test_mkdiratFunction · 0.40
test_mkdirat_with_o_pathFunction · 0.40
test_mknodatFunction · 0.40
test_renameatFunction · 0.40
test_fileFunction · 0.40