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>
#include <ucommon/thread.h>
Go to the source code of this file.
Data Structures | |
class | ucc::charfile |
Access standard files through character protocol. More... | |
class | ucc::fsys |
A container for generic and o/s portable threadsafe file system functions. More... | |
Namespaces | |
namespace | ucc |
Common namespace for all ucommon objects. | |
Defines | |
#define | __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask)) |
#define | S_ISBLK(mode) 0 |
#define | S_ISCHR(mode) __S_ISTYPE((mode), S_IFCHR) |
#define | S_ISDIR(mode) __S_ISTYPE((mode), S_IFDIR) |
#define | S_ISFIFO(mode) 0 |
#define | S_ISLNK(mode) 0 |
#define | S_ISREG(mode) __S_ISTYPE((mode), S_IFREG) |
#define | S_ISSOCK(mode) 0 |
Typedefs | |
typedef void * | ucc::dir_t |
Convenience type for directory scan operations. | |
typedef fsys | ucc::fsys_t |
Convience type for fsys. | |
typedef void * | ucc::mem_t |
Convenience type for loader operations. | |
Functions | |
String | ucc::str (charfile &fp, strsize_t size) |
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.