Working backdoor filesystem implementation.
[pintos-anon] / src / filesys / file.h
1 #ifndef HEADER_FILE_H
2 #define HEADER_FILE_H 1
3
4 #include <stdint.h>
5 #include <stddef.h>
6
7 typedef int32_t off_t;
8
9 struct file;
10 void file_close (struct file *);
11 off_t file_read (struct file *, void *, off_t);
12 off_t file_write (struct file *, const void *, off_t);
13 off_t file_length (struct file *);
14 void file_seek (struct file *, off_t);
15 off_t file_tell (struct file *);
16
17 #endif /* file.h */