[][src]Function nc::dup2

pub fn dup2(oldfd: i32, newfd: i32) -> Result<(), Errno>

Create a copy of the file descriptor oldfd, using the speficified file descriptor newfd.