#include <XrdOssLock.hh>
Public Member Functions | |
| int | Serialize (const char *, int) |
| int | Serialize (int lkFD, int Opt) |
| int | NoSerialize (const char *, int) |
| int | ReSerialize (const char *, const char *) |
| int | UnSerialize (int opts=0) |
| XrdOssLock () | |
| ~XrdOssLock () | |
Private Member Functions | |
| int | XLock (int, int) |
| int | Build_LKFN (char *, int, const char *, int) |
Private Attributes | |
| int | lkfd |
Definition at line 15 of file XrdOssLock.hh.
| XrdOssLock::XrdOssLock | ( | ) | [inline] |
| XrdOssLock::~XrdOssLock | ( | ) | [inline] |
| int XrdOssLock::Serialize | ( | const char * | , | |
| int | ||||
| ) |
Definition at line 116 of file XrdOssLock.cc.
References Build_LKFN(), close, XrdSysError::Emsg(), EWOULDBLOCK, F_SETFD, fcntl(), FD_CLOEXEC, lkfd, open, S_IRUSR, S_IWUSR, stat, XLock(), XRDOSS_E8014, XRDOSS_E8015, XrdOssLKFNAME, XrdOssOK, XrdOssRETIME, and XrdOssSHR.
Referenced by XrdOssSys::Create(), XrdOssFile::Open_ufs(), XrdOssSys::Rename(), XrdFrmTransfer::ThrowOK(), and XrdOssSys::Unlink().
| int XrdOssLock::Serialize | ( | int | lkFD, | |
| int | Opt | |||
| ) | [inline] |
| int XrdOssLock::NoSerialize | ( | const char * | , | |
| int | ||||
| ) |
Definition at line 184 of file XrdOssLock.cc.
References Build_LKFN(), XrdSysError::Emsg(), unlink, XRDOSS_E8016, XrdOssDIR, XrdOssFILE, XrdOssLKFNAME, and XrdOssOK.
Referenced by XrdOssSys::Unlink().
| int XrdOssLock::ReSerialize | ( | const char * | , | |
| const char * | ||||
| ) |
Definition at line 223 of file XrdOssLock.cc.
References Build_LKFN(), XrdSysError::Emsg(), rename, and XrdOssFILE.
| int XrdOssLock::UnSerialize | ( | int | opts = 0 |
) |
Definition at line 259 of file XrdOssLock.cc.
References close, XrdSysError::Emsg(), EWOULDBLOCK, lkfd, XLock(), XRDOSS_E8017, XrdOssLEAVE, XrdOssLKTRIES, XrdOssLKWAIT, XrdOssNOWAIT, XrdOssOK, XrdOssREGRADE, and XrdOssRETRY.
Referenced by XrdOssSys::Create(), XrdOssFile::Open_ufs(), XrdOssSys::Rename(), XrdOssSys::Unlink(), and ~XrdOssLock().
| int XrdOssLock::XLock | ( | int | , | |
| int | ||||
| ) | [private] |
Definition at line 326 of file XrdOssLock.cc.
References fcntl(), FLOCK_t, XrdOssEXC, XrdOssNOWAIT, XrdOssOK, and XrdOssSHR.
Referenced by Serialize(), and UnSerialize().
| int XrdOssLock::Build_LKFN | ( | char * | , | |
| int | , | |||
| const char * | , | |||
| int | ||||
| ) | [private] |
Definition at line 296 of file XrdOssLock.cc.
References XrdSysError::Emsg(), i, strcat(), strcpy(), XrdOssFILE, XrdOssLKFNAME, XrdOssLKSUFFIX, and XrdOssOK.
Referenced by NoSerialize(), ReSerialize(), and Serialize().
int XrdOssLock::lkfd [private] |
Definition at line 30 of file XrdOssLock.hh.
Referenced by Serialize(), UnSerialize(), XrdOssLock(), and ~XrdOssLock().
1.5.1