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

Function readlink

src/fs/abs.rs:114–116  ·  view source on GitHub ↗
(path: P, reuse: B)

Source from the content-addressed store, hash-verified

112#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
113#[inline]
114pub fn readlink<P: path::Arg, B: Into<Vec<u8>>>(path: P, reuse: B) -> io::Result<CString> {
115 path.into_with_c_str(|path| _readlink(path, reuse.into()))
116}
117
118#[cfg(feature = "alloc")]
119fn _readlink(path: &CStr, mut buffer: Vec<u8>) -> io::Result<CString> {

Callers 4

_readlinkFunction · 0.70
test_readlinkFunction · 0.50
test_linkFunction · 0.50
test_symlinkFunction · 0.50

Calls 2

_readlinkFunction · 0.85
into_with_c_strMethod · 0.80

Tested by 3

test_readlinkFunction · 0.40
test_linkFunction · 0.40
test_symlinkFunction · 0.40