Lines Matching refs:nfp
283 ctf_file_t ofp, *nfp;
527 * is successful, we then switch nfp and fp and free the old container.
538 if ((nfp = ctf_bufopen(&cts, NULL, NULL, &err)) == NULL) {
543 (void) ctf_setmodel(nfp, ctf_getmodel(fp));
544 (void) ctf_import(nfp, fp->ctf_parent);
546 nfp->ctf_refcnt = fp->ctf_refcnt;
547 nfp->ctf_flags |= fp->ctf_flags & ~LCTF_DIRTY;
548 nfp->ctf_data.cts_data = NULL; /* force ctf_data_free() on close */
549 nfp->ctf_dthash = fp->ctf_dthash;
550 nfp->ctf_dthashlen = fp->ctf_dthashlen;
551 nfp->ctf_dtdefs = fp->ctf_dtdefs;
552 nfp->ctf_dtstrlen = fp->ctf_dtstrlen;
553 nfp->ctf_dtnextid = fp->ctf_dtnextid;
554 nfp->ctf_dtoldid = fp->ctf_dtnextid - 1;
555 nfp->ctf_specific = fp->ctf_specific;
562 memcpy(fp, nfp, sizeof (ctf_file_t));
563 memcpy(nfp, &ofp, sizeof (ctf_file_t));
575 nfp->ctf_refcnt = 1; /* force nfp to be freed */
576 ctf_close(nfp);