overhaul rwlocks to address several issues
[musl] / include / ftw.h
1 #ifndef _FTW_H
2 #define _FTW_H
3
4 /* Normally we do not nest header includes. However useless bloat
5  * like ftw may be treated as a special case. Otherwise we would
6  * have to deal with duplicating all the stat.h mess. */
7 #include <sys/stat.h>
8
9 #define FTW_F   1
10 #define FTW_D   2
11 #define FTW_DNR 3
12 #define FTW_NS  4
13 #define FTW_SL  5
14 #define FTW_DP  6
15 #define FTW_SLN 7
16
17 #define FTW_PHYS  1
18 #define FTW_MOUNT 2
19 #define FTW_CHDIR 4
20 #define FTW_DEPTH 8
21
22 struct FTW
23 {
24         int base;
25         int level;
26 };
27
28 int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
29 int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *), int, int);
30
31 #endif