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/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.

Namespaces

namespace  ucommon
 Common namespace for all ucommon objects.
 

Macros

#define __S_ISTYPE(mode, mask)
 
#define S_ISBLK(mode)
 
#define S_ISCHR(mode)
 
#define S_ISFIFO(mode)
 
#define S_ISLNK(mode)
 
#define S_ISREG(mode)
 
#define S_ISSOCK(mode)
 

Typedefs

typedef dir ucommon::dir_t
 
typedef dso ucommon::dso_t
 
typedef void * ucommon::mem_t
 Convenience type for loader operations.
 

Functions

class ucommon::__attribute__ ((visibility("default"))) ExclusiveProtocol
 An exclusive locking protocol interface base.
 
bool ucommon::is_device (const char *path)
 
bool ucommon::is_dir (const char *path)
 
bool ucommon::is_executable (const char *path)
 
bool ucommon::is_exists (const char *path)
 
bool ucommon::is_file (const char *path)
 
bool ucommon::is_link (const char *path)
 
bool ucommon::is_readable (const char *path)
 
bool ucommon::is_writable (const char *path)
 

Variables

class __attribute__((visibility("default"))) dir typedef fsys ucommon::fsys_t
 Convenience class for directories.
 

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

◆ __S_ISTYPE

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

Definition at line 67 of file fsys.h.

◆ S_ISBLK

#define S_ISBLK ( mode)
Value:
0

Definition at line 83 of file fsys.h.

◆ S_ISCHR

#define S_ISCHR ( mode)
Value:
0

Definition at line 77 of file fsys.h.

◆ S_ISFIFO

#define S_ISFIFO ( mode)
Value:
(0)

Definition at line 101 of file fsys.h.

◆ S_ISLNK

#define S_ISLNK ( mode)
Value:
(0)

Definition at line 107 of file fsys.h.

◆ S_ISREG

#define S_ISREG ( mode)
Value:
1

Definition at line 89 of file fsys.h.

◆ S_ISSOCK

#define S_ISSOCK ( mode)
Value:
(0)

Definition at line 95 of file fsys.h.