ucommon
|
A low level portable directory class. More...
#include <file.h>
Inherits ost::File.
Static Public Member Functions | |
static bool | create (char *path, Attr attr=attrGroup) |
static bool | getPrefix (char *path, size_t size=4096) |
static bool | remove (char *path) |
static bool | setPrefix (char *path) |
![]() | |
static char * | getDirname (char *path, char *buffer, size_t size=4096) |
static char * | getExtension (char *path) |
static char * | getFilename (char *path) |
static char * | getFilename (char *path, char *buffer, size_t size=255) |
static char * | getRealpath (char *path, char *buffer, size_t size=4096) |
Additional Inherited Members | |
![]() | |
enum | Access { accessReadOnly = 00, accessWriteOnly = 01, accessReadWrite = 02 } |
typedef enum Access | Access |
enum | Attr { attrInvalid = 0, attrPrivate = 0400 | 0200, attrGroup = attrPrivate | ( 0400 >> 3) | ( 0200 >> 3), attrPublic = attrGroup | ( ( 0400 >> 3) >> 3) | ( ( 0200 >> 3) >> 3) } |
typedef enum Attr | Attr |
enum | Complete { completionImmediate, completionDelayed, completionDeferred } |
typedef enum Complete | Complete |
enum | Error { errSuccess = 0, errNotOpened, errMapFailed, errInitFailed, errOpenDenied, errOpenFailed, errOpenInUse, errReadInterrupted, errReadIncomplete, errReadFailure, errWriteInterrupted, errWriteIncomplete, errWriteFailure, errLockFailure, errExtended } |
typedef enum Error | Error |
enum | Mapping { mappedRead = accessReadOnly, mappedWrite = accessWriteOnly, mappedReadWrite = accessReadWrite } |
typedef enum Mapping | Mapping |
enum | Open { openReadOnly = 00, openWriteOnly = 01, openReadWrite = 02, openAppend = 01 | 02000, openSync = 02 | 04010000, openTruncate = 02 | 01000 } |
typedef enum Open | Open |
![]() | |
typedef struct ost::File::_fcb | fcb_t |
A low level portable directory class.
Used to support ccstd Directory container. This provides a basic mechanism for allocating and accessing file entries.