Filesystem


Classes

class  miosix::Filesystem
class  miosix::Directory

Enumerations

enum  miosix::Attrib {
  miosix::READ_ONLY = 0x01, miosix::HIDDEN = 0x02, miosix::SYSTEM = 0x04, miosix::VOLUME_ID = 0x08,
  miosix::DIRECTORY = 0x10, miosix::ARCHIVE = 0x20
}

Detailed Description

Filesystem related functions

File handling will not be described here since it is done using the C or C++ standard library (fopen, fprintf, istream, remove, mkdir, ...).
All file related function of the C and C++ standard library should work, except rename() and link() which are not implemented.
The maximum number of files that can be opened at the same time is defined in the constant MAX_OPEN_FILES in miosix/config/miosix_settings.h, All files are opened in binary mode. Therefore there is no differnce between fopen("file.txt","r") and fopen("file.txt","rb"). For filesystem write access, the SYNC_AFTER_WRITE option in miosix_settings.h allows to choose a faster or safer implementation.

Directory listing is not done using the standard opendir() and readdir() functions, but using the Directory class.

Mounting and unmounting the filesystem is done through the Filesystem class. Note that the filesystem is mounted automatically at boot time, except in case of errors (like no uSD card in the socket).


Enumeration Type Documentation

File attribures, as returned by Directory::next(). More flags can be set at the same time

Enumerator:
READ_ONLY  Entry is read-only.
HIDDEN  Entry is hidden.
SYSTEM  Entry is a system file.
VOLUME_ID  Volume label (?).
DIRECTORY  If this flag is set, entry is a directory, otherwise it's a file.
ARCHIVE  Entry is marked as archive.


Generated on Mon Aug 30 00:05:00 2010 for Miosix by  doxygen 1.5.9