Function wasmer_wasix::syscalls::wasi::fd_dup::fd_dup

source ·
pub fn fd_dup<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    ret_fd: WasmPtr<Fd, M>,
) -> Result<Errno, WasiError>
Expand description

§fd_dup()

Duplicates the file handle Inputs:

  • Fd fd File handle to be cloned Outputs:
  • Fd fd The new file handle that is a duplicate of the original