nix::fcntl

Function readlinkat

source
pub fn readlinkat<P: ?Sized + NixPath>(
    dirfd: Option<RawFd>,
    path: &P,
) -> Result<OsString>
Expand description

Read value of a symbolic link.

Equivalent to readlink except where path specifies a relative path. In that case, interpret path relative to open file specified by dirfd.

ยงSee Also