xrootd
|
#include <XrdAccAuthFile.hh>
Public Member Functions | |
int | Open (XrdSysError &eroute, const char *path=0) |
char | getRec (char **recname) |
int | getPP (char **path, char **priv) |
int | Close () |
int | Changed (const char *dbpath) |
XrdAccAuthFile (XrdSysError *erp) | |
~XrdAccAuthFile () | |
Private Types | |
enum | DBflags { Noflags = 0, inRec = 1, isOpen = 2, dbError = 4 } |
Private Member Functions | |
int | Bail (int retc, const char *txt1, const char *txt2=0) |
char * | Copy (char *dp, char *sp, int dplen) |
Private Attributes | |
XrdSysError * | Eroute |
DBflags | flags |
XrdOucStream | DBfile |
char * | authfn |
char | rectype |
time_t | modtime |
XrdSysMutex | DBcontext |
char | recname_buff [MAXHOSTNAMELEN+1] |
char | path_buff [PATH_MAX+2] |
enum XrdAccAuthFile::DBflags [private] |
XrdAccAuthFile::XrdAccAuthFile | ( | XrdSysError * | erp | ) |
int XrdAccAuthFile::Bail | ( | int | retc, |
const char * | txt1, | ||
const char * | txt2 = 0 |
||
) | [private] |
References DBcontext, XrdSysError::Emsg(), Eroute, flags, isOpen, and XrdSysMutex::UnLock().
Referenced by Open().
int XrdAccAuthFile::Changed | ( | const char * | dbpath | ) | [virtual] |
Implements XrdAccAuthDB.
References authfn, XrdSysError::Emsg(), Eroute, modtime, and stat().
int XrdAccAuthFile::Close | ( | ) | [virtual] |
Implements XrdAccAuthDB.
References XrdOucStream::Close(), DBcontext, dbError, DBfile, flags, isOpen, and XrdSysMutex::UnLock().
Referenced by ~XrdAccAuthFile().
char * XrdAccAuthFile::Copy | ( | char * | dp, |
char * | sp, | ||
int | dplen | ||
) | [private] |
int XrdAccAuthFile::getPP | ( | char ** | path, |
char ** | priv | ||
) | [virtual] |
Implements XrdAccAuthDB.
References Copy(), dbError, DBfile, XrdSysError::Emsg(), Eroute, flags, XrdOucStream::GetWord(), inRec, and path_buff.
char XrdAccAuthFile::getRec | ( | char ** | recname | ) | [virtual] |
Implements XrdAccAuthDB.
References Copy(), dbError, DBfile, XrdSysError::Emsg(), Eroute, flags, XrdOucStream::GetWord(), inRec, path_buff, recname_buff, and rectype.
int XrdAccAuthFile::Open | ( | XrdSysError & | eroute, |
const char * | path = 0 |
||
) | [virtual] |
Implements XrdAccAuthDB.
References XrdOucStream::Attach(), authfn, Bail(), DBcontext, DBfile, Eroute, flags, isOpen, XrdOucStream::LastError(), XrdSysMutex::Lock(), modtime, open(), XrdOucStream::SetEroute(), stat(), and XrdOucStream::Tabs().
char* XrdAccAuthFile::authfn [private] |
Referenced by Changed(), Open(), XrdAccAuthFile(), and ~XrdAccAuthFile().
XrdSysMutex XrdAccAuthFile::DBcontext [private] |
XrdOucStream XrdAccAuthFile::DBfile [private] |
XrdSysError* XrdAccAuthFile::Eroute [private] |
DBflags XrdAccAuthFile::flags [private] |
Referenced by Bail(), Close(), getPP(), getRec(), Open(), XrdAccAuthFile(), and ~XrdAccAuthFile().
time_t XrdAccAuthFile::modtime [private] |
Referenced by Changed(), Open(), and XrdAccAuthFile().
char XrdAccAuthFile::path_buff[PATH_MAX+2] [private] |
Referenced by getPP(), getRec(), and XrdAccAuthFile().
char XrdAccAuthFile::recname_buff[MAXHOSTNAMELEN+1] [private] |
Referenced by getRec().
char XrdAccAuthFile::rectype [private] |
Referenced by getRec().