![]() |
XRootD
|
#include <XrdOucUtils.hh>
Public Member Functions | |
XrdOucUtils () | |
~XrdOucUtils () | |
Static Public Member Functions | |
static int | argList (char *args, char **argV, int argC) |
static char * | bin2hex (char *inbuff, int dlen, char *buff, int blen, bool sep=true) |
static int | doIf (XrdSysError *eDest, XrdOucStream &Config, const char *what, const char *hname, const char *nname, const char *pname) |
static bool | endsWith (const char *text, const char *ending, int endlen) |
static char * | eText (int rc, char *eBuff, int eBlen) |
static bool | findPgm (const char *pgm, XrdOucString &path) |
static int | fmtBytes (long long val, char *buff, int bsz) |
static int | genPath (char *buff, int blen, const char *path, const char *psfx=0) |
static char * | genPath (const char *path, const char *inst, const char *psfx=0) |
static char * | getFile (const char *path, int &rc, int maxsz=10240, bool notempty=true) |
static bool | getGID (const char *gName, gid_t &gID) |
static int | getModificationTime (const char *path, time_t &modificationTime) |
static bool | getUID (const char *uName, uid_t &uID, gid_t *gID=0) |
static int | GidName (gid_t gID, char *gName, int gNsz, time_t keepT=0) |
static int | GroupName (gid_t gID, char *gName, int gNsz) |
static const char * | i2bstr (char *buff, int blen, int val, bool pad=false) |
static char * | Ident (long long &mySID, char *iBuff, int iBlen, const char *iHost, const char *iProg, const char *iName, int Port) |
static const char * | InstName (const char *name, int Fillit=1) |
static const char * | InstName (int TranOpt=0) |
static int | is1of (char *val, const char **clist) |
static int | isFWD (const char *path, int *port=0, char *hBuff=0, int hBLen=0, bool pTrim=false) |
static int | Log10 (unsigned long long n) |
static int | Log2 (unsigned long long n) |
static void | makeHome (XrdSysError &eDest, const char *inst) |
static bool | makeHome (XrdSysError &eDest, const char *inst, const char *path, mode_t mode) |
static int | makePath (char *path, mode_t mode, bool reset=false) |
static bool | mode2mask (const char *mode, mode_t &mask) |
static char * | parseHome (XrdSysError &eDest, XrdOucStream &Config, int &mode) |
static bool | parseLib (XrdSysError &eDest, XrdOucStream &Config, const char *libName, char *&path, char **libparm) |
static bool | PidFile (XrdSysError &eDest, const char *path) |
static int | ReLink (const char *path, const char *target, mode_t mode=0) |
static void | Sanitize (char *instr, char subc='_') |
static char * | subLogfn (XrdSysError &eDest, const char *inst, char *logfn) |
static int | Token (const char **str, char delim, char *buff, int bsz) |
static void | toLower (char *str) |
static void | trim (std::string &str) |
static int | UidName (uid_t uID, char *uName, int uNsz, time_t keepT=0) |
static void | Undercover (XrdSysError &eDest, int noLog, int *pipeFD=0) |
static int | UserName (uid_t uID, char *uName, int uNsz) |
static const char * | ValPath (const char *path, mode_t allow, bool isdir) |
Static Public Attributes | |
static const mode_t | pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH |
Definition at line 43 of file XrdOucUtils.hh.
|
inline |
Definition at line 138 of file XrdOucUtils.hh.
|
inline |
Definition at line 139 of file XrdOucUtils.hh.
|
static |
Definition at line 124 of file XrdOucUtils.cc.
Referenced by XrdOucProg::Setup().
|
static |
Definition at line 163 of file XrdOucUtils.cc.
Referenced by XrdOssMio::Map().
|
static |
Definition at line 231 of file XrdOucUtils.cc.
References XrdCms::Config, eDest, XrdSysError::Emsg(), XrdOucEnv::Get(), is1of(), XrdNetUtils::Match(), and XrdCms::theEnv.
Referenced by main().
|
static |
Definition at line 183 of file XrdOucUtils.cc.
Referenced by XrdBwmFile::open().
|
static |
Definition at line 197 of file XrdOucUtils.cc.
References strlcpy(), and XrdSysE2T().
|
static |
Definition at line 354 of file XrdOucUtils.cc.
References XrdOucString::c_str(), Stat, stat(), and XrdOucString::tokenize().
Referenced by XrdNetPMarkCfg::Parse().
|
static |
Definition at line 390 of file XrdOucUtils.cc.
Referenced by XrdFrmPurge::Display().
|
static |
Definition at line 435 of file XrdOucUtils.cc.
|
static |
Definition at line 417 of file XrdOucUtils.cc.
References strlcpy().
Referenced by XrdNetCmsNotify::XrdNetCmsNotify(), XrdXrootdProtocol::Configure(), XrdCmsClientConfig::Configure(), XrdCmsConfig::Configure0(), XrdCmsConfig::Configure2(), XrdOfsConfigCP::Init(), and XrdFrcUtils::makePath().
|
static |
|
static |
Definition at line 513 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolsss::Authenticate().
|
static |
Definition at line 1401 of file XrdOucUtils.cc.
References stat().
Referenced by XrdTlsContext::XrdTlsContext(), and XrdTlsContext::newHostCertificateDetected().
|
static |
Definition at line 529 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolsss::Authenticate().
|
static |
Definition at line 547 of file XrdOucUtils.cc.
|
static |
Definition at line 596 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolunix::getCredentials().
|
static |
Definition at line 633 of file XrdOucUtils.cc.
|
static |
Definition at line 702 of file XrdOucUtils.cc.
References XrdXrootdMonInfo::mySID, and UserName().
Referenced by XrdFrmMonitor::Init(), and XrdXrootdMonitor::Init().
|
static |
Definition at line 749 of file XrdOucUtils.cc.
|
static |
Definition at line 732 of file XrdOucUtils.cc.
Referenced by XrdFrcProxy::XrdFrcProxy(), XrdFrmConfig::XrdFrmConfig(), XrdNetCmsNotify::XrdNetCmsNotify(), XrdSsiSfsConfig::XrdSsiSfsConfig(), XrdOssSys::ConfigStage(), XrdCmsClientConfig::Configure(), XrdConfig::Configure(), XrdFrmConfig::Configure(), XrdCmsConfig::Configure0(), XrdCmsConfig::Configure1(), XrdOfsConfigCP::Init(), XrdOssSpace::Init(), main(), and XrdFrcReqAgent::Start().
|
static |
Definition at line 758 of file XrdOucUtils.cc.
Referenced by doIf().
|
static |
Definition at line 770 of file XrdOucUtils.cc.
References XrdNetUtils::Parse().
|
static |
|
static |
Definition at line 818 of file XrdOucUtils.cc.
References SHFT.
Referenced by XrdBuffXL::Init(), XrdBuffManager::Obtain(), XrdBuffXL::Obtain(), XrdBuffManager::Recalc(), and XrdBuffXL::Recalc().
|
static |
Definition at line 850 of file XrdOucUtils.cc.
References chdir(), eDest, XrdSysError::Emsg(), MAKEDIR, and pathMode.
Referenced by XrdConfig::Configure(), XrdFrmConfig::Configure(), and makeHome().
|
static |
Definition at line 868 of file XrdOucUtils.cc.
References chdir(), eDest, XrdSysError::Emsg(), makeHome(), and makePath().
|
static |
Definition at line 917 of file XrdOucUtils.cc.
References CHMOD, MAKEDIR, and stat().
Referenced by XrdOssSys::Create(), XrdOfsConfigCP::Init(), makeHome(), XrdFrcUtils::makePath(), XrdFrcUtils::makeQDir(), ReLink(), XrdOssSys::Reloc(), XrdOssSys::Rename(), XrdSecsssKT::Rewrite(), XrdNetSocket::socketPath(), and subLogfn().
|
static |
Definition at line 948 of file XrdOucUtils.cc.
|
static |
Definition at line 1039 of file XrdOucUtils.cc.
References XrdCms::Config, eDest, and XrdSysError::Emsg().
|
static |
Definition at line 989 of file XrdOucUtils.cc.
References XrdCms::Config, eDest, XrdSysError::Emsg(), and XrdSysError::Say().
|
static |
Definition at line 1376 of file XrdOucUtils.cc.
References close, eDest, XrdSysError::Emsg(), open(), and write().
Referenced by XrdFrmConfig::Configure().
|
static |
Definition at line 1075 of file XrdOucUtils.cc.
References makePath(), and unlink().
|
static |
Definition at line 1099 of file XrdOucUtils.cc.
|
static |
Definition at line 1121 of file XrdOucUtils.cc.
References eDest, XrdSysError::Emsg(), and makePath().
Referenced by XrdOucLogging::configLog(), and XrdFrmConfig::Configure().
|
static |
Definition at line 1162 of file XrdOucUtils.cc.
|
static |
Definition at line 1149 of file XrdOucUtils.cc.
Referenced by XrdCksManager::Config(), XrdOfsConfigPI::DefaultCS(), XrdNetUtils::NetConfig(), and XrdCksConfig::ParseLib().
|
static |
Definition at line 1410 of file XrdOucUtils.cc.
Referenced by XrdHttpReadRangeHandler::Configure(), and trim().
|
static |
Definition at line 1280 of file XrdOucUtils.cc.
|
static |
Definition at line 1206 of file XrdOucUtils.cc.
References XrdSysError::baseFD(), close, eDest, XrdSysError::Emsg(), XrdOfsPrepGPIReal::maxFiles, open(), and read().
Referenced by XrdConfig::Configure(), and XrdFrmConfig::Configure().
|
static |
Definition at line 1319 of file XrdOucUtils.cc.
Referenced by XrdPfc::Cache::Config(), XrdSecProtocolunix::getCredentials(), and Ident().
|
static |
Definition at line 1343 of file XrdOucUtils.cc.
References stat(), and XrdSysE2T().
Referenced by XrdCl::InitTLS().
|
static |
Definition at line 47 of file XrdOucUtils.hh.
Referenced by makeHome().