| 1 | /* |
| 2 | |
| 3 | Declaration of POSIX directory browsing functions and types for Win32. |
| 4 | |
| 5 | Kevlin Henney (mailto:[email protected]), March 1997. |
| 6 | |
| 7 | Copyright Kevlin Henney, 1997. All rights reserved. |
| 8 | |
| 9 | Permission to use, copy, modify, and distribute this software and its |
| 10 | documentation for any purpose is hereby granted without fee, provided |
| 11 | that this copyright and permissions notice appear in all copies and |
| 12 | derivatives, and that no charge may be made for the software and its |
| 13 | documentation except to cover cost of distribution. |
| 14 | |
| 15 | */ |
| 16 | |
| 17 | #ifndef DIRENT_INCLUDED |
| 18 | #define DIRENT_INCLUDED |
| 19 | |
| 20 | typedef struct DIR DIR; |
| 21 | |
| 22 | struct dirent |
| 23 | { |
| 24 | char *d_name; |
| 25 | }; |
| 26 | |
| 27 | DIR *opendir(const char *); |
| 28 | int closedir(DIR *); |
| 29 | struct dirent *readdir(DIR *); |
| 30 | void rewinddir(DIR *); |
| 31 | |
| 32 | #endif |