Lines Matching defs:dfd
4154 * dfd fd to dup from
4167 dupfdopen(struct filedesc *fdp, int indx, int dfd, int mode, int error)
4186 if (dfd < 0 || dfd >= fdp->fd_nfiles ||
4187 (wfp = fdp->fd_ofiles[dfd]) == NULL || wfp == fp ||
4188 (fdp->fd_ofileflags[dfd] & UF_RESERVED)) {
4194 myerror = mac_file_check_dup(proc_ucred(p), wfp->f_fglob, dfd);
4203 * For ENODEV simply dup (dfd) to file descriptor
4206 * For ENXIO steal away the file structure from (dfd) and
4207 * store it in (indx). (dfd) is effectively closed by
4230 fdp->fd_ofileflags[indx] = fdp->fd_ofileflags[dfd];