#include <XrdOucUtils.hh>
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 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 Public Attributes | |
| static const mode_t | pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH |
| XrdOucUtils::XrdOucUtils | ( | ) | [inline] |
| XrdOucUtils::~XrdOucUtils | ( | ) | [inline] |
| int XrdOucUtils::doIf | ( | XrdSysError * | eDest, | |
| XrdOucStream & | Config, | |||
| const char * | what, | |||
| const char * | hname, | |||
| const char * | nname, | |||
| const char * | pname | |||
| ) | [static] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), is1of(), and XrdNetDNS::isMatch().
Referenced by XrdOucStream::doif(), XrdPssSys::xmang(), XrdOlbConfig::xmang(), XrdOdcConfig::xmang(), XrdCmsConfig::xmang(), XrdCmsClientConfig::xmang(), XrdOlbConfig::xport(), XrdConfig::xport(), XrdOfs::xred(), XrdOlbConfig::xrole(), XrdOfs::xrole(), XrdCmsConfig::xrole(), and XrdOlbConfig::xsubs().
| char * XrdOucUtils::eText | ( | int | rc, | |
| char * | eBuff, | |||
| int | eBlen, | |||
| int | AsIs = 0 | |||
| ) | [static] |
References strlcpy().
Referenced by XrdCnsSsi::ApplyLog(), XrdCnsSsiCfg::Configure(), XrdCnsSsi::List(), XrdCnsSsi::Updt(), and XrdCnsSsi::Write().
| int XrdOucUtils::fmtBytes | ( | long long | val, | |
| char * | buff, | |||
| int | bsz | |||
| ) | [static] |
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] |
References strlcpy().
Referenced by XrdFrmConfig::ConfigPaths(), XrdOfs::ConfigPosc(), XrdXrootdProtocol::Configure(), XrdOdcConfig::Configure(), XrdCmsClientConfig::Configure(), XrdOlbConfig::Configure2(), XrdCmsConfig::Configure2(), XrdXrootdProtocol::PidFile(), XrdOlbConfig::PidFile(), XrdCmsConfig::PidFile(), XrdConfig::Setup(), XrdXrootdProtocol::xprep(), and XrdCmsNotify::XrdCmsNotify().
| int XrdOucUtils::genPath | ( | char * | buff, | |
| int | blen, | |||
| const char * | path, | |||
| const char * | psfx = 0 | |||
| ) | [static] |
| int XrdOucUtils::is1of | ( | char * | val, | |
| const char ** | clist | |||
| ) | [static] |
Referenced by doIf().
| void XrdOucUtils::makeHome | ( | XrdSysError & | eDest, | |
| const char * | inst | |||
| ) | [static] |
References chdir(), XrdSysError::Emsg(), MAKEDIR, and pathMode.
Referenced by XrdFrmConfig::ConfigPaths(), and XrdConfig::Configure().
| int XrdOucUtils::makePath | ( | char * | path, | |
| mode_t | mode | |||
| ) | [static] |
References index(), MAKEDIR, and stat().
Referenced by XrdConfig::ASocket(), XrdFrmConfig::ConfigPaths(), XrdOfs::ConfigPosc(), XrdCnsConfig::Configure(), XrdOssSys::Create(), XrdCnsLogClient::Init(), mainConfig(), XrdXrootdProtocol::PidFile(), XrdOlbConfig::PidFile(), XrdCmsConfig::PidFile(), XrdOssSys::Reloc(), XrdOssSys::Rename(), XrdSecsssKT::Rewrite(), XrdNetSocket::socketPath(), subLogfn(), and XrdXrootdProtocol::xprep().
| char * XrdOucUtils::subLogfn | ( | XrdSysError & | eDest, | |
| const char * | inst, | |||
| char * | logfn | |||
| ) | [static] |
References XrdSysError::Emsg(), makePath(), rindex, S_IROTH, S_IRWXG, and S_IRWXU.
Referenced by XrdFrmConfig::Configure(), and XrdConfig::Configure().
const mode_t XrdOucUtils::pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH [static] |
1.7.1