Function base::sys::unix::descriptor::clone_fd

source ·
fn clone_fd(fd: RawFd) -> Result<SafeDescriptor>
Expand description

Clones fd, returning a new file descriptor that refers to the same open file as fd. The cloned fd will have the FD_CLOEXEC flag set but will not share any other file descriptor flags with fd.