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