cfs.h File Reference

CFS header file. More...

#include "contiki.h"

Go to the source code of this file.

Defines

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

Functions

CCIF int cfs_open (const char *name, int flags)
 Open a file.
CCIF void cfs_close (int fd)
 Close an open file.
CCIF int cfs_read (int fd, void *buf, unsigned int len)
 Read data from an open file.
CCIF int cfs_write (int fd, const void *buf, unsigned int len)
 Write data to an open 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_remove (const char *name)
 Remove a 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_closedir (struct cfs_dir *dirp)
 Close a directory opened with cfs_opendir().

Detailed Description

CFS header file.

Author:
Adam Dunkels <adam@sics.se>

Definition in file cfs.h.


Generated on Mon Apr 11 14:23:45 2011 for Contiki 2.5 by  doxygen 1.6.1