Lines Matching refs:nfp
187 ctf_file_t ofp, *nfp;
364 * is successful, we then switch nfp and fp and free the old container.
375 if ((nfp = ctf_bufopen(&cts, NULL, NULL, &err)) == NULL) {
380 (void) ctf_setmodel(nfp, ctf_getmodel(fp));
381 (void) ctf_import(nfp, fp->ctf_parent);
383 nfp->ctf_refcnt = fp->ctf_refcnt;
384 nfp->ctf_flags |= fp->ctf_flags & ~LCTF_DIRTY;
385 nfp->ctf_data.cts_data = NULL; /* force ctf_data_free() on close */
386 nfp->ctf_dthash = fp->ctf_dthash;
387 nfp->ctf_dthashlen = fp->ctf_dthashlen;
388 nfp->ctf_dtdefs = fp->ctf_dtdefs;
389 nfp->ctf_dtstrlen = fp->ctf_dtstrlen;
390 nfp->ctf_dtnextid = fp->ctf_dtnextid;
391 nfp->ctf_dtoldid = fp->ctf_dtnextid - 1;
392 nfp->ctf_specific = fp->ctf_specific;
399 bcopy(nfp, fp, sizeof (ctf_file_t));
400 bcopy(&ofp, nfp, sizeof (ctf_file_t));
412 nfp->ctf_refcnt = 1; /* force nfp to be freed */
413 ctf_close(nfp);