Function rustix::backend::io::syscalls::dup2

source ยท
pub(crate) fn dup2(fd: BorrowedFd<'_>, new: &mut OwnedFd) -> Result<()>