2
0

dirent.h 332 B

1234567891011121314151617
  1. #ifndef _BITS_DIRENT_H
  2. #define _BITS_DIRENT_H
  3. // Shamelessly stolen from musl
  4. #define DT_UNKNOWN 0
  5. #define DT_FIFO 1
  6. #define DT_CHR 2
  7. #define DT_DIR 4
  8. #define DT_BLK 6
  9. #define DT_REG 8
  10. #define DT_LNK 10
  11. #define DT_SOCK 12
  12. #define DT_WHT 14
  13. #define IFTODT(x) ((x)>>12 & 017)
  14. #define DTTOIF(x) ((x)<<12)
  15. #endif /* _BITS_DIRENT_H */