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