diff options
author | Tim Shimmin <tes@sgi.com> | 2007-11-21 05:13:52 +0000 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-11-21 05:13:52 +0000 |
commit | f1ae7ff642ca2aead656ddc0d1b2c8bcd621ec9f (patch) | |
tree | e72a9ed287fce9f52ee6bbe766f18d5d062a16d0 /include | |
parent | 86f937bed13742a7b7de686dad188cac50a31d78 (diff) | |
download | attr-f1ae7ff642ca2aead656ddc0d1b2c8bcd621ec9f.tar.gz |
fix up tree walking for symlinks
Merge of master-melb:xfs-cmds:30105a by kenmcd.
Diffstat (limited to 'include')
-rw-r--r-- | include/walk_tree.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/walk_tree.h b/include/walk_tree.h new file mode 100644 index 0000000..96bb7a3 --- /dev/null +++ b/include/walk_tree.h @@ -0,0 +1,18 @@ +#ifndef __WALK_TREE_H +#define __WALK_TREE_H + +#define WALK_TREE_RECURSIVE 0x1 +#define WALK_TREE_PHYSICAL 0x2 +#define WALK_TREE_LOGICAL 0x4 +#define WALK_TREE_DEREFERENCE 0x8 + +#define WALK_TREE_SYMLINK 0x10 +#define WALK_TREE_FAILED 0x20 + +struct stat; + +extern int walk_tree(const char *path, int walk_flags, + int (*func)(const char *, const struct stat *, int, void *), + void *arg); + +#endif |