Microchip® Advanced Software Framework

    CFS header file.
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "contiki.h"

Data Structures

struct  cfs_dir
 
struct  cfs_dirent
 

Macros

#define CFS_APPEND   4
 Specify that cfs_open() should append written data to the file rather than overwriting it. More...
 
#define CFS_READ   1
 Specify that cfs_open() should open a file for reading. More...
 
#define CFS_SEEK_CUR   1
 Specify that cfs_seek() should compute the offset from the current position of the file pointer. More...
 
#define CFS_SEEK_END   2
 Specify that cfs_seek() should compute the offset from the end of the file. More...
 
#define CFS_SEEK_SET   0
 Specify that cfs_seek() should compute the offset from the beginning of the file. More...
 
#define CFS_WRITE   2
 Specify that cfs_open() should open a file for writing. More...
 

Typedefs

typedef int cfs_offset_t
 

Functions

CCIF void cfs_close (int fd)
 Close an open file. More...
 
CCIF void cfs_closedir (struct cfs_dir *dirp)
 Close a directory opened with cfs_opendir(). More...
 
CCIF int cfs_open (const char *name, int flags)
 Open a file. More...
 
CCIF int cfs_opendir (struct cfs_dir *dirp, const char *name)
 Open a directory for reading directory entries. More...
 
CCIF int cfs_read (int fd, void *buf, unsigned int len)
 Read data from an open file. More...
 
CCIF int cfs_readdir (struct cfs_dir *dirp, struct cfs_dirent *dirent)
 Read a directory entry. More...
 
CCIF int cfs_remove (const char *name)
 Remove a file. More...
 
CCIF cfs_offset_t cfs_seek (int fd, cfs_offset_t offset, int whence)
 Seek to a specified position in an open file. More...
 
CCIF int cfs_write (int fd, const void *buf, unsigned int len)
 Write data to an open file. More...