xrootd
|
#include <XrdFrmCID.hh>
Classes | |
struct | cidEnt |
class | cidMon |
Public Member Functions | |
int | Add (const char *iName, const char *cName, time_t addT, pid_t Pid) |
int | Get (const char *iName, char *buff, int blen) |
int | Get (const char *iName, const char *vName, XrdOucEnv *evP) |
int | Init (const char *qPath) |
void | Ref (const char *iName) |
XrdFrmCID () | |
~XrdFrmCID () | |
Private Member Functions | |
cidEnt * | Find (const char *iName) |
int | Init (XrdOucStream &cidFile) |
int | Update () |
Private Attributes | |
cidEnt * | Dflt |
cidEnt * | First |
char * | cidFN |
char * | cidFN2 |
XrdFrmCID::XrdFrmCID | ( | ) | [inline] |
XrdFrmCID::~XrdFrmCID | ( | ) | [inline] |
int XrdFrmCID::Add | ( | const char * | iName, |
const char * | cName, | ||
time_t | addT, | ||
pid_t | Pid | ||
) |
References XrdFrmCID::cidEnt::addT, XrdFrmCID::cidEnt::cName, XrdFrmCID::cidEnt::cNLen, and XrdFrmCID::cidEnt::Pid.
Referenced by XrdFrmReqBoss::Register().
XrdFrmCID::cidEnt * XrdFrmCID::Find | ( | const char * | iName | ) | [private] |
References XrdFrmCID::cidEnt::iName, and XrdFrmCID::cidEnt::Next.
int XrdFrmCID::Get | ( | const char * | iName, |
char * | buff, | ||
int | blen | ||
) |
References XrdFrmCID::cidEnt::cName, and strlcpy().
Referenced by XrdFrmTransfer::SetupCmd().
int XrdFrmCID::Get | ( | const char * | iName, |
const char * | vName, | ||
XrdOucEnv * | evP | ||
) |
References XrdFrmCID::cidEnt::cName, and XrdOucEnv::Put().
int XrdFrmCID::Init | ( | XrdOucStream & | cidFile | ) | [private] |
References DEBUG, XrdSysError::Emsg(), EPNAME, XrdOucStream::GetToken(), XrdFrm::Say, and strtoll.
int XrdFrmCID::Init | ( | const char * | qPath | ) |
References XrdOucStream::Attach(), XrdOucStream::Close(), DEBUG, XrdSysError::Emsg(), EPNAME, XrdOucStream::GetLine(), XrdOucStream::LastError(), open(), Path, and XrdFrm::Say.
Referenced by XrdFrmTransfer::Init().
void XrdFrmCID::Ref | ( | const char * | iName | ) |
References XrdFrmCID::cidEnt::useCnt.
Referenced by XrdFrmReqFile::Init().
int XrdFrmCID::Update | ( | ) | [private] |
References XrdFrmCID::cidEnt::addT, close, XrdFrmCID::cidEnt::cName, XrdFrmCID::cidEnt::cNLen, DEBUG, XrdSysError::Emsg(), EPNAME, F_SETFD, fcntl(), FD_CLOEXEC, FLOCK_t, ftruncate(), XrdFrmCID::cidEnt::iName, XrdFrmCID::cidEnt::iNLen, iovec::iov_base, iovec::iov_len, Mode, XrdFrmCID::cidEnt::Next, open(), XrdFrmCID::cidEnt::Pid, rename(), S_IRGRP, S_IROTH, S_IRUSR, S_IWUSR, XrdFrm::Say, XrdFrmCID::cidEnt::useCnt, and writev.
char* XrdFrmCID::cidFN [private] |
char* XrdFrmCID::cidFN2 [private] |
cidEnt* XrdFrmCID::Dflt [private] |
cidEnt* XrdFrmCID::First [private] |