xrootd
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes | List of all members
XrdPosixXrootd Class Reference

#include <XrdPosixXrootd.hh>

Collaboration diagram for XrdPosixXrootd:
Collaboration graph
[legend]

Public Member Functions

 XrdPosixXrootd (int maxfd=255, int maxdir=255, int maxthr=255)
 
 ~XrdPosixXrootd ()
 

Static Public Member Functions

static int Close (int fildes, int Stream=0)
 
static int Closedir (DIR *dirp)
 
static int Fstat (int fildes, struct stat *buf)
 
static int Fsync (int fildes)
 
static int Ftruncate (int fildes, off_t offset)
 
static long long Getxattr (const char *path, const char *name, void *value, unsigned long long size)
 
static off_t Lseek (int fildes, off_t offset, int whence)
 
static int Mkdir (const char *path, mode_t mode)
 
static int Open (const char *path, int oflag, mode_t mode=0, XrdPosixCallBack *cbP=0)
 
static DIR * Opendir (const char *path)
 
static ssize_t Pread (int fildes, void *buf, size_t nbyte, off_t offset)
 
static ssize_t Read (int fildes, void *buf, size_t nbyte)
 
static ssize_t Readv (int fildes, const struct iovec *iov, int iovcnt)
 
static struct dirent * Readdir (DIR *dirp)
 
static struct dirent64 * Readdir64 (DIR *dirp)
 
static int Readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result)
 
static int Readdir64_r (DIR *dirp, struct dirent64 *entry, struct dirent64 **result)
 
static int Rename (const char *oldpath, const char *newpath)
 
static void Rewinddir (DIR *dirp)
 
static int Rmdir (const char *path)
 
static void Seekdir (DIR *dirp, long loc)
 
static int Stat (const char *path, struct stat *buf)
 
static int Statfs (const char *path, struct statfs *buf)
 
static int Statvfs (const char *path, struct statvfs *buf)
 
static ssize_t Pwrite (int fildes, const void *buf, size_t nbyte, off_t offset)
 
static long Telldir (DIR *dirp)
 
static int Truncate (const char *path, off_t offset)
 
static int Unlink (const char *path)
 
static ssize_t Write (int fildes, const void *buf, size_t nbyte)
 
static ssize_t Write (int fildes, void *buf, size_t nbyte, off_t offset)
 
static ssize_t Writev (int fildes, const struct iovec *iov, int iovcnt)
 
static int Access (const char *path, int amode)
 
static int endPoint (int FD, char *Buff, int Blen)
 
static bool isXrootdDir (DIR *dirp)
 
static int mapError (int rc)
 
static bool myFD (int fd)
 
static void OpenCB (XrdPosixFile *fp, void *cbArg, int res)
 
static int QueryChksum (const char *, time_t &, char *, int)
 
static long long QueryOpaque (const char *, char *, int)
 
static void setDebug (int val)
 
static void setEnv (const char *var, const char *val)
 
static void setEnv (const char *var, long val)
 
static void setCache (XrdOucCache *cP)
 

Static Public Attributes

static const int isStream = 0x40000000
 
static int Debug = -2
 

Static Private Member Functions

static void initEnv ()
 
static void initEnv (char *eData)
 
static void initEnv (XrdOucEnv &, const char *, long long &)
 
static int Fault (XrdPosixFile *fp, int complete=1)
 
static XrdPosixFilefindFP (int fildes, int glk=0)
 
static XrdPosixDirfindDIR (DIR *dirp, int glk=0)
 
static void initStat (struct stat *buf)
 
static void initXdev (dev_t &st_dev, dev_t &st_rdev)
 
static int mapFlags (int flags)
 
static int mapMode (mode_t Mode)
 

Static Private Attributes

static XrdSysMutex myMutex
 
static XrdPosixFile ** myFiles = 0
 
static XrdPosixDir ** myDirs = 0
 
static XrdOucCachemyCache = 0
 
static int lastFD = -1
 
static int highFD = -1
 
static int baseFD = 0
 
static int freeFD = 0
 
static int lastDir = -1
 
static int highDir = -1
 
static int devNull = -1
 
static int pllOpen = 0
 
static int maxThreads = 0
 
static int initDone = 0
 

Constructor & Destructor Documentation

XrdPosixXrootd::XrdPosixXrootd ( int  maxfd = 255,
int  maxdir = 255,
int  maxthr = 255 
)
XrdPosixXrootd::~XrdPosixXrootd ( )

Member Function Documentation

int XrdPosixXrootd::Access ( const char *  path,
int  amode 
)
static
int XrdPosixXrootd::Close ( int  fildes,
int  Stream = 0 
)
static
int XrdPosixXrootd::Closedir ( DIR *  dirp)
static
int XrdPosixXrootd::endPoint ( int  FD,
char *  Buff,
int  Blen 
)
static
int XrdPosixXrootd::Fault ( XrdPosixFile fp,
int  complete = 1 
)
staticprivate
XrdPosixDir * XrdPosixXrootd::findDIR ( DIR *  dirp,
int  glk = 0 
)
staticprivate
XrdPosixFile * XrdPosixXrootd::findFP ( int  fildes,
int  glk = 0 
)
staticprivate
int XrdPosixXrootd::Fstat ( int  fildes,
struct stat buf 
)
static
int XrdPosixXrootd::Fsync ( int  fildes)
static
int XrdPosixXrootd::Ftruncate ( int  fildes,
off_t  offset 
)
static
long long XrdPosixXrootd::Getxattr ( const char *  path,
const char *  name,
void *  value,
unsigned long long  size 
)
static
void XrdPosixXrootd::initEnv ( )
staticprivate
void XrdPosixXrootd::initEnv ( char *  eData)
staticprivate
void XrdPosixXrootd::initEnv ( XrdOucEnv theEnv,
const char *  vName,
long long &  Dest 
)
staticprivate

References XrdOucEnv::Get().

void XrdPosixXrootd::initStat ( struct stat buf)
staticprivate

References initXdev(), and stat().

Referenced by Fstat(), and Stat().

void XrdPosixXrootd::initXdev ( dev_t &  st_dev,
dev_t &  st_rdev 
)
staticprivate

References stat().

Referenced by initStat().

bool XrdPosixXrootd::isXrootdDir ( DIR *  dirp)
static
off_t XrdPosixXrootd::Lseek ( int  fildes,
off_t  offset,
int  whence 
)
static
int XrdPosixXrootd::mapError ( int  rc)
static
int XrdPosixXrootd::mapFlags ( int  flags)
staticprivate
int XrdPosixXrootd::mapMode ( mode_t  Mode)
staticprivate

References kXR_gr, kXR_gw, kXR_gx, kXR_or, kXR_ox, kXR_ur, kXR_uw, and kXR_ux.

Referenced by Open().

int XrdPosixXrootd::Mkdir ( const char *  path,
mode_t  mode 
)
static
static bool XrdPosixXrootd::myFD ( int  fd)
inlinestatic
int XrdPosixXrootd::Open ( const char *  path,
int  oflag,
mode_t  mode = 0,
XrdPosixCallBack cbP = 0 
)
static
void XrdPosixXrootd::OpenCB ( XrdPosixFile fp,
void *  cbArg,
int  res 
)
static
DIR * XrdPosixXrootd::Opendir ( const char *  path)
static
ssize_t XrdPosixXrootd::Pread ( int  fildes,
void *  buf,
size_t  nbyte,
off_t  offset 
)
static
ssize_t XrdPosixXrootd::Pwrite ( int  fildes,
const void *  buf,
size_t  nbyte,
off_t  offset 
)
static
int XrdPosixXrootd::QueryChksum ( const char *  path,
time_t &  Mtime,
char *  value,
int  vsize 
)
static
long long XrdPosixXrootd::QueryOpaque ( const char *  path,
char *  value,
int  size 
)
static
ssize_t XrdPosixXrootd::Read ( int  fildes,
void *  buf,
size_t  nbyte 
)
static
struct dirent * XrdPosixXrootd::Readdir ( DIR *  dirp)
staticread

References Readdir64().

Referenced by XrdFfsPosix_readdir(), and XrdPosix_Readdir().

struct dirent64 * XrdPosixXrootd::Readdir64 ( DIR *  dirp)
staticread
int XrdPosixXrootd::Readdir64_r ( DIR *  dirp,
struct dirent64 *  entry,
struct dirent64 **  result 
)
static
int XrdPosixXrootd::Readdir_r ( DIR *  dirp,
struct dirent *  entry,
struct dirent **  result 
)
static

References Readdir64_r().

Referenced by XrdPosix_Readdir_r().

ssize_t XrdPosixXrootd::Readv ( int  fildes,
const struct iovec *  iov,
int  iovcnt 
)
static

References Read().

Referenced by XrdPosix_Readv().

int XrdPosixXrootd::Rename ( const char *  oldpath,
const char *  newpath 
)
static
void XrdPosixXrootd::Rewinddir ( DIR *  dirp)
static
int XrdPosixXrootd::Rmdir ( const char *  path)
static
void XrdPosixXrootd::Seekdir ( DIR *  dirp,
long  loc 
)
static
void XrdPosixXrootd::setCache ( XrdOucCache cP)
static

References myCache.

Referenced by XrdPssSys::getCache().

void XrdPosixXrootd::setDebug ( int  val)
static

References Debug, and setEnv().

Referenced by XrdPssSys::Configure(), and XrdPssSys::xtrac().

void XrdPosixXrootd::setEnv ( const char *  var,
const char *  val 
)
static
void XrdPosixXrootd::setEnv ( const char *  var,
long  val 
)
static

References EnvPutInt.

int XrdPosixXrootd::Stat ( const char *  path,
struct stat buf 
)
static
int XrdPosixXrootd::Statfs ( const char *  path,
struct statfs buf 
)
static

References statfs(), Statvfs(), and statvfs().

Referenced by XrdPosix_Statfs().

int XrdPosixXrootd::Statvfs ( const char *  path,
struct statvfs buf 
)
static
long XrdPosixXrootd::Telldir ( DIR *  dirp)
static
int XrdPosixXrootd::Truncate ( const char *  path,
off_t  offset 
)
static
int XrdPosixXrootd::Unlink ( const char *  path)
static
ssize_t XrdPosixXrootd::Write ( int  fildes,
const void *  buf,
size_t  nbyte 
)
static
static ssize_t XrdPosixXrootd::Write ( int  fildes,
void *  buf,
size_t  nbyte,
off_t  offset 
)
static
ssize_t XrdPosixXrootd::Writev ( int  fildes,
const struct iovec *  iov,
int  iovcnt 
)
static

References Write().

Referenced by XrdPosix_Writev().

Member Data Documentation

int XrdPosixXrootd::baseFD = 0
staticprivate
int XrdPosixXrootd::Debug = -2
static
int XrdPosixXrootd::devNull = -1
staticprivate

Referenced by Open(), Opendir(), and XrdPosixXrootd().

int XrdPosixXrootd::freeFD = 0
staticprivate

Referenced by Close(), and Open().

int XrdPosixXrootd::highDir = -1
staticprivate
int XrdPosixXrootd::highFD = -1
staticprivate

Referenced by myFD(), Open(), and ~XrdPosixXrootd().

int XrdPosixXrootd::initDone = 0
staticprivate

Referenced by XrdPosixXrootd(), and ~XrdPosixXrootd().

const int XrdPosixXrootd::isStream = 0x40000000
static

Referenced by Open(), and XrdPosix_Fopen().

int XrdPosixXrootd::lastDir = -1
staticprivate

Referenced by Opendir(), and XrdPosixXrootd().

int XrdPosixXrootd::lastFD = -1
staticprivate

Referenced by findFP(), Open(), and XrdPosixXrootd().

int XrdPosixXrootd::maxThreads = 0
staticprivate

Referenced by Open(), OpenCB(), and XrdPosixXrootd().

XrdOucCache * XrdPosixXrootd::myCache = 0
staticprivate

Referenced by initEnv(), and setCache().

XrdPosixDir ** XrdPosixXrootd::myDirs = 0
staticprivate
XrdPosixFile ** XrdPosixXrootd::myFiles = 0
staticprivate
XrdSysMutex XrdPosixXrootd::myMutex
staticprivate
int XrdPosixXrootd::pllOpen = 0
staticprivate

Referenced by initEnv(), and Open().


The documentation for this class was generated from the following files: