diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-24 11:42:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-24 11:42:55 +0200 |
commit | 1746218beebc7e180f3eaed905277f9f46983ac4 (patch) | |
tree | f3649cc92207d437b9ce2b635e22a13154978a3e /include | |
parent | 87c40cf4de435d1b19b7fb545a495542c6eaf820 (diff) | |
download | busybox-w32-1746218beebc7e180f3eaed905277f9f46983ac4.tar.gz busybox-w32-1746218beebc7e180f3eaed905277f9f46983ac4.tar.bz2 busybox-w32-1746218beebc7e180f3eaed905277f9f46983ac4.zip |
move iterate_on_dir() from e2fsprogs to libbb
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 251d7231c..7d6ab4a93 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -512,6 +512,11 @@ int recursive_action(const char *fileName, unsigned flags, | |||
512 | void *userData | 512 | void *userData |
513 | ) FAST_FUNC; | 513 | ) FAST_FUNC; |
514 | 514 | ||
515 | /* Simpler version: call a function on each dirent in a directory */ | ||
516 | int iterate_on_dir(const char *dir_name, | ||
517 | int FAST_FUNC (*func)(const char *, struct dirent *, void *), | ||
518 | void *private) FAST_FUNC; | ||
519 | |||
515 | extern int device_open(const char *device, int mode) FAST_FUNC; | 520 | extern int device_open(const char *device, int mode) FAST_FUNC; |
516 | enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */ | 521 | enum { GETPTY_BUFSIZE = 16 }; /* more than enough for "/dev/ttyXXX" */ |
517 | extern int xgetpty(char *line) FAST_FUNC; | 522 | extern int xgetpty(char *line) FAST_FUNC; |