dupfdopen
error = dupfdopen(td, fdp, td->td_dupfd, flags, error,
int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode,