Lines Matching refs:dfd
4961 * dfd fd to dup from
4974 dupfdopen(struct filedesc *fdp, int indx, int dfd, int flags, int error)
4993 if (dfd < 0 || dfd >= fdp->fd_nfiles ||
4994 (wfp = fdp->fd_ofiles[dfd]) == NULL || wfp == fp ||
4995 (fdp->fd_ofileflags[dfd] & UF_RESERVED)) {
5001 myerror = mac_file_check_dup(proc_ucred(p), wfp->f_fglob, dfd);
5010 * For ENODEV simply dup (dfd) to file descriptor
5013 * For ENXIO steal away the file structure from (dfd) and
5014 * store it in (indx). (dfd) is effectively closed by
5037 fdp->fd_ofileflags[indx] = fdp->fd_ofileflags[dfd] |