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>,
) -> Result<Errno, WasiError>Expand description
ยงpath_readlink()
Read the value of a symlink Inputs:
Fd dir_fdThe base directory from whichpathis understoodconst char *pathPointer to UTF-8 bytes that make up the path to the symlinku32 path_lenThe number of bytes to read frompathu32 buf_lenSpace available pointed to bybufOutputs:char *bufPointer to characters containing the path that the symlink points tou32 buf_usedThe number of bytes written tobuf