Lines Matching refs:path
24 // Create a dirtree node from a path, with stat and symlink info.
63 char *path = parent ? dirtree_path(parent, 0) : "";
65 perror_msg("%s%s%s", path, parent ? "/" : "", name);
66 if (parent) free(path);
73 // Return path to this node, assembled recursively.
76 // to return the length of the path, or a value greater than 0 to allocate
81 char *path;
85 path = xmalloc(*plen);
87 return path;
91 path = dirtree_path(node->parent, &len);
92 if (len && path[len-1] != '/') path[len++]='/';
93 len = stpcpy(path+len, node->name) - path;
96 return path;
144 char *path = dirtree_path(node, 0);
145 perror_msg_raw(path);
146 free(path);
182 // Create dirtree from path, using callback to filter nodes. If !callback
186 // Returns DIRTREE_ABORTVAL if path didn't exist (use DIRTREE_SHUTUP to handle
189 struct dirtree *dirtree_flagread(char *path, int flags,
192 return dirtree_handle_callback(dirtree_add_node(0, path, flags), callback);
196 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))
198 return dirtree_flagread(path, 0, callback);