Merge branch 'interrupt-rework' into prog-loader
[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     int prev_res;
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* dir);
20
21 struct dirent*
22 readdir(DIR* dir);
23
24 #endif /* __LUNAIX_DIRENT_H */