dirent.h 643 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Headers for port/dirent.c, win32 native implementation of dirent functions
  3. *
  4. * src/include/port/win32_msvc/dirent.h
  5. */
  6. #ifndef _WIN32VC_DIRENT_H
  7. #define _WIN32VC_DIRENT_H
  8. struct dirent
  9. {
  10. long d_ino;
  11. unsigned short d_reclen;
  12. unsigned char d_type;
  13. unsigned short d_namlen;
  14. char d_name[MAX_PATH];
  15. };
  16. typedef struct DIR DIR;
  17. DIR *opendir(const char *);
  18. struct dirent *readdir(DIR *);
  19. int closedir(DIR *);
  20. /* File types for 'd_type'. */
  21. #define DT_UNKNOWN 0
  22. #define DT_FIFO 1
  23. #define DT_CHR 2
  24. #define DT_DIR 4
  25. #define DT_BLK 6
  26. #define DT_REG 8
  27. #define DT_LNK 10
  28. #define DT_SOCK 12
  29. #define DT_WHT 14
  30. #endif