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
§path_readlink()
Read the value of a symlink Inputs:
Fd dir_fd
The base directory from whichpath
is understoodconst char *path
Pointer to UTF-8 bytes that make up the path to the symlinku32 path_len
The number of bytes to read frompath
u32 buf_len
Space available pointed to bybuf
Outputs:char *buf
Pointer to characters containing the path that the symlink points tou32 buf_used
The number of bytes written tobuf