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_fd
The directory relative to which theold_path
isLookupFlags old_flags
Flags to control howold_path
is understoodconst char *old_path
String containing the old file pathu32 old_path_len
Length of theold_path
stringFd new_fd
The directory relative to which thenew_path
isconst char *new_path
String containing the new file pathu32 old_path_len
Length of thenew_path
string