78d57e3bb3835b36309e52d3a7676b88aff68110
[lunaix-os.git] / lunaix-os / usr / includes / dirent.h
1 #ifndef __LUNAIX_SYS_DIRENT_H
2 #define __LUNAIX_SYS_DIRENT_H
3
4 #include <sys/dirent_defs.h>
5
6 typedef struct
7 {
8     int dirfd;
9     struct lx_dirent _lxd;
10 } DIR;
11
12 struct dirent
13 {
14     unsigned char d_type;
15     char d_name[256];
16 };
17
18 DIR*
19 opendir(const char* dirp);
20
21 int
22 closedir(DIR* dirp);
23
24 struct dirent*
25 readdir(DIR* dir);
26
27 #endif /* __LUNAIX_DIRENT_H */