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
ยงpath_link()
Create a hard link Inputs:
Fd old_fdThe directory relative to which theold_pathisLookupFlags old_flagsFlags to control howold_pathis understoodconst char *old_pathString containing the old file pathu32 old_path_lenLength of theold_pathstringFd new_fdThe directory relative to which thenew_pathisconst char *new_pathString containing the new file pathu32 old_path_lenLength of thenew_pathstring