[rendering] This simple trick didn't work...
[wikipediardware.git] / wiki-lib / include / file-io.h
blob844e4f7df9b03bb16887b6eca9313d491f505590
1 #ifndef WL_FILE_IO_H
2 #define WL_FILE_IO_H
4 enum {
5 WL_O_RDONLY = 0,
6 WL_O_WRONLY,
7 WL_O_RDWR
8 };
10 /* those are implemented by the specific/file-io-*.c */
11 int wl_open(const char *filename, int flags);
12 void wl_close(int fd);
13 int wl_read(int fd, void *buf, unsigned int count);
14 int wl_write(int fd, void *buf, unsigned int count);
15 int wl_seek(int fd, unsigned int pos);
16 int wl_fsize(int fd, unsigned int *size);
17 unsigned int wl_tell(int fd);
19 #endif /* WL_FILE_IO_H */