#include <XrdAccAuthFile.hh>
Inheritance diagram for XrdAccAuthFile:
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 |
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] |
Definition at line 25 of file XrdAccAuthFile.hh.
enum XrdAccAuthFile::DBflags [private] |
Definition at line 47 of file XrdAccAuthFile.hh.
XrdAccAuthFile::XrdAccAuthFile | ( | XrdSysError * | erp | ) |
XrdAccAuthFile::~XrdAccAuthFile | ( | ) |
int XrdAccAuthFile::Open | ( | XrdSysError & | eroute, | |
const char * | path = 0 | |||
) | [virtual] |
Implements XrdAccAuthDB.
Definition at line 243 of file XrdAccAuthFile.cc.
References XrdOucStream::Attach(), authfn, Bail(), DBcontext, DBfile, eroute(), Eroute, flags, free(), isOpen, XrdOucStream::LastError(), XrdSysMutex::Lock(), modtime, open, XrdOucStream::SetEroute(), stat, and XrdOucStream::Tabs().
char XrdAccAuthFile::getRec | ( | char ** | recname | ) | [virtual] |
Implements XrdAccAuthDB.
Definition at line 180 of file XrdAccAuthFile.cc.
References Copy(), dbError, DBfile, XrdSysError::Emsg(), Eroute, flags, XrdOucStream::GetWord(), inRec, path_buff, recname_buff, and rectype.
int XrdAccAuthFile::getPP | ( | char ** | path, | |
char ** | priv | |||
) | [virtual] |
Implements XrdAccAuthDB.
Definition at line 129 of file XrdAccAuthFile.cc.
References Copy(), dbError, DBfile, XrdSysError::Emsg(), Eroute, flags, XrdOucStream::GetWord(), inRec, and path_buff.
int XrdAccAuthFile::Close | ( | ) | [virtual] |
Implements XrdAccAuthDB.
Definition at line 101 of file XrdAccAuthFile.cc.
References XrdOucStream::Close(), DBcontext, dbError, DBfile, flags, isOpen, and XrdSysMutex::UnLock().
Referenced by ~XrdAccAuthFile().
int XrdAccAuthFile::Changed | ( | const char * | dbpath | ) | [virtual] |
Implements XrdAccAuthDB.
Definition at line 73 of file XrdAccAuthFile.cc.
References authfn, XrdSysError::Emsg(), Eroute, modtime, and stat.
int XrdAccAuthFile::Bail | ( | int | retc, | |
const char * | txt1, | |||
const char * | txt2 = 0 | |||
) | [private] |
Definition at line 289 of file XrdAccAuthFile.cc.
References DBcontext, XrdSysError::Emsg(), Eroute, flags, isOpen, and XrdSysMutex::UnLock().
Referenced by Open().
char * XrdAccAuthFile::Copy | ( | char * | dp, | |
char * | sp, | |||
int | dplen | |||
) | [private] |
XrdSysError* XrdAccAuthFile::Eroute [private] |
Definition at line 49 of file XrdAccAuthFile.hh.
Referenced by Bail(), Changed(), getPP(), getRec(), Open(), and XrdAccAuthFile().
DBflags XrdAccAuthFile::flags [private] |
Definition at line 50 of file XrdAccAuthFile.hh.
Referenced by Bail(), Close(), getPP(), getRec(), Open(), XrdAccAuthFile(), and ~XrdAccAuthFile().
XrdOucStream XrdAccAuthFile::DBfile [private] |
char* XrdAccAuthFile::authfn [private] |
Definition at line 52 of file XrdAccAuthFile.hh.
Referenced by Changed(), Open(), XrdAccAuthFile(), and ~XrdAccAuthFile().
char XrdAccAuthFile::rectype [private] |
time_t XrdAccAuthFile::modtime [private] |
Definition at line 54 of file XrdAccAuthFile.hh.
Referenced by Changed(), Open(), and XrdAccAuthFile().
XrdSysMutex XrdAccAuthFile::DBcontext [private] |
char XrdAccAuthFile::recname_buff[MAXHOSTNAMELEN+1] [private] |
char XrdAccAuthFile::path_buff[PATH_MAX+2] [private] |
Definition at line 58 of file XrdAccAuthFile.hh.
Referenced by getPP(), getRec(), and XrdAccAuthFile().