pub fn readlinkat_raw<P: Arg, Fd: AsFd, Buf: Buffer<u8>>( dirfd: Fd, path: P, buf: Buf, ) -> Result<Buf::Output>
fs
readlinkat(fd, path)—Reads the contents of a symlink, without allocating.
readlinkat(fd, path)
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.