nc::call
pub fn dup2(oldfd: i32, newfd: i32) -> Result<(), Errno>
Create a copy of the file descriptor oldfd, using the speficified file descriptor newfd.
oldfd
newfd