Function wasmer_wasix::syscalls::wasi::path_symlink::path_symlink
source · pub fn path_symlink<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
old_path: WasmPtr<u8, M>,
old_path_len: M::Offset,
fd: Fd,
new_path: WasmPtr<u8, M>,
new_path_len: M::Offset,
) -> Result<Errno, WasiError>
Expand description
§path_symlink()
Create a symlink Inputs:
const char *old_path
Array of UTF-8 bytes representing the source pathu32 old_path_len
The number of bytes to read fromold_path
Fd fd
The base directory from which the paths are understoodconst char *new_path
Array of UTF-8 bytes representing the target pathu32 new_path_len
The number of bytes to read fromnew_path