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

Create a symlink Inputs:

  • const char *old_path Array of UTF-8 bytes representing the source path
  • u32 old_path_len The number of bytes to read from old_path
  • Fd fd The base directory from which the paths are understood
  • const char *new_path Array of UTF-8 bytes representing the target path
  • u32 new_path_len The number of bytes to read from new_path