Lines Matching refs:dirtree
0 /* dirtree.c - Functions for dealing with directory trees.
17 int dirtree_notdotdot(struct dirtree *catch)
24 // Create a dirtree node from a path, with stat and symlink info.
28 struct dirtree *dirtree_add_node(struct dirtree *parent, char *name, int flags)
30 struct dirtree *dt = 0;
50 dt = xmalloc((len = sizeof(struct dirtree)+len+1)+linklen);
51 memset(dt, 0, statless ? offsetof(struct dirtree, again)
52 : offsetof(struct dirtree, st));
79 char *dirtree_path(struct dirtree *node, int *plen)
99 int dirtree_parentfd(struct dirtree *node)
109 struct dirtree *dirtree_handle_callback(struct dirtree *new,
110 int (*callback)(struct dirtree *node))
134 int dirtree_recurse(struct dirtree *node,
135 int (*callback)(struct dirtree *node), int dirfd, int flags)
137 struct dirtree *new, **ddt = &(node->child);
182 // Create dirtree from path, using callback to filter nodes. If !callback
184 // tree of struct dirtree nodes and return pointer to root node for later
189 struct dirtree *dirtree_flagread(char *path, int flags,
190 int (*callback)(struct dirtree *node))
196 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node))