aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-06-09 22:25:49 -0500
committerRob Landley <rob@landley.net>2012-06-09 22:25:49 -0500
commit4af1e1d784fa757e1d50b3fa42bd27f0a9b7782c (patch)
treee6e247c6b617c1eb2d739c4a1baa8d49e8e9903a /lib/lib.h
parent98356226c81109227faa89b721674e5fabf04b42 (diff)
downloadtoybox-4af1e1d784fa757e1d50b3fa42bd27f0a9b7782c.tar.gz
Implement DIRTREE_SYMFOLLOW and ls -cSHL.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib.h b/lib/lib.h
index add0c14e..c3aa15ce 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -71,14 +71,14 @@ struct dirtree {
char name[];
};
-struct dirtree *dirtree_add_node(int dirfd, char *name);
+struct dirtree *dirtree_add_node(int dirfd, char *name, int symfollow);
char *dirtree_path(struct dirtree *node, int *plen);
int dirtree_notdotdot(struct dirtree *catch);
int dirtree_opennode(struct dirtree *try);
struct dirtree *handle_callback(struct dirtree *new,
int (*callback)(struct dirtree *node));
void dirtree_recurse(struct dirtree *node,
- int (*callback)(struct dirtree *node));
+ int (*callback)(struct dirtree *node), int symfollow);
struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node));
// lib.c