23
23
/* FAT32, VFAT, Atari format support, and various fixes additions May 1998
24
24
* by Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> */
30
#include <sys/types.h> /* for loff_t */
29
#include <sys/types.h> /* for loff_t */
32
31
loff_t llseek(int fd, loff_t offset, int whence);
34
33
/* lseek() analogue for large offsets. */
36
void fs_open(char *path,int rw);
35
void fs_open(char *path, int rw);
38
37
/* Opens the file system PATH. If RW is zero, the file system is opened
39
38
read-only, otherwise, it is opened read-write. */
41
void fs_read(loff_t pos,int size,void *data);
40
void fs_read(loff_t pos, int size, void *data);
43
42
/* Reads SIZE bytes starting at POS into DATA. Performs all applicable
46
int fs_test(loff_t pos,int size);
45
int fs_test(loff_t pos, int size);
48
47
/* Returns a non-zero integer if SIZE bytes starting at POS can be read without
49
48
errors. Otherwise, it returns zero. */
51
void fs_write(loff_t pos,int size,void *data);
50
void fs_write(loff_t pos, int size, void *data);
53
52
/* If write_immed is non-zero, SIZE bytes are written from DATA to the disk,
54
53
starting at POS. If write_immed is zero, the change is added to a list in