[][src]Function wasi::path_readlink

pub unsafe fn path_readlink(
    fd: Fd,
    path: &str,
    buf: *mut u8,
    buf_len: Size
) -> Result<Size>

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

  • bufused - The number of bytes placed in the buffer.