Lines Matching defs:pnp
61 * Starting at current directory, translate pathname pnp to end.
62 * Leave pathname of final component in pnp, return the vnode
77 struct pathname *pnp, /* pathname to lookup */
115 if (pn_fixslash(pnp)) {
138 if (error = pn_getcomponent(pnp, component)) {
226 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags,
244 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags,
256 if (pn_pathleft(pnp) || dirvpp == NULL || error != ENOENT)
259 pn_setlast(pnp);
264 if (must_be_directory && (error = pn_addslash(pnp)) != 0)
302 if (cvp->v_type == VLNK && ((flags & FOLLOW) || pn_pathleft(pnp))) {
317 error = pn_insert(pnp, &linkpath, strlen(component));
323 if (pnp->pn_pathlen == 0) {
327 if (pnp->pn_path[0] == '/') {
329 pnp->pn_path++;
330 pnp->pn_pathlen--;
331 } while (pnp->pn_path[0] == '/');
336 if (pn_fixslash(pnp)) {
392 if (pn_pathleft(pnp) == 0) {
407 pn_setlast(pnp);
419 if (pnp->pn_path == pnp->pn_buf)
420 (void) pn_set(pnp, ".");
422 pn_setlast(pnp);
444 while (pnp->pn_path[0] == '/') {
445 pnp->pn_path++;
446 pnp->pn_pathlen--;