4f2c0b30869c039ea69e615501e365999f4e755a
[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 #define NAME_MAX        255
12
13 struct dirent
14 {
15         ino_t   d_ino;
16         char    d_name[NAME_MAX+1];
17 };
18
19 typedef struct DIR_s    DIR;
20
21 extern int      closedir(DIR *);
22 extern DIR      *opendir(const char *);
23 extern struct dirent    *readdir(DIR *);
24 extern int      readdir_r(DIR *, struct dirent *, struct dirent **);
25 extern void     rewinddir(DIR *);
26 extern void     seekdir(DIR *, long int);
27 extern long int telldir(DIR *);
28
29 #endif
30

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