xrootd
|
Public Member Functions | |
int | Active () |
void | isOpen () |
long long | Offset () |
long long | addOffset (long long offs, int updtSz=0) |
long long | setOffset (long long offs) |
void | Lock () |
void | UnLock () |
void | OpenComplete (XrdClientAbs *clientP, void *cbArg, bool res) |
XrdPosixFile (int fd, const char *path, XrdPosixCallBack *cbP=0, int Opts=realFD) | |
~XrdPosixFile () | |
Public Attributes | |
XrdClient * | XClient |
XrdClientStatInfo | stat |
XrdPosixCallBack * | theCB |
XrdPosixFile * | Next |
int | FD |
int | cbResult |
Static Public Attributes | |
static const int | realFD = 1 |
static const int | isSync = 2 |
Private Attributes | |
XrdSysMutex | myMutex |
long long | currOffset |
short | doClose |
short | cbDone |
short | fdClose |
XrdPosixFile::XrdPosixFile | ( | int | fd, |
const char * | path, | ||
XrdPosixCallBack * | cbP = 0 , |
||
int | Opts = realFD |
||
) |
References isSync, XrdClientStatInfo::size, stat, and XClient.
XrdPosixFile::~XrdPosixFile | ( | ) |
int XrdPosixFile::Active | ( | ) | [inline] |
References doClose.
Referenced by XrdPosixXrootd::findFP().
long long XrdPosixFile::addOffset | ( | long long | offs, |
int | updtSz = 0 |
||
) | [inline] |
References currOffset, XrdClientStatInfo::size, and stat.
Referenced by XrdPosixXrootd::Lseek(), XrdPosixXrootd::Read(), and XrdPosixXrootd::Write().
void XrdPosixFile::isOpen | ( | ) | [inline] |
References doClose.
Referenced by XrdPosixXrootd::Open(), and XrdPosixXrootd::OpenCB().
void XrdPosixFile::Lock | ( | ) | [inline] |
References XrdSysMutex::Lock(), and myMutex.
Referenced by XrdPosixXrootd::findFP().
long long XrdPosixFile::Offset | ( | ) | [inline] |
References currOffset.
Referenced by XrdPosixXrootd::Read(), and XrdPosixXrootd::Write().
void XrdPosixFile::OpenComplete | ( | XrdClientAbs * | clientP, |
void * | cbArg, | ||
bool | res | ||
) | [inline, virtual] |
Implements XrdClientCallback.
References cbDone, and XrdPosixXrootd::OpenCB().
long long XrdPosixFile::setOffset | ( | long long | offs | ) | [inline] |
References currOffset.
Referenced by XrdPosixXrootd::Lseek().
void XrdPosixFile::UnLock | ( | ) | [inline] |
References myMutex, and XrdSysMutex::UnLock().
Referenced by XrdPosixXrootd::Close(), XrdPosixXrootd::endPoint(), XrdPosixXrootd::Fault(), XrdPosixXrootd::Fstat(), XrdPosixXrootd::Fsync(), XrdPosixXrootd::Ftruncate(), XrdPosixXrootd::Lseek(), XrdPosixXrootd::Pread(), XrdPosixXrootd::Pwrite(), XrdPosixXrootd::Read(), and XrdPosixXrootd::Write().
short XrdPosixFile::cbDone [private] |
Referenced by OpenComplete().
Referenced by XrdPosixXrootd::OpenCB().
long long XrdPosixFile::currOffset [private] |
Referenced by addOffset(), Offset(), and setOffset().
short XrdPosixFile::doClose [private] |
Referenced by Active(), isOpen(), and ~XrdPosixFile().
int XrdPosixFile::FD |
Referenced by XrdPosixXrootd::Close(), XrdPosixXrootd::OpenCB(), and ~XrdPosixFile().
short XrdPosixFile::fdClose [private] |
Referenced by ~XrdPosixFile().
const int XrdPosixFile::isSync = 2 [static] |
Referenced by XrdPosixXrootd::Open(), and XrdPosixFile().
XrdSysMutex XrdPosixFile::myMutex [private] |
Referenced by XrdPosixXrootd::OpenCB().
const int XrdPosixFile::realFD = 1 [static] |
Referenced by XrdPosixXrootd::Open().
Referenced by XrdPosixXrootd::OpenCB().
Referenced by XrdPosixXrootd::endPoint(), XrdPosixXrootd::Fault(), XrdPosixXrootd::Fsync(), XrdPosixXrootd::Ftruncate(), XrdPosixXrootd::Open(), XrdPosixXrootd::OpenCB(), XrdPosixXrootd::Pread(), XrdPosixXrootd::Pwrite(), XrdPosixXrootd::Read(), XrdPosixXrootd::Write(), XrdPosixFile(), and ~XrdPosixFile().