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

Function readlinkat

src/fs/at.rs:102–108  ·  view source on GitHub ↗
(
    dirfd: Fd,
    path: P,
    reuse: B,
)

Source from the content-addressed store, hash-verified

100#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
101#[inline]
102pub fn readlinkat<P: path::Arg, Fd: AsFd, B: Into<Vec<u8>>>(
103 dirfd: Fd,
104 path: P,
105 reuse: B,
106) -> io::Result<CString> {
107 path.into_with_c_str(|path| _readlinkat(dirfd.as_fd(), path, reuse.into()))
108}
109
110#[cfg(all(feature = "alloc", not(target_os = "redox")))]
111#[allow(unsafe_code)]

Callers 5

_readlinkatFunction · 0.70
readlinkat_rawFunction · 0.70
test_readlinkatFunction · 0.50
test_linkatFunction · 0.50
test_symlinkatFunction · 0.50

Calls 3

_readlinkatFunction · 0.85
into_with_c_strMethod · 0.80
as_fdMethod · 0.45

Tested by 3

test_readlinkatFunction · 0.40
test_linkatFunction · 0.40
test_symlinkatFunction · 0.40