21 #if defined(R__WIN32) && !defined(R__WINGCC) 26 #define O_CREAT _O_CREAT 27 #define O_RDWR _O_RDWR 53 SysError(
"Lock",
"cannot open lock file %s", pname);
60 #if !defined(R__WIN32) && !defined(R__WINGCC) 61 int op = (shared) ? LOCK_SH : LOCK_EX ;
63 SysError(
"Lock",
"error locking %s", pname);
89 #if !defined(R__WIN32) && !defined(R__WINGCC) 90 if (flock(
fLockId, LOCK_UN) == -1) {
virtual void SysError(const char *method, const char *msgfmt,...) const
Issue system error message.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
Int_t Unlock()
Unlock the directory.
virtual int GetPid()
Get process id.
Int_t Lock(Bool_t shared=kFALSE)
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
R__EXTERN TSystem * gSystem
const char * GetName() const
Returns name of object.
TLockPath(const char *path="")
Locks the directory.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const