Function wasmer_wasix::syscalls::wasi::path_readlink::path_readlink

source ·
pub fn path_readlink<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    dir_fd: Fd,
    path: WasmPtr<u8, M>,
    path_len: M::Offset,
    buf: WasmPtr<u8, M>,
    buf_len: M::Offset,
    buf_used: WasmPtr<M::Offset, M>,
) -> Errno
Expand description

Read the value of a symlink Inputs:

  • Fd dir_fd The base directory from which path is understood
  • const char *path Pointer to UTF-8 bytes that make up the path to the symlink
  • u32 path_len The number of bytes to read from path
  • u32 buf_len Space available pointed to by buf Outputs:
  • char *buf Pointer to characters containing the path that the symlink points to
  • u32 buf_used The number of bytes written to buf