Function cloudabi::fd_dup [] [src]

pub unsafe fn fd_dup(from_: fd, fd_: &mut fd) -> errno

Duplicates a file descriptor.

Parameters

from: The file descriptor that needs to be duplicated.

fd: The new file descriptor.