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

Function fchdir

src/backend/libc/process/syscalls.rs:89–91  ·  view source on GitHub ↗
(dirfd: BorrowedFd<'_>)

Source from the content-addressed store, hash-verified

87
88#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
89pub(crate) fn fchdir(dirfd: BorrowedFd<'_>) -> io::Result<()> {
90 unsafe { ret(c::fchdir(borrowed_fd(dirfd))) }
91}
92
93#[cfg(feature = "fs")]
94#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]

Callers 2

utimensatFunction · 0.50
chdirMethod · 0.50

Calls 2

borrowed_fdFunction · 0.85
retFunction · 0.50

Tested by

no test coverage detected