64 #ifndef CFS_CONF_OFFSET_TYPE
65 typedef int cfs_offset_t;
67 typedef CFS_CONF_OFFSET_TYPE cfs_offset_t;
127 #define CFS_SEEK_SET 0
136 #define CFS_SEEK_CUR 1
145 #define CFS_SEEK_END 2
167 CCIF
int cfs_open(
const char *name,
int flags);
193 CCIF
int cfs_read(
int fd,
void *buf,
unsigned int len);
208 CCIF
int cfs_write(
int fd,
const void *buf,
unsigned int len);
229 CCIF cfs_offset_t
cfs_seek(
int fd, cfs_offset_t offset,
int whence);
252 CCIF
int cfs_opendir(
struct cfs_dir *dirp,
const char *name);
266 CCIF
int cfs_readdir(
struct cfs_dir *dirp,
struct cfs_dirent *dirent);
int cfs_open(const char *name, int flags)
Open a file.
cfs_offset_t cfs_seek(int fd, cfs_offset_t offset, int whence)
Seek to a specified position in an open file.
int cfs_readdir(struct cfs_dir *dir, struct cfs_dirent *record)
Read a directory entry.
int cfs_remove(const char *name)
Remove a file.
void cfs_closedir(struct cfs_dir *dir)
Close a directory opened with cfs_opendir().
int cfs_opendir(struct cfs_dir *dir, const char *name)
Open a directory for reading directory entries.
void cfs_close(int fd)
Close an open file.