XrdOucUtils Class Reference

#include <XrdOucUtils.hh>

List of all members.

Public Member Functions

 XrdOucUtils ()
 ~XrdOucUtils ()

Static Public Member Functions

static char * eText (int rc, char *eBuff, int eBlen, int AsIs=0)
static int doIf (XrdSysError *eDest, XrdOucStream &Config, const char *what, const char *hname, const char *nname, const char *pname)
static int fmtBytes (long long val, char *buff, int bsz)
static char * genPath (const char *path, const char *inst, const char *psfx=0)
static int genPath (char *buff, int blen, const char *path, const char *psfx=0)
static const char * InstName (int TranOpt=0)
static const char * InstName (const char *name, int Fillit=1)
static int is1of (char *val, const char **clist)
static void makeHome (XrdSysError &eDest, const char *inst)
static int makePath (char *path, mode_t mode)
static char * subLogfn (XrdSysError &eDest, const char *inst, char *logfn)
static void Undercover (XrdSysError &eDest, int noLog)

Static Public Attributes

static const mode_t pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH


Detailed Description

Definition at line 21 of file XrdOucUtils.hh.


Constructor & Destructor Documentation

XrdOucUtils::XrdOucUtils (  )  [inline]

Definition at line 53 of file XrdOucUtils.hh.

XrdOucUtils::~XrdOucUtils (  )  [inline]

Definition at line 54 of file XrdOucUtils.hh.


Member Function Documentation

char * XrdOucUtils::eText ( int  rc,
char *  eBuff,
int  eBlen,
int  AsIs = 0 
) [static]

Definition at line 40 of file XrdOucUtils.cc.

References strerror(), and strlcpy().

Referenced by XrdCnsSsi::ApplyLog(), XrdCnsSsiCfg::Configure(), XrdCnsSsi::List(), XrdCnsSsi::Updt(), and XrdCnsSsi::Write().

int XrdOucUtils::doIf ( XrdSysError eDest,
XrdOucStream Config,
const char *  what,
const char *  hname,
const char *  nname,
const char *  pname 
) [static]

Definition at line 72 of file XrdOucUtils.cc.

References XrdFrm::Config(), eDest, XrdSysError::Emsg(), is1of(), XrdNetDNS::isMatch(), and val.

Referenced by XrdOucStream::doif(), main(), XrdCmsClientConfig::xmang(), XrdCmsConfig::xmang(), XrdConfig::xport(), XrdOfs::xred(), XrdOfs::xrole(), and XrdCmsConfig::xrole().

int XrdOucUtils::fmtBytes ( long long  val,
char *  buff,
int  bsz 
) [static]

Definition at line 155 of file XrdOucUtils.cc.

References snprintf.

Referenced by XrdFrmPurge::Display(), XrdFrmPurge::Stats(), and XrdFrmPurge::Track().

char * XrdOucUtils::genPath ( const char *  path,
const char *  inst,
const char *  psfx = 0 
) [static]

Definition at line 182 of file XrdOucUtils.cc.

References i, strcat(), strcpy(), and strlcpy().

Referenced by XrdOfs::ConfigPosc(), XrdCmsClientConfig::Configure(), XrdXrootdProtocol::Configure(), XrdCmsConfig::Configure2(), XrdFrmUtils::makePath(), XrdCmsConfig::PidFile(), XrdXrootdProtocol::PidFile(), XrdConfig::Setup(), XrdXrootdProtocol::xprep(), and XrdNetCmsNotify::XrdNetCmsNotify().

int XrdOucUtils::genPath ( char *  buff,
int  blen,
const char *  path,
const char *  psfx = 0 
) [static]

Definition at line 200 of file XrdOucUtils.cc.

References i, j, strcat(), and strcpy().

const char * XrdOucUtils::InstName ( int  TranOpt = 0  )  [static]

Definition at line 221 of file XrdOucUtils.cc.

References getenv().

Referenced by XrdOfs::ConfigPosc(), XrdOssSys::ConfigStage(), XrdFrmConfig::Configure(), XrdCmsClientConfig::Configure(), XrdPssSys::Configure(), XrdCnsConfig::Configure(), XrdConfig::Configure(), XrdCmsConfig::Configure1(), XrdCmsConfig::Configure2(), XrdOssSpace::Init(), main(), XrdCmsConfig::PidFile(), XrdXrootdProtocol::PidFile(), XrdFrmReqAgent::Start(), XrdFrmConfig::XrdFrmConfig(), XrdFrmProxy::XrdFrmProxy(), XrdNetCmsNotify::XrdNetCmsNotify(), XrdOfs::xred(), and XrdOfs::xrole().

const char * XrdOucUtils::InstName ( const char *  name,
int  Fillit = 1 
) [static]

Definition at line 238 of file XrdOucUtils.cc.

int XrdOucUtils::is1of ( char *  val,
const char **  clist 
) [static]

Definition at line 247 of file XrdOucUtils.cc.

References i.

Referenced by doIf().

void XrdOucUtils::makeHome ( XrdSysError eDest,
const char *  inst 
) [static]

Definition at line 259 of file XrdOucUtils.cc.

References chdir, eDest, XrdSysError::Emsg(), MAKEDIR, pathMode, and strcat().

Referenced by XrdFrmConfig::Configure(), and XrdConfig::Configure().

int XrdOucUtils::makePath ( char *  path,
mode_t  mode 
) [static]

Definition at line 279 of file XrdOucUtils.cc.

References MAKEDIR, and stat.

Referenced by XrdConfig::ASocket(), XrdOfs::ConfigPosc(), XrdCnsConfig::Configure(), XrdOssSys::Create(), XrdCnsLogClient::Init(), XrdFrmUtils::makePath(), XrdFrmUtils::makeQDir(), XrdCmsConfig::PidFile(), XrdXrootdProtocol::PidFile(), XrdOssSys::Reloc(), XrdOssSys::Rename(), XrdSecsssKT::Rewrite(), XrdNetSocket::socketPath(), subLogfn(), and XrdXrootdProtocol::xprep().

char * XrdOucUtils::subLogfn ( XrdSysError eDest,
const char *  inst,
char *  logfn 
) [static]

Definition at line 307 of file XrdOucUtils.cc.

References eDest, XrdSysError::Emsg(), free(), makePath(), rindex, S_IROTH, S_IRWXG, S_IRWXU, S_IXOTH, strcat(), and strcpy().

Referenced by XrdFrmConfig::Configure(), and XrdConfig::Configure().

void XrdOucUtils::Undercover ( XrdSysError eDest,
int  noLog 
) [static]

Definition at line 339 of file XrdOucUtils.cc.

References close, eDest, XrdSysError::Emsg(), fork(), and open.

Referenced by XrdFrmConfig::Configure(), and XrdConfig::Configure().


Member Data Documentation

const mode_t XrdOucUtils::pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH [static]

Definition at line 25 of file XrdOucUtils.hh.

Referenced by makeHome(), XrdCmsConfig::PidFile(), XrdXrootdProtocol::PidFile(), and XrdXrootdProtocol::xprep().


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