ucommon/fsys.h File Reference

Thread-aware file system manipulation class. More...

#include <ucommon/platform.h>
#include <ucommon/protocols.h>
#include <ucommon/thread.h>
#include <ucommon/string.h>
#include <ucommon/memory.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
Include dependency graph for fsys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  dir
 Convenience class for directories. More...
class  dso
 Convenience class for library plugins. 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 dir dir_t
typedef dso dso_t
typedef fsys fsys_t
 Convience type for fsys.

Functions

bool is_device (const char *path)
bool is_dir (const char *path)
bool is_executable (const char *path)
bool is_exists (const char *path)
bool is_file (const char *path)
bool is_link (const char *path)
bool is_readable (const char *path)
bool is_writable (const char *path)

Variables

NAMESPACE_UCOMMON typedef void * mem_t
 Convenience type for loader operations.

Detailed Description

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.


Generated on 24 Sep 2014 for ucommon by  doxygen 1.6.1