2 #define HEADER_FILE_H 1
17 bool file_open (struct file *, disk_sector_no);
18 void file_close (struct file *);
19 off_t file_read (struct file *, void *, off_t);
20 off_t file_read_at (struct file *, void *, off_t size, off_t start);
21 off_t file_write (struct file *, const void *, off_t);
22 off_t file_write_at (struct file *, const void *, off_t size, off_t start);
23 off_t file_length (struct file *);
24 void file_seek (struct file *, off_t);
25 off_t file_tell (struct file *);