| Datasheet: FAL
provides the following functionality for accessing the underlying TFFS
based filesystem:
ANSI/ISO C file functions: clearerr,
fclose, feof, ferror, fflush, fgetc, fgets, fopen, fputc, fputs, fread,
fseek, ftell, fwrite, remove, rename, rewind Optional
support for 'errno' updating. POSIX
file functions: chdir
- Change directory ftruncate
- Truncate opened file (deviates from Posix in parameter types) getcwd
- Get current working directory rmdir
- Remove directory stat
- Get file status (deviates from Posix in parameter types) truncate
- Truncate file (deviates from Posix in parameter types) Non-standard
file functions: falCp
- Copy a file falFsize
- Get the size of an opened file falGetAccessLevel
- Get access level for a user falGetAttributes
- Get attributes for a file or directory falGetDefaultAttributes
- Get default attributes for user falLs
- Get directory listing entry falMkdir
- Make new directory falMonitorAdd
- Add monitor entry in order to activate callback on file system
item changes falMonitorRemove
- Deactivate and remove monitor entry
|
|
falMount
- Mount TFFS disk falRegister
- Register for use of mounted TFFS disks falSetAccessLevel
- Set access rights for user
falSetAttributes
- Set attribute for file/directory falSetDefaultAttributes
- Set default attributes for new files/directories falUnmount
- Unmount TFFS disk falUnregister
- Discontinue use of TFFS disks for a user
FAL
is designed suitable for making a library, thus only including used
functionality to ensure the smallest possible footprint. In addition,
some functionality is controlled by configurable options in order to
even reduce the footprint further if not using the functionality.
The following is required
when using FAL and is not included in FAL:
-
TFFS
and FDC and/or RDC
modules from the Tevero filesystem stack and the items
required to support those modules.
-
Provide
two functions to get and set a pointer applicable for a user, in
order to support a multi-user environment.
-
Provide
the following C library glue functions: free, malloc,
memset, strcmp, strcpy and strlen,. The functions are defined in
shrdconf.h/falconf.h
and they must all be reentrant if used in a preemptive
environment
|