ucommon
|
Thread-aware file system manipulation class. More...
#include <ucommon/platform.h>
#include <ucommon/protocols.h>
#include <ucommon/thread.h>
#include <ucommon/string.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
class | charfile |
Access standard files through character protocol. More... | |
class | fsys |
A container for generic and o/s portable threadsafe file system functions. More... | |
Defines | |
#define | __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask)) |
#define | S_ISBLK(mode) 0 |
#define | S_ISCHR(mode) 0 |
#define | S_ISFIFO(mode) (0) |
#define | S_ISLNK(mode) (0) |
#define | S_ISREG(mode) 1 |
#define | S_ISSOCK(mode) (0) |
Typedefs | |
typedef fsys | fsys_t |
Convience type for fsys. | |
typedef void * | mem_t |
Convenience type for loader operations. | |
Functions | |
String | str (charfile &fp, strsize_t size) |
Variables | |
NAMESPACE_UCOMMON typedef void * | dir_t |
Convenience type for directory scan operations. |
Thread-aware file system manipulation class.
This is used to provide generic file operations that are OS independent and thread-safe in behavior. This is used in particular to wrap posix calls internally to pth, and to create portable code between MSWINDOWS and Posix low-level file I/O operations.
Definition in file fsys.h.