1#if !defined ISO && !defined ISO99 && !defined ISO11
2type DIR
3
4type {struct dirent}
5
6# if !defined POSIX && !defined POSIX2008
7element {struct dirent} ino_t d_ino
8# endif
9element {struct dirent} char d_name []
10
11# if !defined POSIX && !defined POSIX2008
12type ino_t
13#endif
14
15function int closedir (DIR*)
16function {DIR*} opendir (const char*)
17function {struct dirent*} readdir (DIR*)
18function int readdir_r (DIR*, struct dirent*, struct dirent**)
19function void rewinddir (DIR*)
20# if !defined POSIX && !defined POSIX2008
21function void seekdir (DIR*, long int)
22function {long int} telldir (DIR*)
23# endif
24
25allow d_*
26allow *_t
27
28# if defined XOPEN2K8 || defined POSIX2008
29function int alphasort (const struct dirent**, const struct dirent**)
30function int dirfd (DIR*)
31function int scandir (const char*, struct dirent***, int(*)(const struct dirent*), int(*)(const struct dirent**,const struct dirent **))
32function {DIR*} fdopendir (int)
33# endif
34#endif
35