Two fixes
[tfsprogs.git] / dirent.h
blob25a9ad88f1d6b3e32f18a6e1ae8c4c9309738ac0
1 #ifndef DIRENT_H
2 #define DIRENT_H
4 #include <stdint.h>
6 #include "file.h"
8 struct dirent {
9 uint32_t d_ino;
10 uint32_t d_off;
11 uint16_t d_reclen;
12 uint16_t d_type;
13 char d_name[256];
17 typedef struct {
18 struct file *dd_dir;
19 } DIR;
22 DIR * tfs_opendir(struct tfs_sb_info *, const char *);
23 struct dirent * tfs_readdir(DIR *);
24 void tfs_closedir(DIR *);
26 extern DIR *this_dir;
28 #endif /* dirent.h */