11 #include <bits/alltypes.h>
13 typedef struct __DIR_s DIR;
19 unsigned short d_reclen;
26 DIR *opendir(const char *);
27 struct dirent *readdir(DIR *);
28 int readdir_r(DIR *, struct dirent *, struct dirent **);
29 void rewinddir(DIR *);
30 void seekdir(DIR *, long);
34 int alphasort(const struct dirent **, const struct dirent **);
35 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));