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