fdcopy
tmp = fdcopy(p->p_fd, p);
fd = fdcopy(p1->p_fd, p2);
struct filedesc *fdcopy(struct filedesc *fdp, struct proc *p1);