ftw.h 654 B

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