1 2 #ifndef __DIRENT_H__ 3 #define __DIRENT_H__ 4 5 #include <sys/dirent.h> 6 7 typedef struct DIR { 8 int fd; 9 uint64_t offset; 10 struct dirent de; 11 } DIR; 12 13 DIR *opendir(const char *); 14 struct dirent *readdir(DIR *); 15 void rewinddir(DIR *); 16 void seekdir(DIR *, long); 17 long telldir(DIR *); 18 int closedir(DIR *); 19 20 #endif /* __DIRENT_H__ */ 21 22