summaryrefslogtreecommitdiff
path: root/getfattr/walk_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'getfattr/walk_tree.h')
-rw-r--r--getfattr/walk_tree.h18
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 *);