135 FileStat_t() : fDev(0), fIno(0), fMode(0), fUid(0), fGid(0), fSize(0),
136 fMtime(0), fIsLink(
kFALSE), fUrl(
"") { }
148 fRealName (), fShell() { }
160 SysInfo_t() : fOS(), fModel(), fCpuType(), fCpus(0), fCpuSpeed(0),
161 fBusSpeed(0), fL2Cache(0), fPhysRam(0) { }
175 fUser(0), fSys(0), fTotal(0), fIdle(0) { }
188 fSwapTotal(0), fSwapUsed(0), fSwapFree(0) { }
212 fStdErrDup(-1), fReadOffSet(-1) { }
213 void Reset() { fFile =
""; fStdOutTty =
""; fStdErrTty =
"";
214 fStdOutDup = -1; fStdErrDup = -1; fReadOffSet = -1; }
218 typedef void *Func_t;
220 typedef void ((*Func_t)());
305 const TString &GetLastErrorString()
const;
307 TSystem *FindHelper(
const char *path,
void *dirptr = 0);
308 virtual Bool_t ConsistentWith(
const char *path,
void *dirptr = 0);
309 virtual const char *ExpandFileName(
const char *fname);
312 virtual const char *GetLinkedLibraries();
316 return !strncmp(path, proto, strlen(proto)) ? path + strlen(proto) : path;
322 Bool_t ExpandFileName(
const char *fname,
char *xname,
const int kBufSize);
325 TSystem(
const char *
name =
"Generic",
const char *title =
"Generic System");
330 virtual void SetProgname(
const char *
name);
331 virtual void SetDisplay();
332 void SetErrorStr(
const char *errstr);
334 virtual const char *GetError();
335 void RemoveOnExit(
TObject *obj);
336 virtual const char *HostName();
337 virtual void NotifyApplicationCreated();
346 virtual Bool_t ProcessEvents();
347 virtual void DispatchOneEvent(
Bool_t pendingOnly =
kFALSE);
348 virtual void ExitLoop();
350 virtual void InnerLoop();
358 virtual void ResetSignals();
360 virtual void IgnoreInterrupt(
Bool_t ignore =
kTRUE);
370 virtual Int_t GetFPEMask();
376 virtual void AddTimer(
TTimer *t);
380 virtual void Sleep(
UInt_t milliSec);
383 virtual Int_t Exec(
const char *shellcmd);
384 virtual FILE *OpenPipe(
const char *command,
const char *mode);
385 virtual int ClosePipe(FILE *pipe);
386 virtual TString GetFromPipe(
const char *command);
388 virtual void Abort(
int code = 0);
389 virtual int GetPid();
390 virtual void StackTrace();
393 virtual int MakeDirectory(
const char *name);
394 virtual void *OpenDirectory(
const char *name);
395 virtual void FreeDirectory(
void *dirp);
396 virtual const char *GetDirEntry(
void *dirp);
398 virtual Bool_t ChangeDirectory(
const char *path);
399 virtual const char *WorkingDirectory();
400 virtual std::string GetWorkingDirectory()
const;
401 virtual const char *HomeDirectory(
const char *userName = 0);
402 virtual std::string GetHomeDirectory(
const char *userName = 0)
const;
403 virtual int mkdir(
const char *name,
Bool_t recursive =
kFALSE);
404 Bool_t cd(
const char *path) {
return ChangeDirectory(path); }
405 const char *
pwd() {
return WorkingDirectory(); }
406 virtual const char *TempDirectory()
const;
407 virtual FILE *TempFileName(
TString &base,
const char *dir = 0);
410 virtual const char *BaseName(
const char *pathname);
411 virtual const char *DirName(
const char *pathname);
412 virtual char *ConcatFileName(
const char *dir,
const char *name);
413 virtual Bool_t IsAbsoluteFileName(
const char *dir);
414 virtual Bool_t IsFileInIncludePath(
const char *name,
char **fullpath = 0);
415 virtual const char *PrependPathName(
const char *dir,
TString& name);
417 virtual char *ExpandPathName(
const char *path);
419 virtual Bool_t IsPathLocal(
const char *path);
420 virtual int CopyFile(
const char *from,
const char *to,
Bool_t overwrite =
kFALSE);
421 virtual int Rename(
const char *from,
const char *to);
422 virtual int Link(
const char *from,
const char *to);
423 virtual int Symlink(
const char *from,
const char *to);
424 virtual int Unlink(
const char *name);
427 virtual int GetPathInfo(
const char *path,
FileStat_t &buf);
429 virtual int Chmod(
const char *
file,
UInt_t mode);
430 virtual int Umask(
Int_t mask);
431 virtual int Utime(
const char *file,
Long_t modtime,
Long_t actime);
432 virtual const char *UnixPathName(
const char *unixpathname);
438 virtual Int_t GetUid(
const char *user = 0);
440 virtual Int_t GetEffectiveUid();
441 virtual Int_t GetEffectiveGid();
443 virtual UserGroup_t *GetUserInfo(
const char *user = 0);
448 virtual void Setenv(
const char *name,
const char *value);
449 virtual void Unsetenv(
const char *name);
450 virtual const char *Getenv(
const char *env);
454 virtual void Syslog(
ELogLevel level,
const char *mess);
455 virtual void Closelog();
462 virtual void AddDynamicPath(
const char *pathname);
463 virtual const char *GetDynamicPath();
464 virtual void SetDynamicPath(
const char *pathname);
465 char *DynamicPathName(
const char *lib,
Bool_t quiet =
kFALSE);
467 virtual Func_t DynFindSymbol(
const char *module,
const char *entry);
468 virtual int Load(
const char *module,
const char *entry =
"",
Bool_t system =
kFALSE);
469 virtual void Unload(
const char *module);
470 virtual void ListSymbols(
const char *module,
const char *re =
"");
471 virtual void ListLibraries(
const char *regexp =
"");
472 virtual const char *GetLibraries(
const char *regexp =
"",
473 const char *option =
"",
480 virtual int GetServiceByName(
const char *service);
481 virtual char *GetServiceByPort(
int port);
482 virtual int OpenConnection(
const char *server,
int port,
int tcpwindowsize = -1,
const char *protocol =
"tcp");
483 virtual int AnnounceTcpService(
int port,
Bool_t reuse,
int backlog,
int tcpwindowsize = -1);
484 virtual int AnnounceUdpService(
int port,
int backlog);
485 virtual int AnnounceUnixService(
int port,
int backlog);
486 virtual int AnnounceUnixService(
const char *sockpath,
int backlog);
487 virtual int AcceptConnection(
int sock);
488 virtual void CloseConnection(
int sock,
Bool_t force =
kFALSE);
489 virtual int RecvRaw(
int sock,
void *buffer,
int length,
int flag);
490 virtual int SendRaw(
int sock,
const void *buffer,
int length,
int flag);
491 virtual int RecvBuf(
int sock,
void *buffer,
int length);
492 virtual int SendBuf(
int sock,
const void *buffer,
int length);
493 virtual int SetSockOpt(
int sock,
int kind,
int val);
494 virtual int GetSockOpt(
int sock,
int kind,
int *val);
497 virtual int GetSysInfo(
SysInfo_t *info)
const;
498 virtual int GetCpuInfo(
CpuInfo_t *info,
Int_t sampleTime = 1000)
const;
499 virtual int GetMemInfo(
MemInfo_t *info)
const;
500 virtual int GetProcInfo(
ProcInfo_t *info)
const;
503 virtual void AddIncludePath(
const char *includePath);
504 virtual void AddLinkedLibs(
const char *linkedLib);
505 virtual int CompileMacro(
const char *filename,
Option_t *opt=
"",
const char* library_name =
"",
const char* build_dir =
"",
UInt_t dirmode = 0);
506 virtual Int_t GetAclicProperties()
const;
507 virtual const char *GetBuildArch()
const;
508 virtual const char *GetBuildCompiler()
const;
509 virtual const char *GetBuildCompilerVersion()
const;
510 virtual const char *GetBuildNode()
const;
511 virtual const char *GetBuildDir()
const;
512 virtual const char *GetFlagsDebug()
const;
513 virtual const char *GetFlagsOpt()
const;
514 virtual const char *GetIncludePath();
515 virtual const char *GetLinkedLibs()
const;
516 virtual const char *GetLinkdefSuffix()
const;
518 virtual const char *GetMakeExe()
const;
519 virtual const char *GetMakeSharedLib()
const;
520 virtual const char *GetSoExt()
const;
521 virtual const char *GetObjExt()
const;
522 virtual void SetBuildDir(
const char* build_dir,
Bool_t isflat =
kFALSE);
523 virtual void SetFlagsDebug(
const char *);
524 virtual void SetFlagsOpt(
const char *);
525 virtual void SetIncludePath(
const char *includePath);
526 virtual void SetMakeExe(
const char *directives);
528 virtual void SetMakeSharedLib(
const char *directives);
529 virtual void SetLinkedLibs(
const char *linkedLibs);
530 virtual void SetLinkdefSuffix(
const char *suffix);
531 virtual void SetSoExt(
const char *soExt);
532 virtual void SetObjExt(
const char *objExt);
534 virtual void CleanCompiledMacros();
Bool_t R_ISSOCK(Int_t mode)
TSeqCollection * fCompiled
Bool_t R_ISCHR(Int_t mode)
int GetErrno()
return errno
Bool_t R_ISLNK(Int_t mode)
virtual void SigAlarmInterruptsSyscalls(Bool_t)
R__EXTERN TVirtualMutex * gSystemMutex
virtual TSeqCollection * GetListOfFileHandlers() const
TSeqCollection * fOnExitList
TString fBuildCompilerVersion
RooCmdArg Link(const char *state, RooAbsData &data)
virtual void * GetDirPtr() const
This class represents an Internet Protocol (IP) address.
This class implements a mutex interface.
Bool_t cd(const char *path)
TSeqCollection * fSignalHandler
virtual TSeqCollection * GetListOfTimers() const
Basic time type with millisecond precision.
Bool_t R_ISREG(Int_t mode)
TSeqCollection * fStdExceptionHandler
Sequenceable collection abstract base class.
#define ClassDef(name, id)
const char * GetErrorStr() const
The TNamed class is the base class for all named ROOT classes.
TSeqCollection * fHelpers
R__EXTERN TFileHandler * gXDisplay
Int_t fNfd
Signals that were trapped.
TSeqCollection * fFileHandler
R__EXTERN const char * gProgName
void ResetErrno()
reset errno
R__EXTERN TSystem * gSystem
void GetBeepDefaults(Int_t &freq, Int_t &duration) const
static const char * StripOffProto(const char *path, const char *proto)
virtual TSeqCollection * GetListOfSignalHandlers() const
Handles synchronous and a-synchronous timer events.
RedirectHandle_t(const char *n=0)
virtual TSeqCollection * GetListOfStdExceptionHandlers() const
RooCmdArg Rename(const char *suffix)
virtual void ResetTimer(TTimer *)
TFdSet * fReadready
Files that should be checked for write events.
R__EXTERN const char * gProgPath
TFdSet * fSignals
Files with writes waiting.
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
virtual void DoBeep(Int_t=-1, Int_t=-1) const
typedef void((*Func_t)())
Bool_t R_ISDIR(Int_t mode)
R__EXTERN const char * gRootDir
virtual TList * GetVolumes(Option_t *) const
Bool_t R_ISBLK(Int_t mode)
TFdSet * fWriteready
Files with reads waiting.
Abstract base class defining a generic interface to the underlying Operating System.
Bool_t R_ISFIFO(Int_t mode)
TFdSet * fWritemask
Files that should be checked for read events.
Bool_t Notify()
Notify when timer times out.
Bool_t R_ISOFF(Int_t mode)