xrootd
Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

XrdOucNSWalk Class Reference

#include <XrdOucNSWalk.hh>

Collaboration diagram for XrdOucNSWalk:
Collaboration graph
[legend]

List of all members.

Classes

class  CallBack
struct  NSEnt

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
struct NSEntDEnts
struct stat dStat
CallBackedCB
char DPath [1032]
char * File
char * LKFn
int LKfd
int DPfd
int Opts
int errOK
int isEmpty

Constructor & Destructor Documentation

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

References DList, LKFn, XrdOucTList::next, and XList.


Member Function Documentation

void XrdOucNSWalk::addEnt ( XrdOucNSWalk::NSEnt eP) [private]
int XrdOucNSWalk::Build ( ) [private]
int XrdOucNSWalk::getLink ( XrdOucNSWalk::NSEnt eP) [private]
int XrdOucNSWalk::getStat ( XrdOucNSWalk::NSEnt eP,
int  doLstat = 0 
) [private]
int XrdOucNSWalk::getStat ( ) [private]

Referenced by Build().

XrdOucNSWalk::NSEnt * XrdOucNSWalk::Index ( int &  rc,
const char **  dPath = 0 
)
int XrdOucNSWalk::inXList ( const char *  dName) [private]

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

Referenced by Build().

int XrdOucNSWalk::isSymlink ( ) [private]

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

Referenced by Build().

int XrdOucNSWalk::LockFile ( ) [private]

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

Referenced by Index().

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

References edCB.

Referenced by XrdFrmFiles::XrdFrmFiles().

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

References DPath, and File.

Referenced by Index().


Member Data Documentation

struct NSEnt* XrdOucNSWalk::DEnts [private]

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

char XrdOucNSWalk::DPath[1032] [private]
int XrdOucNSWalk::DPfd [private]
struct stat XrdOucNSWalk::dStat [private]

Referenced by Build(), and Index().

int XrdOucNSWalk::errOK [private]

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

char* XrdOucNSWalk::File [private]
int XrdOucNSWalk::isEmpty [private]

Referenced by Build(), and Index().

int XrdOucNSWalk::LKfd [private]

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

char* XrdOucNSWalk::LKFn [private]
const int XrdOucNSWalk::noPath = 0x0100 [static]

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

int XrdOucNSWalk::Opts [private]

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

const int XrdOucNSWalk::Recurse = 0x0080 [static]
const int XrdOucNSWalk::retAll = 0x000f [static]
const int XrdOucNSWalk::retDir = 0x0001 [static]

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

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

Referenced by addEnt().

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

Referenced by addEnt().

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

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

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

Referenced by Build().

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

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