Function readlinkat_raw

Source
pub fn readlinkat_raw<P: Arg, Fd: AsFd, Buf: Buffer<u8>>(
    dirfd: Fd,
    path: P,
    buf: Buf,
) -> Result<Buf::Output>
Available on crate feature fs only.
Expand description

readlinkat(fd, path)—Reads the contents of a symlink, without allocating.

This is the “raw” version which avoids allocating, but which truncates the string if it doesn’t fit in the provided buffer, and doesn’t NUL-terminate the string.

§References