Function wasmer_wasix::syscalls::wasi::path_link::path_link

source ·
pub fn path_link<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    old_fd: Fd,
    old_flags: LookupFlags,
    old_path: WasmPtr<u8, M>,
    old_path_len: M::Offset,
    new_fd: Fd,
    new_path: WasmPtr<u8, M>,
    new_path_len: M::Offset,
) -> Result<Errno, WasiError>
Expand description

Create a hard link Inputs:

  • Fd old_fd The directory relative to which the old_path is
  • LookupFlags old_flags Flags to control how old_path is understood
  • const char *old_path String containing the old file path
  • u32 old_path_len Length of the old_path string
  • Fd new_fd The directory relative to which the new_path is
  • const char *new_path String containing the new file path
  • u32 old_path_len Length of the new_path string