diff options
author | Nathan Scott <nathans@sgi.com> | 2002-02-25 22:10:22 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2002-02-25 22:10:22 +0000 |
commit | c82edc1013cf28a096cb8f5ba21c28d3e9312227 (patch) | |
tree | 5a2c12886725666beddf1aaf8cdf20e474359ebc /getfattr/walk_tree.h | |
parent | a87485aca58ea2236b31b0c0b8e438b3d967709b (diff) | |
download | attr-c82edc1013cf28a096cb8f5ba21c28d3e9312227.tar.gz |
Merge of xfs-cmds-2.4.18:slinx:111138a by nathans.
bump to version 2.0.0 for extended attribute and other interface changes.
incorporate new code, docs, etc from ext2/ext3 project.
Diffstat (limited to 'getfattr/walk_tree.h')
-rw-r--r-- | getfattr/walk_tree.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/getfattr/walk_tree.h b/getfattr/walk_tree.h new file mode 100644 index 0000000..c84c742 --- /dev/null +++ b/getfattr/walk_tree.h @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2001 by Andreas Gruenbacher <a.gruenbacher@computer.org> + * + * TODO: should this be replaced by using nftw(3)? + */ +#include <sys/stat.h> + +extern const char *progname; + +#define WALK_FULL_LOGICAL 1 /* follow all symlinks */ +#define WALK_HALF_LOGICAL 2 /* follow symlink arguments */ +#define WALK_PHYSICAL 3 /* don't follow symlinks */ + +extern int walk_recurse; /* recurse into sudirectories */ +extern int walk_postorder; /* walk tree in postorder */ +extern int walk_symlinks; /* follow symbolic links */ + +int walk_tree(const char *, int (*call)(const char *, struct stat *, void *), void *); |