diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-11-21 15:25:44 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-11-21 15:28:45 -0500 |
commit | 40df4d3d4d6389fbec579e555e79e0ca577e342a (patch) | |
tree | c19e920ccbb6c8ffac44b28e654db57fe5e4f9e0 /bftw.h | |
parent | f80e6b781d1b98f4b50ed4b235edd1fb3deae199 (diff) | |
download | bfs-40df4d3d4d6389fbec579e555e79e0ca577e342a.tar.xz |
bftw: Make bftw_flags more similar to fts() options.
Diffstat (limited to 'bftw.h')
-rw-r--r-- | bftw.h | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -113,21 +113,19 @@ 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, - /** Follow non-root symbolic links. */ - BFTW_FOLLOW_NONROOT = 1 << 4, + BFTW_COMFOLLOW = 1 << 3, /** Follow all symbolic links. */ - BFTW_FOLLOW = BFTW_FOLLOW_ROOT | BFTW_FOLLOW_NONROOT, + BFTW_LOGICAL = 1 << 4, /** Detect directory cycles. */ - BFTW_DETECT_CYCLES = 1 << 5, + BFTW_DETECT_CYCLES = 1 << 5, /** Stay on the same filesystem. */ - BFTW_MOUNT = 1 << 6, + BFTW_XDEV = 1 << 6, }; /** |