XrdOucNSWalk Class Reference

#include <XrdOucNSWalk.hh>

List of all members.

Public Member Functions

NSEntIndex (int &rc, const char **dPath=0)
void setCallBack (CallBack *cbP=0)
 XrdOucNSWalk (XrdSysError *erp, const char *dname, const char *LKfn=0, int opts=retAll, XrdOucTList *xP=0)
 ~XrdOucNSWalk ()

Static Public Attributes

static const int retDir = 0x0001
static const int retFile = 0x0002
static const int retLink = 0x0004
static const int retMisc = 0x0008
static const int retAll = 0x000f
static const int retStat = 0x0010
static const int retIDLO = 0x0020
static const int retIILO = 0x0040
static const int Recurse = 0x0080
static const int noPath = 0x0100
static const int skpErrs = 0x8000

Private Member Functions

void addEnt (XrdOucNSWalk::NSEnt *eP)
int Build ()
int getLink (XrdOucNSWalk::NSEnt *eP)
int getStat (XrdOucNSWalk::NSEnt *eP, int doLstat=0)
int getStat ()
int inXList (const char *dName)
int isSymlink ()
int LockFile ()
void setPath (char *newpath)

Private Attributes

XrdSysErroreDest
XrdOucTListDList
XrdOucTListXList
NSEntDEnts
stat dStat
CallBackedCB
char DPath [1032]
char * File
char * LKFn
int LKfd
int DPfd
int Opts
int errOK
int isEmpty

Classes

class  CallBack
struct  NSEnt


Detailed Description

Definition at line 23 of file XrdOucNSWalk.hh.


Constructor & Destructor Documentation

XrdOucNSWalk::XrdOucNSWalk ( XrdSysError erp,
const char *  dname,
const char *  LKfn = 0,
int  opts = retAll,
XrdOucTList xP = 0 
)

Definition at line 29 of file XrdOucNSWalk.cc.

References DEnts, DList, DPfd, edCB, eDest, errOK, XrdOucTList::ival, LKfd, LKFn, XrdOucTList::next, Opts, skpErrs, XrdOucTList::text, and XList.

XrdOucNSWalk::~XrdOucNSWalk (  ) 

Definition at line 58 of file XrdOucNSWalk.cc.

References DList, free(), LKFn, XrdOucTList::next, and XList.


Member Function Documentation

XrdOucNSWalk::NSEnt * XrdOucNSWalk::Index ( int &  rc,
const char **  dPath = 0 
)

Definition at line 73 of file XrdOucNSWalk.cc.

References Build(), close, DEnts, DList, DPath, dStat, edCB, errOK, isEmpty, XrdOucNSWalk::CallBack::isEmpty(), LKfd, LKFn, LockFile(), XrdOucTList::next, setPath(), and XrdOucTList::text.

Referenced by XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), XrdCnsInventory::Conduct(), XrdCnsLog::Dirs(), XrdFrmAdmin::FindFail(), XrdFrmFiles::Get(), XrdCnsLog::List(), XrdFrmAdmin::Unlink(), and XrdFrmAdmin::UnlinkDir().

void XrdOucNSWalk::setCallBack ( CallBack cbP = 0  )  [inline]

Definition at line 77 of file XrdOucNSWalk.hh.

References edCB.

Referenced by XrdFrmFiles::XrdFrmFiles().

void XrdOucNSWalk::addEnt ( XrdOucNSWalk::NSEnt eP  )  [private]

Definition at line 105 of file XrdOucNSWalk.cc.

References DEnts, DPath, XrdOucNSWalk::NSEnt::File, File, XrdOucNSWalk::NSEnt::Next, noPath, Opts, XrdOucNSWalk::NSEnt::Path, XrdOucNSWalk::NSEnt::Plen, retIDLO, and retIILO.

Referenced by Build().

int XrdOucNSWalk::Build (  )  [private]

Definition at line 134 of file XrdOucNSWalk.cc.

References addEnt(), close, closedir, D, DEnts, DList, DPath, DPfd, dStat, edCB, eDest, XrdSysError::Emsg(), errOK, Reflex::F, File, fstat, getLink(), getStat(), inXList(), XrdOucNSWalk::NSEnt::isDir, isEmpty, XrdOucNSWalk::NSEnt::isFile, XrdOucNSWalk::NSEnt::isLink, XrdOucNSWalk::NSEnt::isMisc, isSymlink(), LKFn, open, opendir, Opts, ROOT::Math::Cephes::P, readdir, Recurse, retDir, retFile, retLink, retMisc, retStat, stat, strcpy(), and XList.

Referenced by Index().

int XrdOucNSWalk::getLink ( XrdOucNSWalk::NSEnt eP  )  [private]

Definition at line 226 of file XrdOucNSWalk.cc.

References DPath, eDest, XrdSysError::Emsg(), XrdOucNSWalk::NSEnt::Link, XrdOucNSWalk::NSEnt::Lksz, and malloc().

Referenced by Build().

int XrdOucNSWalk::getStat ( XrdOucNSWalk::NSEnt eP,
int  doLstat = 0 
) [private]

Definition at line 248 of file XrdOucNSWalk.cc.

References DPath, DPfd, eDest, XrdSysError::Emsg(), File, XrdOucNSWalk::NSEnt::isBad, XrdOucNSWalk::NSEnt::isDir, XrdOucNSWalk::NSEnt::isFile, XrdOucNSWalk::NSEnt::isLink, XrdOucNSWalk::NSEnt::isMisc, lstat, XrdOucNSWalk::NSEnt::Stat, stat, and XrdOucNSWalk::NSEnt::Type.

int XrdOucNSWalk::getStat (  )  [private]

Referenced by Build().

int XrdOucNSWalk::inXList ( const char *  dName  )  [private]

Definition at line 286 of file XrdOucNSWalk.cc.

References DPath, XrdOucTList::next, XrdOucTList::text, and XList.

Referenced by Build().

int XrdOucNSWalk::isSymlink (  )  [private]

Definition at line 307 of file XrdOucNSWalk.cc.

References DPath, DPfd, File, lstat, and stat.

Referenced by Build().

int XrdOucNSWalk::LockFile (  )  [private]

Definition at line 332 of file XrdOucNSWalk.cc.

References DPath, eDest, XrdSysError::Emsg(), fcntl(), File, FLOCK_t, LKfd, LKFn, open, and strcpy().

Referenced by Index().

void XrdOucNSWalk::setPath ( char *  newpath  )  [private]

Definition at line 373 of file XrdOucNSWalk.cc.

References DPath, File, n, and strcpy().

Referenced by Index().


Member Data Documentation

const int XrdOucNSWalk::retDir = 0x0001 [static]

Definition at line 81 of file XrdOucNSWalk.hh.

Referenced by Build(), and XrdCnsLog::Dirs().

const int XrdOucNSWalk::retFile = 0x0002 [static]

Definition at line 82 of file XrdOucNSWalk.hh.

Referenced by XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), Build(), XrdCnsInventory::Conduct(), XrdFrmAdmin::FindFail(), and XrdCnsLog::List().

const int XrdOucNSWalk::retLink = 0x0004 [static]

Definition at line 83 of file XrdOucNSWalk.hh.

Referenced by Build(), and XrdCnsInventory::Conduct().

const int XrdOucNSWalk::retMisc = 0x0008 [static]

Definition at line 84 of file XrdOucNSWalk.hh.

Referenced by Build().

const int XrdOucNSWalk::retAll = 0x000f [static]

Definition at line 85 of file XrdOucNSWalk.hh.

Referenced by XrdFrmAdmin::Unlink(), and XrdFrmAdmin::UnlinkDir().

const int XrdOucNSWalk::retStat = 0x0010 [static]

Definition at line 87 of file XrdOucNSWalk.hh.

Referenced by XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), Build(), XrdCnsInventory::Conduct(), XrdCnsLog::List(), XrdFrmAdmin::Unlink(), and XrdFrmAdmin::UnlinkDir().

const int XrdOucNSWalk::retIDLO = 0x0020 [static]

Definition at line 88 of file XrdOucNSWalk.hh.

Referenced by addEnt().

const int XrdOucNSWalk::retIILO = 0x0040 [static]

Definition at line 89 of file XrdOucNSWalk.hh.

Referenced by addEnt().

const int XrdOucNSWalk::Recurse = 0x0080 [static]

Definition at line 90 of file XrdOucNSWalk.hh.

Referenced by Build(), XrdCnsInventory::Conduct(), XrdCnsLog::Dirs(), XrdFrmAdmin::FindFail(), and XrdFrmAdmin::Unlink().

const int XrdOucNSWalk::noPath = 0x0100 [static]

Definition at line 91 of file XrdOucNSWalk.hh.

Referenced by addEnt(), and XrdCnsInventory::Conduct().

const int XrdOucNSWalk::skpErrs = 0x8000 [static]

Definition at line 92 of file XrdOucNSWalk.hh.

Referenced by XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), XrdCnsInventory::Conduct(), and XrdOucNSWalk().

XrdSysError* XrdOucNSWalk::eDest [private]

Definition at line 118 of file XrdOucNSWalk.hh.

Referenced by Build(), getLink(), getStat(), LockFile(), and XrdOucNSWalk().

XrdOucTList* XrdOucNSWalk::DList [private]

Definition at line 119 of file XrdOucNSWalk.hh.

Referenced by Build(), Index(), XrdOucNSWalk(), and ~XrdOucNSWalk().

XrdOucTList* XrdOucNSWalk::XList [private]

Definition at line 120 of file XrdOucNSWalk.hh.

Referenced by Build(), inXList(), XrdOucNSWalk(), and ~XrdOucNSWalk().

struct NSEnt* XrdOucNSWalk::DEnts [private]

Definition at line 121 of file XrdOucNSWalk.hh.

Referenced by addEnt(), Build(), Index(), and XrdOucNSWalk().

struct stat XrdOucNSWalk::dStat [private]

Definition at line 122 of file XrdOucNSWalk.hh.

Referenced by Build(), and Index().

CallBack* XrdOucNSWalk::edCB [private]

Definition at line 123 of file XrdOucNSWalk.hh.

Referenced by Build(), Index(), setCallBack(), and XrdOucNSWalk().

char XrdOucNSWalk::DPath[1032] [private]

Definition at line 124 of file XrdOucNSWalk.hh.

Referenced by addEnt(), Build(), getLink(), getStat(), Index(), inXList(), isSymlink(), LockFile(), and setPath().

char* XrdOucNSWalk::File [private]

Definition at line 125 of file XrdOucNSWalk.hh.

Referenced by addEnt(), Build(), getStat(), isSymlink(), LockFile(), and setPath().

char* XrdOucNSWalk::LKFn [private]

Definition at line 126 of file XrdOucNSWalk.hh.

Referenced by Build(), Index(), LockFile(), XrdOucNSWalk(), and ~XrdOucNSWalk().

int XrdOucNSWalk::LKfd [private]

Definition at line 127 of file XrdOucNSWalk.hh.

Referenced by Index(), LockFile(), and XrdOucNSWalk().

int XrdOucNSWalk::DPfd [private]

Definition at line 128 of file XrdOucNSWalk.hh.

Referenced by Build(), getStat(), isSymlink(), and XrdOucNSWalk().

int XrdOucNSWalk::Opts [private]

Definition at line 129 of file XrdOucNSWalk.hh.

Referenced by addEnt(), Build(), and XrdOucNSWalk().

int XrdOucNSWalk::errOK [private]

Definition at line 130 of file XrdOucNSWalk.hh.

Referenced by Build(), Index(), and XrdOucNSWalk().

int XrdOucNSWalk::isEmpty [private]

Definition at line 131 of file XrdOucNSWalk.hh.

Referenced by Build(), and Index().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1