Lines Matching refs:dirtree
0 /* dirtree.c - Functions for dealing with directory trees.
25 int dirtree_notdotdot(struct dirtree *catch)
32 // Create a dirtree node from a path, with stat and symlink info.
36 struct dirtree *dirtree_add_node(struct dirtree *parent, char *name, int flags)
38 struct dirtree *dt = 0;
58 dt = xmalloc((len = sizeof(struct dirtree)+len+1)+linklen);
59 memset(dt, 0, statless ? offsetof(struct dirtree, again)
60 : offsetof(struct dirtree, st));
87 char *dirtree_path(struct dirtree *node, int *plen)
107 int dirtree_parentfd(struct dirtree *node)
117 struct dirtree *dirtree_handle_callback(struct dirtree *new,
118 int (*callback)(struct dirtree *node))
141 int dirtree_recurse(struct dirtree *node,
142 int (*callback)(struct dirtree *node), int dirfd, int flags)
144 struct dirtree *new, **ddt = &(node->child);
189 // Create dirtree from path, using callback to filter nodes. If !callback
191 // tree of struct dirtree nodes and return pointer to root node for later
196 struct dirtree *dirtree_flagread(char *path, int flags,
197 int (*callback)(struct dirtree *node))
203 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))