11 #include <bits/alltypes.h>
13 typedef struct __DIR_s DIR;
19 unsigned short d_reclen;
24 #define d_fileno d_ino
28 DIR *opendir(const char *);
29 struct dirent *readdir(DIR *);
30 int readdir_r(DIR *, struct dirent *, struct dirent **);
31 void rewinddir(DIR *);
32 void seekdir(DIR *, long);
36 int alphasort(const struct dirent **, const struct dirent **);
37 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
49 #define IFTODT(x) ((x)>>12 & 017)
50 #define DTTOIF(x) ((x)<<12)
53 #ifdef _LARGEFILE64_SOURCE
54 #define dirent64 dirent
55 #define readdir64 readdir
56 #define readdir64_r readdir_r
57 #define scandir64 scandir
58 #define alphasort64 alphasort