fd_dupopen
error = fd_dupopen(dupfd, dupfd_move, flags, &indx);
int fd_dupopen(int, bool, int, int *);