Function wasi::path_readlink
source · [−]pub unsafe fn path_readlink(
fd: Fd,
path: &str,
buf: *mut u8,
buf_len: Size
) -> Result<Size, Errno>
Expand description
Read the contents of a symbolic link.
Note: This is similar to readlinkat
in POSIX.
Parameters
path
- The path of the symbolic link from which to read.buf
- The buffer to which to write the contents of the symbolic link.
Return
The number of bytes placed in the buffer.