Usermode/libposix - Header wrapping, mktemp
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / dirent.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * dirent.h
6  * - Directory Reading
7  */
8 #ifndef _LIBPOSIX__SYS__DIRENT_H_
9 #define _LIBPOSIX__SYS__DIRENT_H_
10
11 #include "sys/stat.h"
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #define NAME_MAX        255
18
19 struct dirent
20 {
21         ino_t   d_ino;
22         char    d_name[NAME_MAX+1];
23 };
24
25 typedef struct DIR_s    DIR;
26
27 extern DIR      *opendir(const char *);
28 extern int      closedir(DIR *);
29 extern struct dirent    *readdir(DIR *);
30 extern int      readdir_r(DIR *, struct dirent *, struct dirent **);
31 extern void     rewinddir(DIR *);
32 extern void     seekdir(DIR *, long int);
33 extern long int telldir(DIR *);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif
40

UCC git Repository :: git.ucc.asn.au