pub fn dup2(fd: usize, newfd: usize, buf: &[u8]) -> Result<usize>
Copy and transform a file descriptor