Lines Matching defs:pnp

122 	struct pathname *pnp,
128 return (lookuppnatcred(pnp, rpnp, followlink, dirvpp, compvpp, NULL,
137 struct pathname *pnp, /* pathname to lookup */
149 if (pnp->pn_pathlen == 0)
158 if (pnp->pn_path[0] == '/') {
169 if (pnp->pn_path[0] == '/') {
171 pnp->pn_path++;
172 pnp->pn_pathlen--;
173 } while (pnp->pn_path[0] == '/');
176 return (lookuppnvp(pnp, rpnp, followlink, dirvpp,
181 lookuppnat(struct pathname *pnp, struct pathname *rpnp,
185 return (lookuppnatcred(pnp, rpnp, followlink, dirvpp, compvpp, startvp,
194 * Starting at current directory, translate pathname pnp to end.
195 * Leave pathname of final component in pnp, return the vnode
210 struct pathname *pnp, /* pathname to lookup */
247 audit_anchorpath(pnp, vp == rootvp);
254 if (pn_fixslash(pnp)) {
277 if (error = pn_getcomponent(pnp, component)) {
376 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags,
394 error = VOP_LOOKUP(vp, component, &tvp, 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)
465 if (cvp->v_type == VLNK && ((flags & FOLLOW) || pn_pathleft(pnp))) {
479 audit_symlink(pnp, &linkpath);
483 error = pn_insert(pnp, &linkpath, strlen(component));
489 if (pnp->pn_pathlen == 0) {
493 if (pnp->pn_path[0] == '/') {
495 pnp->pn_path++;
496 pnp->pn_pathlen--;
497 } while (pnp->pn_path[0] == '/');
503 audit_anchorpath(pnp, vp == rootvp);
504 if (pn_fixslash(pnp)) {
560 if (pn_pathleft(pnp) == 0) {
576 (void) audit_savepath(pnp, cvp, vp,
578 pn_setlast(pnp);
591 (void) audit_savepath(pnp, cvp, vp, 0, cr);
592 if (pnp->pn_path == pnp->pn_buf)
593 (void) pn_set(pnp, ".");
595 pn_setlast(pnp);
617 while (pnp->pn_path[0] == '/') {
618 pnp->pn_path++;
619 pnp->pn_pathlen--;
634 (void) audit_savepath(pnp, cvp, vp, error, cr);
833 pathname_t pnp;
840 bzero(&pnp, sizeof (pnp));
880 error = VOP_LOOKUP(dvp, dp->d_name, &cmpvp, &pnp, 0,
912 error = VOP_LOOKUP(dvp, ".zfs", &cmpvp, &pnp, 0, vrootp, cr,
1484 pathname_t rpnp, pnp;
1510 if ((ret = pn_get((char *)value, UIO_SYSSPACE, &pnp)) != 0) {
1518 if (lookuppn(&pnp, &rpnp, NO_FOLLOW, NULL, &compvp) == 0) {
1524 pn_free(&pnp);
1539 pn_free(&pnp);