Revision 497, 1.1 kB
(checked in by vbarta, 15 years ago)
|
moved cross-platform directory scanning support from tests to core (osutils)
|
Rev | Line | |
---|
[469] | 1 | #ifndef DIRENT_INCLUDED |
---|
| 2 | #define DIRENT_INCLUDED |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | |
---|
| 6 | Declaration of POSIX directory browsing functions and types for Win32. |
---|
| 7 | |
---|
| 8 | Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com) |
---|
| 9 | History: Created March 1997. Updated June 2003. |
---|
| 10 | Rights: See end of file. |
---|
[477] | 11 | |
---|
[469] | 12 | */ |
---|
| 13 | |
---|
| 14 | #ifdef __cplusplus |
---|
[477] | 15 | extern "C" { |
---|
[469] | 16 | #endif |
---|
| 17 | |
---|
[477] | 18 | typedef struct DIR DIR; |
---|
[469] | 19 | |
---|
[477] | 20 | struct dirent { |
---|
| 21 | char *d_name; |
---|
| 22 | }; |
---|
[469] | 23 | |
---|
[477] | 24 | DIR *opendir ( const char * ); |
---|
| 25 | int closedir ( DIR * ); |
---|
| 26 | struct dirent *readdir ( DIR * ); |
---|
| 27 | void rewinddir ( DIR * ); |
---|
[469] | 28 | |
---|
[477] | 29 | /* |
---|
[469] | 30 | |
---|
[477] | 31 | Copyright Kevlin Henney, 1997, 2003. All rights reserved. |
---|
[469] | 32 | |
---|
[477] | 33 | Permission to use, copy, modify, and distribute this software and its |
---|
| 34 | documentation for any purpose is hereby granted without fee, provided |
---|
| 35 | that this copyright and permissions notice appear in all copies and |
---|
| 36 | derivatives. |
---|
[469] | 37 | |
---|
[477] | 38 | This software is supplied "as is" without express or implied warranty. |
---|
[469] | 39 | |
---|
[477] | 40 | But that said, if there are any problems please get in touch. |
---|
[469] | 41 | |
---|
[477] | 42 | */ |
---|
| 43 | |
---|
[469] | 44 | #ifdef __cplusplus |
---|
| 45 | } |
---|
| 46 | #endif |
---|
| 47 | |
---|
| 48 | #endif |
---|