ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

fsys.h File Reference
#include <ucommon/platform.h>
#include <ucommon/protocols.h>
#include <ucommon/thread.h>
#include <ucommon/typeref.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.


class  ucommon::fsys
class  ucommon::dso
class  ucommon::dir




#define __S_ISTYPE(mode, mask)   (((mode) & S_IFMT) == (mask))
#define S_ISCHR(mode)   0
#define S_ISBLK(mode)   0
#define S_ISREG(mode)   1
#define S_ISSOCK(mode)   (0)
#define S_ISFIFO(mode)   (0)
#define S_ISLNK(mode)   (0)


typedef void * ucommon::mem_t
typedef fsys ucommon::fsys_t
typedef dir ucommon::dir_t
typedef dso ucommon::dso_t


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

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.

Macro Definition Documentation


#define __S_ISTYPE (   mode,
)    (((mode) & S_IFMT) == (mask))

Definition at line 67 of file fsys.h.


#define S_ISBLK (   mode)    0

Definition at line 83 of file fsys.h.


#define S_ISCHR (   mode)    0

Definition at line 77 of file fsys.h.


#define S_ISFIFO (   mode)    (0)

Definition at line 101 of file fsys.h.


#define S_ISLNK (   mode)    (0)

Definition at line 107 of file fsys.h.


#define S_ISREG (   mode)    1

Definition at line 89 of file fsys.h.


#define S_ISSOCK (   mode)    (0)

Definition at line 95 of file fsys.h.