posix.dup2()

posix.dup2(old_fd, new_fd)

Duplicate file descriptor.