ftw.h 672 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _FTW_H
  2. #define _FTW_H
  3. /* Normally we do not nest header includes. However useless bloat
  4. * like ftw may be treated as a special case. Otherwise we would
  5. * have to deal with duplicating all the stat.h mess. */
  6. #include <sys/stat.h>
  7. #define FTW_F 1
  8. #define FTW_D 2
  9. #define FTW_DNR 3
  10. #define FTW_NS 4
  11. #define FTW_SL 5
  12. #define FTW_DP 6
  13. #define FTW_SLN 7
  14. #define FTW_PHYS 1
  15. #define FTW_MOUNT 2
  16. #define FTW_CHDIR 4
  17. #define FTW_DEPTH 8
  18. struct FTW
  19. {
  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. #endif