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

Function getcwd

src/process/chdir.rs:58–60  ·  view source on GitHub ↗
(reuse: B)

Source from the content-addressed store, hash-verified

56#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
57#[inline]
58pub fn getcwd<B: Into<Vec<u8>>>(reuse: B) -> io::Result<CString> {
59 _getcwd(reuse.into())
60}
61
62#[cfg(all(feature = "alloc", feature = "fs"))]
63#[allow(unsafe_code)]

Callers 3

_getcwdFunction · 0.70
test_special_fdsFunction · 0.50

Calls 1

_getcwdFunction · 0.85

Tested by 2

test_special_fdsFunction · 0.40