diff options
author | Baeuerle, Florian <Florian.Baeuerle@allegion.com> | 2018-12-19 14:02:03 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-08 16:37:40 +0100 |
commit | 99c1263dce3902a8961bcdcac9398bce51fccd1b (patch) | |
tree | 0e014ee901e55dad8c2cd74d074622baea4d0be1 /include | |
parent | baf8fc002ce67ca80f3bd7456b52a9bd2f10402d (diff) | |
download | barebox-99c1263dce3902a8961bcdcac9398bce51fccd1b.tar.gz barebox-99c1263dce3902a8961bcdcac9398bce51fccd1b.tar.xz |
recursive_action: add ACTION_SORT flag
Add a flag to sort directory entries before recursing into them.
Since this part of lib/ is used inside barebox as well as in
scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which
would have made the code a bit nicer.
Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index a362bd32d8..1f6afaa27a 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -17,6 +17,7 @@ enum { ACTION_FOLLOWLINKS = (1 << 1), ACTION_DEPTHFIRST = (1 << 2), /*ACTION_REVERSE = (1 << 3), - unused */ + ACTION_SORT = (1 << 4), }; int recursive_action(const char *fileName, unsigned flags, |