Mercurial > hg > toybox
comparison lib/lib.h @ 593:fb582378a36a
Implement DIRTREE_SYMFOLLOW and ls -cSHL.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 09 Jun 2012 22:25:49 -0500 |
parents | 7becb497c3c4 |
children | a6a541b7fc34 |
comparison
equal
deleted
inserted
replaced
592:be4b2d3796eb | 593:fb582378a36a |
---|---|
69 struct stat st; | 69 struct stat st; |
70 char *symlink; | 70 char *symlink; |
71 char name[]; | 71 char name[]; |
72 }; | 72 }; |
73 | 73 |
74 struct dirtree *dirtree_add_node(int dirfd, char *name); | 74 struct dirtree *dirtree_add_node(int dirfd, char *name, int symfollow); |
75 char *dirtree_path(struct dirtree *node, int *plen); | 75 char *dirtree_path(struct dirtree *node, int *plen); |
76 int dirtree_notdotdot(struct dirtree *catch); | 76 int dirtree_notdotdot(struct dirtree *catch); |
77 int dirtree_opennode(struct dirtree *try); | 77 int dirtree_opennode(struct dirtree *try); |
78 struct dirtree *handle_callback(struct dirtree *new, | 78 struct dirtree *handle_callback(struct dirtree *new, |
79 int (*callback)(struct dirtree *node)); | 79 int (*callback)(struct dirtree *node)); |
80 void dirtree_recurse(struct dirtree *node, | 80 void dirtree_recurse(struct dirtree *node, |
81 int (*callback)(struct dirtree *node)); | 81 int (*callback)(struct dirtree *node), int symfollow); |
82 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); | 82 struct dirtree *dirtree_read(char *path, int (*callback)(struct dirtree *node)); |
83 | 83 |
84 // lib.c | 84 // lib.c |
85 void xstrcpy(char *dest, char *src, size_t size); | 85 void xstrcpy(char *dest, char *src, size_t size); |
86 void verror_msg(char *msg, int err, va_list va); | 86 void verror_msg(char *msg, int err, va_list va); |