Lines Matching refs:nfp
574 struct fileproc *fp, *nfp;
624 ((error = fp_lookup(p, new, &nfp, 1)) == 0)) {
626 if (FP_ISGUARDED(nfp, GUARD_CLOSE)) {
628 new, nfp, kGUARD_EXC_CLOSE);
629 (void) fp_drop(p, new, nfp, 1);
633 (void)close_internal_locked(p, new, nfp, FD_DUP2RESV);
2560 struct fileproc *nfp;
2587 nfp = fileproc_alloc_init(NULL);
2591 if (nfp == NULL) {
2597 nfp->f_fglob = ofp->f_fglob;
2609 procfdtbl_releasefd(p, new, nfp);
3793 * nfp Pointer to the newfp
3801 fp_tryswap(proc_t p, int fd, struct fileproc *nfp)
3819 /* Copy the contents of *fp, preserving the "type" of *nfp */
3821 nfp->f_flags = (nfp->f_flags & FP_TYPEMASK) |
3823 nfp->f_iocount = fp->f_iocount;
3824 nfp->f_fglob = fp->f_fglob;
3825 nfp->f_waddr = fp->f_waddr;
3827 p->p_fd->fd_ofiles[fd] = nfp;
3828 (void) fp_drop(p, fd, nfp, 1);