kbd: use a better get_key method
[thunix.git] / include / dirent.h
blob7974bb672ca270d38f5d7087eda64757f70e96df
1 #ifndef DIRENT_H
2 #define DIRENT_H
4 #include <stdint.h>
7 struct dirent {
8 uint32_t d_ino;
9 uint32_t d_off;
10 uint16_t d_reclen;
11 uint16_t d_type;
12 char d_name[256];
16 struct file;
18 typedef struct {
19 struct file *dd_dir;
20 } DIR;
23 DIR * opendir(const char *);
24 struct dirent * tfs_readdir(struct file *);
25 void tfs_closedir(DIR *);
27 extern DIR *this_dir;
29 #endif /* dirent.h */