59 #ifndef CFS_CONF_OFFSET_TYPE 60 typedef int cfs_offset_t;
62 typedef CFS_CONF_OFFSET_TYPE cfs_offset_t;
122 #define CFS_SEEK_SET 0 131 #define CFS_SEEK_CUR 1 140 #define CFS_SEEK_END 2 162 CCIF
int cfs_open(
const char *name,
int flags);
188 CCIF
int cfs_read(
int fd,
void *buf,
unsigned int len);
203 CCIF
int cfs_write(
int fd,
const void *buf,
unsigned int len);
224 CCIF cfs_offset_t
cfs_seek(
int fd, cfs_offset_t offset,
int whence);
247 CCIF
int cfs_opendir(
struct cfs_dir *dirp,
const char *name);
261 CCIF
int cfs_readdir(
struct cfs_dir *dirp,
struct cfs_dirent *dirent);
CCIF int cfs_open(const char *name, int flags)
Open a file.
CCIF int cfs_write(int fd, const void *buf, unsigned int len)
Write data to an open file.
CCIF int cfs_remove(const char *name)
Remove a file.
CCIF cfs_offset_t cfs_seek(int fd, cfs_offset_t offset, int whence)
Seek to a specified position in an open file.
CCIF int cfs_opendir(struct cfs_dir *dirp, const char *name)
Open a directory for reading directory entries.
CCIF int cfs_readdir(struct cfs_dir *dirp, struct cfs_dirent *dirent)
Read a directory entry.
CCIF void cfs_close(int fd)
Close an open file.
CCIF void cfs_closedir(struct cfs_dir *dirp)
Close a directory opened with cfs_opendir().
CCIF int cfs_read(int fd, void *buf, unsigned int len)
Read data from an open file.