add file read/write stuff
[tfsprogs.git] / dirent.h
blobb1e02ba88f1a42ab345a30be0851aaa8461d851e
1 #ifndef DIRENT_H
2 #define DIRENT_H
4 #include <stdint.h>
6 struct dirent {
7 uint32_t d_ino;
8 uint32_t d_off;
9 uint16_t d_reclen;
10 uint16_t d_type;
11 char d_name[256];
16 typedef struct {
17 struct file *dd_dir;
18 } DIR;
20 extern DIR *this_dir;
22 DIR * fstk_opendir(struct fstk *, char *);
23 struct dirent * fstk_readdir(DIR *);
24 void fstk_closedir(DIR *);
28 #endif /* dirent.h */