| OLD | NEW |
| 1 #ifndef _FTW_H | 1 #ifndef _FTW_H |
| 2 #define»_FTW_H | 2 #define _FTW_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #include <features.h> | 8 #include <features.h> |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 | 10 |
| 11 #define FTW_F 1 | 11 #define FTW_F 1 |
| 12 #define FTW_D 2 | 12 #define FTW_D 2 |
| 13 #define FTW_DNR 3 | 13 #define FTW_DNR 3 |
| 14 #define FTW_NS 4 | 14 #define FTW_NS 4 |
| 15 #define FTW_SL 5 | 15 #define FTW_SL 5 |
| 16 #define FTW_DP 6 | 16 #define FTW_DP 6 |
| 17 #define FTW_SLN 7 | 17 #define FTW_SLN 7 |
| 18 | 18 |
| 19 #define FTW_PHYS 1 | 19 #define FTW_PHYS 1 |
| 20 #define FTW_MOUNT 2 | 20 #define FTW_MOUNT 2 |
| 21 #define FTW_CHDIR 4 | 21 #define FTW_CHDIR 4 |
| 22 #define FTW_DEPTH 8 | 22 #define FTW_DEPTH 8 |
| 23 | 23 |
| 24 struct FTW | 24 struct FTW { |
| 25 { | 25 int base; |
| 26 » int base; | 26 int level; |
| 27 » int level; | |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 int ftw(const char *, int (*)(const char *, const struct stat *, int), int); | 29 int ftw(const char*, int (*)(const char*, const struct stat*, int), int); |
| 31 int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FT
W *), int, int); | 30 int nftw(const char*, |
| 31 int (*)(const char*, const struct stat*, int, struct FTW*), |
| 32 int, |
| 33 int); |
| 32 | 34 |
| 33 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) | 35 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) |
| 34 #define ftw64 ftw | 36 #define ftw64 ftw |
| 35 #define nftw64 nftw | 37 #define nftw64 nftw |
| 36 #endif | 38 #endif |
| 37 | 39 |
| 38 #ifdef __cplusplus | 40 #ifdef __cplusplus |
| 39 } | 41 } |
| 40 #endif | 42 #endif |
| 41 | 43 |
| 42 #endif | 44 #endif |
| OLD | NEW |