Function posish::io::dup[][src]

pub fn dup<Fd: AsFd>(fd: &Fd) -> Result<OwnedFd>
Expand description

dup(fd)

Note that this does not set the O_CLOEXEC flag. To do a dup that does set O_CLOEXEC, use fcntl_dupfd_cloexec.