Lines Matching defs:pnp
124 struct pathname *pnp,
130 return (lookuppnatcred(pnp, rpnp, followlink, dirvpp, compvpp, NULL,
139 struct pathname *pnp, /* pathname to lookup */
151 if (pnp->pn_pathlen == 0)
160 if (pnp->pn_path[0] == '/') {
171 if (pnp->pn_path[0] == '/') {
173 pnp->pn_path++;
174 pnp->pn_pathlen--;
175 } while (pnp->pn_path[0] == '/');
178 return (lookuppnvp(pnp, rpnp, followlink, dirvpp,
183 lookuppnat(struct pathname *pnp, struct pathname *rpnp,
187 return (lookuppnatcred(pnp, rpnp, followlink, dirvpp, compvpp, startvp,
196 * Starting at current directory, translate pathname pnp to end.
197 * Leave pathname of final component in pnp, return the vnode
212 struct pathname *pnp, /* pathname to lookup */
248 audit_anchorpath(pnp, vp == rootvp);
255 if (pn_fixslash(pnp)) {
278 if (error = pn_getcomponent(pnp, component)) {
377 error = VOP_LOOKUP(vp, component, &cvp, pnp, lookup_flags,
395 error = VOP_LOOKUP(vp, component, &cvp, pnp, lookup_flags,
406 if (pn_pathleft(pnp) || dirvpp == NULL || error != ENOENT)
409 if (error = audit_savepath(pnp, vp, vp, error, cr))
413 pn_setlast(pnp);
418 if (must_be_directory && (error = pn_addslash(pnp)) != 0)
453 if (cvp->v_type == VLNK && ((flags & FOLLOW) || pn_pathleft(pnp))) {
477 audit_symlink(pnp, &linkpath);
481 error = pn_insert(pnp, &linkpath, strlen(component));
487 if (pnp->pn_pathlen == 0) {
491 if (pnp->pn_path[0] == '/') {
493 pnp->pn_path++;
494 pnp->pn_pathlen--;
495 } while (pnp->pn_path[0] == '/');
501 audit_anchorpath(pnp, vp == rootvp);
502 if (pn_fixslash(pnp)) {
558 if (pn_pathleft(pnp) == 0) {
574 (void) audit_savepath(pnp, cvp, vp,
576 pn_setlast(pnp);
589 (void) audit_savepath(pnp, cvp, vp, 0, cr);
590 if (pnp->pn_path == pnp->pn_buf)
591 (void) pn_set(pnp, ".");
593 pn_setlast(pnp);
615 while (pnp->pn_path[0] == '/') {
616 pnp->pn_path++;
617 pnp->pn_pathlen--;
632 (void) audit_savepath(pnp, cvp, vp, error, cr);
831 pathname_t pnp;
838 bzero(&pnp, sizeof (pnp));
878 error = VOP_LOOKUP(dvp, dp->d_name, &cmpvp, &pnp, 0,
910 error = VOP_LOOKUP(dvp, ".zfs", &cmpvp, &pnp, 0, vrootp, cr,
1418 pathname_t rpnp, pnp;
1444 if ((ret = pn_get((char *)value, UIO_SYSSPACE, &pnp)) != 0) {
1452 if (lookuppn(&pnp, &rpnp, NO_FOLLOW, NULL, &compvp) == 0) {
1458 pn_free(&pnp);
1473 pn_free(&pnp);