52 return open(n, O_RDONLY);
65 return open(n, s, 0600);
85 return write(f, b, l);
98 return (cfs_offset_t)-1;
100 return lseek(f, o, w);
int cfs_open(const char *n, int f)
Open a file.
int cfs_remove(const char *name)
Remove a file.
cfs_offset_t cfs_seek(int f, cfs_offset_t o, int w)
Seek to a specified position in an open file.
#define CFS_APPEND
Specify that cfs_open() should append written data to the file rather than overwriting it...
int cfs_write(int f, const void *b, unsigned int l)
Write data to an open file.
void cfs_close(int f)
Close an open file.
#define CFS_SEEK_END
Specify that cfs_seek() should compute the offset from the end of the file.
int cfs_read(int f, void *b, unsigned int l)
Read data from an open file.
#define CFS_READ
Specify that cfs_open() should open a file for reading.
#define CFS_SEEK_CUR
Specify that cfs_seek() should compute the offset from the current position of the file pointer...
#define CFS_SEEK_SET
Specify that cfs_seek() should compute the offset from the beginning of the file. ...
#define CFS_WRITE
Specify that cfs_open() should open a file for writing.