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

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