1 #ifndef DIRENT_H 2 #define DIRENT_H 3 4 #include <winsock2.h> 5 6 struct dirent 7 { 8 ino_t d_ino; /* File serial number */ 9 char d_name[MAX_PATH]; /* Name of entry */ 10 }; 11 12 struct dirent_ctx 13 { 14 HANDLE find_handle; 15 char dirname[MAX_PATH]; 16 }; 17 18 typedef struct dirent_ctx DIR; 19 20 DIR *opendir(const char *dirname); 21 struct dirent *readdir(DIR *dirp); 22 int closedir(DIR *dirp); 23 24 #endif /* DIRENT_H */ 25