Lines Matching refs:old
115 int finishdup(proc_t p, struct filedesc *fdp, int old, int new, register_t *retval);
377 int old = uap->fd;
382 if ( (error = fp_lookup(p, old, &fp, 1)) ) {
387 fp_drop(p, old, fp, 1);
391 error = finishdup(p, fdp, old, new, retval);
392 fp_drop(p, old, fp, 1);
419 int old = uap->from, new = uap->to;
426 if ( (error = fp_lookup(p, old, &fp, 1)) ) {
433 fp_drop(p, old, fp, 1);
437 if (old == new) {
438 fp_drop(p, old, fp, 1);
445 fp_drop(p, old, fp, 1);
456 fp_drop(p, old, fp, 1);
465 fp_drop(p, old, fp, 1);
491 error = finishdup(p, fdp, old, new, retval);
492 fp_drop(p, old, fp, 1);
1625 * old The fd to dup
1644 finishdup(proc_t p, struct filedesc *fdp, int old, int new, register_t *retval)
1656 if ((ofp = fdp->fd_ofiles[old]) == NULL ||
1657 (fdp->fd_ofileflags[old] & UF_RESERVED)) {
4179 * closed, reject. Note, check for new == old is necessary as