Lines Matching refs:path
32 // Create a dirtree node from a path, with stat and symlink info.
71 char *path = parent ? dirtree_path(parent, 0) : "";
73 perror_msg("%s%s%s", path, parent ? "/" : "", name);
74 if (parent) free(path);
81 // Return path to this node, assembled recursively.
84 // to return the length of the path, or a value greater than 0 to allocate
89 char *path;
93 path = xmalloc(*plen);
95 return path;
99 path = dirtree_path(node->parent, &len);
100 if (len && path[len-1] != '/') path[len++]='/';
101 len = stpcpy(path+len, node->name) - path;
104 return path;
151 char *path = dirtree_path(node, 0);
152 perror_msg_raw(path);
153 free(path);
189 // Create dirtree from path, using callback to filter nodes. If !callback
193 // Returns DIRTREE_ABORTVAL if path didn't exist (use DIRTREE_SHUTUP to handle
196 struct dirtree *dirtree_flagread(char *path, int flags,
199 return dirtree_handle_callback(dirtree_add_node(0, path, flags), callback);
203 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))
205 return dirtree_flagread(path, 0, callback);