Lines Matching refs:pathname
45 #include <sys/pathname.h>
55 * name into a pathname structure where we operate on it.
56 * Each pathname structure can hold "pn_bufsize" characters
58 * allocating and freeing pathname structures, fetching
60 * a pathname, combining two pathnames (used in symbolic
62 * of a pathname.
66 * Allocate contents of pathname structure. Structure is typically
73 pn_alloc(struct pathname *pnp)
78 pn_alloc_sz(struct pathname *pnp, size_t sz)
86 * Free pathname resources.
89 pn_free(struct pathname *pnp)
104 pn_get_buf(char *str, enum uio_seg seg, struct pathname *pnp,
125 pn_get(char *str, enum uio_seg seg, struct pathname *pnp)
143 pn_set(struct pathname *pnp, char *path)
157 * This function copies the symlink in-place in the pathname. This is to
161 * how much of the pathname to replace. If the symlink is an absolute path,
162 * then we overwrite the entire contents of the pathname.
165 pn_insert(struct pathname *pnp, struct pathname *sympnp, size_t complen)
201 pn_getsymlink(vnode_t *vp, struct pathname *pnp, cred_t *crp)
231 pn_getcomponent(struct pathname *pnp, char *component)
263 pn_skipslash(struct pathname *pnp)
272 * Sets pn_path to the last component in the pathname, updating
273 * pn_pathlen. If pathname is empty, or degenerate, leaves pn_path
274 * pointing at NULL char. The pathname is explicitly null-terminated
278 pn_setlast(struct pathname *pnp)
297 * Eliminate any trailing slashes in the pathname.
301 pn_fixslash(struct pathname *pnp)
316 * Add a slash to the end of the pathname, if it will fit.
320 pn_addslash(struct pathname *pnp)