Function rustix::fs::cwd

source ·
pub const fn cwd() -> BorrowedFd<'static>
Expand description

AT_FDCWD—Returns a handle representing the current working directory.

This returns a file descriptor which refers to the process current directory which can be used as the directory argument in *at functions such as openat.

References