summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-04 23:12:08 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-04 23:12:08 -0500
commit0f91c5861cacaeb17729b7727d07260273345393 (patch)
tree8348044cc4697e2576a401fe81c2d5bca7dbc0eb /bftw.h
parentc9905877cb06f71c4523e4f4875bf549b6b54060 (diff)
downloadbfs-0f91c5861cacaeb17729b7727d07260273345393.tar.xz
Implement -P and -H.
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/bftw.h b/bftw.h
index 1375594..4b81123 100644
--- a/bftw.h
+++ b/bftw.h
@@ -105,11 +105,13 @@ typedef enum bftw_action bftw_fn(struct BFTW *ftwbuf, void *ptr);
*/
enum bftw_flags {
/** stat() each encountered file. */
- BFTW_STAT = 1 << 0,
+ BFTW_STAT = 1 << 0,
/** Attempt to recover from encountered errors. */
- BFTW_RECOVER = 1 << 1,
+ BFTW_RECOVER = 1 << 1,
/** Visit directories in post-order as well as pre-order. */
- BFTW_DEPTH = 1 << 2,
+ BFTW_DEPTH = 1 << 2,
+ /** If the initial path is a symbolic link, follow it. */
+ BFTW_FOLLOW_ROOT = 1 << 3,
};
/**