Function wasmer_wasix::syscalls::wasix::fd_dup2::fd_dup2

source ·
pub fn fd_dup2<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    min_result_fd: Fd,
    cloexec: Bool,
    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