dup2

Function dup2 

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