![]() |
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 std::string | obfuscate (const std::string &input, const std::unordered_set< std::string > &keysToObfuscate, const char keyValueDelimiter, const char listDelimiter) |
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 std::string | OBFUSCATION_STR = "REDACTED" |
static const mode_t | pathMode = S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH |
Definition at line 42 of file XrdOucUtils.hh.
|
inline |
Definition at line 141 of file XrdOucUtils.hh.
|
inline |
Definition at line 142 of file XrdOucUtils.hh.
|
static |
Definition at line 121 of file XrdOucUtils.cc.
Referenced by XrdOucProg::Setup().
|
static |
Definition at line 160 of file XrdOucUtils.cc.
Referenced by XrdOssMio::Map().
|
static |
Definition at line 228 of file XrdOucUtils.cc.
References eDest, XrdSysError::Emsg(), XrdOucEnv::Get(), is1of(), and XrdNetUtils::Match().
Referenced by main().
|
static |
Definition at line 180 of file XrdOucUtils.cc.
Referenced by XrdBwmFile::open().
|
static |
Definition at line 194 of file XrdOucUtils.cc.
References strlcpy(), and XrdSysE2T().
|
static |
Definition at line 351 of file XrdOucUtils.cc.
References XrdOucString::c_str(), Stat, stat, and XrdOucString::tokenize().
Referenced by XrdNetPMarkCfg::Parse().
|
static |
Definition at line 387 of file XrdOucUtils.cc.
Referenced by XrdFrmPurge::Display().
|
static |
Definition at line 432 of file XrdOucUtils.cc.
|
static |
Definition at line 414 of file XrdOucUtils.cc.
References strlcpy().
Referenced by XrdNetCmsNotify::XrdNetCmsNotify(), XrdCmsClientConfig::Configure(), XrdXrootdProtocol::Configure(), XrdCmsConfig::Configure0(), XrdCmsConfig::Configure2(), XrdOfsConfigCP::Init(), and XrdFrcUtils::makePath().
|
static |
Definition at line 453 of file XrdOucUtils.cc.
References close, ENODATA, fstat, open, read, Stat, and stat.
|
static |
Definition at line 510 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolsss::Authenticate().
|
static |
Definition at line 1396 of file XrdOucUtils.cc.
References stat.
Referenced by XrdTlsContext::XrdTlsContext(), and XrdTlsContext::newHostCertificateDetected().
|
static |
Definition at line 526 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolsss::Authenticate().
|
static |
Definition at line 544 of file XrdOucUtils.cc.
|
static |
Definition at line 593 of file XrdOucUtils.cc.
Referenced by XrdSecProtocolunix::getCredentials().
|
static |
Definition at line 630 of file XrdOucUtils.cc.
|
static |
Definition at line 699 of file XrdOucUtils.cc.
References UserName().
Referenced by XrdFrmMonitor::Init(), and XrdXrootdMonitor::Init().
|
static |
Definition at line 746 of file XrdOucUtils.cc.
|
static |
Definition at line 729 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 755 of file XrdOucUtils.cc.
Referenced by doIf().
|
static |
Definition at line 767 of file XrdOucUtils.cc.
References XrdNetUtils::Parse().
|
static |
Definition at line 830 of file XrdOucUtils.cc.
References SHFT.
|
static |
Definition at line 815 of file XrdOucUtils.cc.
References SHFT.
Referenced by XrdBuffXL::Init(), XrdBuffManager::Obtain(), XrdBuffXL::Obtain(), XrdBuffManager::Recalc(), and XrdBuffXL::Recalc().
|
static |
Definition at line 847 of file XrdOucUtils.cc.
References chdir, eDest, XrdSysError::Emsg(), MAKEDIR, and pathMode.
Referenced by XrdConfig::Configure(), XrdFrmConfig::Configure(), and makeHome().
|
static |
Definition at line 865 of file XrdOucUtils.cc.
References chdir, eDest, XrdSysError::Emsg(), makeHome(), and makePath().
|
static |
Definition at line 914 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 945 of file XrdOucUtils.cc.
|
static |
Definition at line 1415 of file XrdOucUtils.cc.
References OBFUSCATION_STR, and trim().
Referenced by XrdHttpProtocol::Process(), and XrdHttpReq::ProcessHTTPReq().
|
static |
Definition at line 1036 of file XrdOucUtils.cc.
References eDest, and XrdSysError::Emsg().
|
static |
Definition at line 986 of file XrdOucUtils.cc.
References eDest, XrdSysError::Emsg(), and XrdSysError::Say().
|
static |
Definition at line 1371 of file XrdOucUtils.cc.
References close, eDest, XrdSysError::Emsg(), open, and write.
Referenced by XrdFrmConfig::Configure().
|
static |
Definition at line 1072 of file XrdOucUtils.cc.
References makePath(), and unlink.
|
static |
Definition at line 1096 of file XrdOucUtils.cc.
|
static |
Definition at line 1118 of file XrdOucUtils.cc.
References eDest, XrdSysError::Emsg(), and makePath().
Referenced by XrdOucLogging::configLog(), and XrdFrmConfig::Configure().
|
static |
Definition at line 1157 of file XrdOucUtils.cc.
|
static |
Definition at line 1146 of file XrdOucUtils.cc.
Referenced by XrdCksManager::Config(), XrdOfsConfigPI::DefaultCS(), and XrdCksConfig::ParseLib().
|
static |
Definition at line 1405 of file XrdOucUtils.cc.
Referenced by XrdHttpReadRangeHandler::Configure(), obfuscate(), and trim().
|
static |
Definition at line 1275 of file XrdOucUtils.cc.
|
static |
Definition at line 1201 of file XrdOucUtils.cc.
References XrdSysError::baseFD(), close, eDest, XrdSysError::Emsg(), open, and read.
Referenced by XrdConfig::Configure(), and XrdFrmConfig::Configure().
|
static |
Definition at line 1314 of file XrdOucUtils.cc.
Referenced by XrdPfc::Cache::Config(), XrdSecProtocolunix::getCredentials(), and Ident().
|
static |
Definition at line 1338 of file XrdOucUtils.cc.
References stat, and XrdSysE2T().
Referenced by XrdCl::InitTLS().
|
inlinestatic |
Definition at line 46 of file XrdOucUtils.hh.
Referenced by obfuscate().
|
static |
Definition at line 48 of file XrdOucUtils.hh.
Referenced by makeHome().