Typedefs |
typedef int | Handle |
| posix file type. More...
|
Enumerations |
enum | ErrorCodes { errOk,
errGeneric,
errNotSupported,
errAlreadyExists
} |
Functions |
int | init () |
| init files PAL. More...
|
int | cleanup () |
| cleanup files PAL. More...
|
int | open (Handle &handle, const char *name, int flags, int shareFlags) |
| open/create a file. More...
|
int | close (Handle handle) |
| close a file. More...
|
int | seek (Handle handle, long offset, int mode, long &pos) |
| moves the file pointer of an open file. More...
|
int | setEof (Handle handle) |
| set EOF to current position. More...
|
int | write (Handle handle, const void *buff, long count, long &written) |
| write data to a file. More...
|
int | read (Handle handle, void *buff, long count, long &read) |
| read data from a file. More...
|
int | flush (Handle handle) |
| flush file buffers. More...
|
const char * | message (int index) |
| return the message coresponding to a return code. More...
|
Variables |
const int | MAX_ERROR_CODE = 3 |
const char * | messagesTable [MAX_ERROR_CODE+1] |
const Handle | NULL_HANDLE = -1 |
| a handle value designating an invalid handle. More...
|
const int | seekSet = 0x0001 |
| seek mode. More...
|
const int | seekCurrent = 0x0002 |
| seek mode. More...
|
const int | seekEnd = 0x0004 |
| seek mode. More...
|
const int | flAppend = 0x0001 |
| open mode. More...
|
const int | flRead = 0x0002 |
| open mode. More...
|
const int | flWrite = 0x0004 |
| open mode. More...
|
const int | flTruncate = 0x0008 |
| open mode. More...
|
const int | flOpenExisting = 0x0010 |
| open mode. More...
|
const int | flCreateNew = 0x0020 |
| open mode. More...
|
const int | flTemp = 0x0040 |
| open mode. More...
|
const int | shRead = 0x0001 |
| share mode. More...
|
const int | shWrite = 0x0002 |
| share mode. More...
|