40 #ifndef ROOT_TInetAddress 46 #ifndef ROOT_ThreadLocalStorage 145 FileStat_t() : fDev(0), fIno(0), fMode(0), fUid(0), fGid(0), fSize(0),
146 fMtime(0), fIsLink(
kFALSE), fUrl(
"") { }
158 fRealName (), fShell() { }
170 SysInfo_t() : fOS(), fModel(), fCpuType(), fCpus(0), fCpuSpeed(0),
171 fBusSpeed(0), fL2Cache(0), fPhysRam(0) { }
185 fUser(0), fSys(0), fTotal(0), fIdle(0) { }
198 fSwapTotal(0), fSwapUsed(0), fSwapFree(0) { }
222 fStdErrDup(-1), fReadOffSet(-1) { }
223 void Reset() { fFile =
""; fStdOutTty =
""; fStdErrTty =
"";
224 fStdOutDup = -1; fStdErrDup = -1; fReadOffSet = -1; }
228 typedef void *Func_t;
230 typedef void ((*Func_t)());
315 const TString &GetLastErrorString()
const;
317 TSystem *FindHelper(
const char *path,
void *dirptr = 0);
318 virtual Bool_t ConsistentWith(
const char *path,
void *dirptr = 0);
319 virtual const char *ExpandFileName(
const char *fname);
322 virtual const char *GetLinkedLibraries();
326 return !strncmp(path, proto, strlen(proto)) ? path + strlen(proto) : path;
332 Bool_t ExpandFileName(
const char *fname,
char *xname,
const int kBufSize);
335 TSystem(
const char *
name =
"Generic",
const char *title =
"Generic System");
340 virtual void SetProgname(
const char *
name);
341 virtual void SetDisplay();
342 void SetErrorStr(
const char *errstr);
344 virtual const char *GetError();
345 void RemoveOnExit(
TObject *obj);
346 virtual const char *HostName();
347 virtual void NotifyApplicationCreated();
356 virtual Bool_t ProcessEvents();
357 virtual void DispatchOneEvent(
Bool_t pendingOnly =
kFALSE);
358 virtual void ExitLoop();
360 virtual void InnerLoop();
368 virtual void ResetSignals();
370 virtual void IgnoreInterrupt(
Bool_t ignore =
kTRUE);
380 virtual Int_t GetFPEMask();
386 virtual void AddTimer(
TTimer *t);
390 virtual void Sleep(
UInt_t milliSec);
393 virtual Int_t Exec(
const char *shellcmd);
394 virtual FILE *OpenPipe(
const char *command,
const char *mode);
395 virtual int ClosePipe(FILE *pipe);
396 virtual TString GetFromPipe(
const char *command);
398 virtual void Abort(
int code = 0);
399 virtual int GetPid();
400 virtual void StackTrace();
403 virtual int MakeDirectory(
const char *name);
404 virtual void *OpenDirectory(
const char *name);
405 virtual void FreeDirectory(
void *dirp);
406 virtual const char *GetDirEntry(
void *dirp);
408 virtual Bool_t ChangeDirectory(
const char *path);
409 virtual const char *WorkingDirectory();
410 virtual std::string GetWorkingDirectory()
const;
411 virtual const char *HomeDirectory(
const char *userName = 0);
412 virtual std::string GetHomeDirectory(
const char *userName = 0)
const;
413 virtual int mkdir(
const char *name,
Bool_t recursive =
kFALSE);
414 Bool_t cd(
const char *path) {
return ChangeDirectory(path); }
415 const char *
pwd() {
return WorkingDirectory(); }
416 virtual const char *TempDirectory()
const;
417 virtual FILE *TempFileName(
TString &base,
const char *dir = 0);
420 virtual const char *BaseName(
const char *pathname);
421 virtual const char *DirName(
const char *pathname);
422 virtual char *ConcatFileName(
const char *dir,
const char *name);
423 virtual Bool_t IsAbsoluteFileName(
const char *dir);
424 virtual Bool_t IsFileInIncludePath(
const char *name,
char **fullpath = 0);
425 virtual const char *PrependPathName(
const char *dir,
TString& name);
427 virtual char *ExpandPathName(
const char *path);
429 virtual Bool_t IsPathLocal(
const char *path);
430 virtual int CopyFile(
const char *from,
const char *to,
Bool_t overwrite =
kFALSE);
431 virtual int Rename(
const char *from,
const char *to);
432 virtual int Link(
const char *from,
const char *to);
433 virtual int Symlink(
const char *from,
const char *to);
434 virtual int Unlink(
const char *name);
437 virtual int GetPathInfo(
const char *path,
FileStat_t &buf);
439 virtual int Chmod(
const char *
file,
UInt_t mode);
440 virtual int Umask(
Int_t mask);
441 virtual int Utime(
const char *file,
Long_t modtime,
Long_t actime);
442 virtual const char *UnixPathName(
const char *unixpathname);
448 virtual Int_t GetUid(
const char *user = 0);
450 virtual Int_t GetEffectiveUid();
451 virtual Int_t GetEffectiveGid();
453 virtual UserGroup_t *GetUserInfo(
const char *user = 0);
458 virtual void Setenv(
const char *name,
const char *value);
459 virtual void Unsetenv(
const char *name);
460 virtual const char *Getenv(
const char *env);
464 virtual void Syslog(
ELogLevel level,
const char *mess);
465 virtual void Closelog();
472 virtual void AddDynamicPath(
const char *pathname);
473 virtual const char *GetDynamicPath();
474 virtual void SetDynamicPath(
const char *pathname);
475 char *DynamicPathName(
const char *lib,
Bool_t quiet =
kFALSE);
477 virtual Func_t DynFindSymbol(
const char *module,
const char *entry);
478 virtual int Load(
const char *module,
const char *entry =
"",
Bool_t system =
kFALSE);
479 virtual void Unload(
const char *module);
480 virtual void ListSymbols(
const char *module,
const char *re =
"");
481 virtual void ListLibraries(
const char *regexp =
"");
482 virtual const char *GetLibraries(
const char *regexp =
"",
483 const char *option =
"",
490 virtual int GetServiceByName(
const char *service);
491 virtual char *GetServiceByPort(
int port);
492 virtual int OpenConnection(
const char *server,
int port,
int tcpwindowsize = -1,
const char *protocol =
"tcp");
493 virtual int AnnounceTcpService(
int port,
Bool_t reuse,
int backlog,
int tcpwindowsize = -1);
494 virtual int AnnounceUdpService(
int port,
int backlog);
495 virtual int AnnounceUnixService(
int port,
int backlog);
496 virtual int AnnounceUnixService(
const char *sockpath,
int backlog);
497 virtual int AcceptConnection(
int sock);
498 virtual void CloseConnection(
int sock,
Bool_t force =
kFALSE);
499 virtual int RecvRaw(
int sock,
void *buffer,
int length,
int flag);
500 virtual int SendRaw(
int sock,
const void *buffer,
int length,
int flag);
501 virtual int RecvBuf(
int sock,
void *buffer,
int length);
502 virtual int SendBuf(
int sock,
const void *buffer,
int length);
503 virtual int SetSockOpt(
int sock,
int kind,
int val);
504 virtual int GetSockOpt(
int sock,
int kind,
int *val);
507 virtual int GetSysInfo(
SysInfo_t *info)
const;
508 virtual int GetCpuInfo(
CpuInfo_t *info,
Int_t sampleTime = 1000)
const;
509 virtual int GetMemInfo(
MemInfo_t *info)
const;
510 virtual int GetProcInfo(
ProcInfo_t *info)
const;
513 virtual void AddIncludePath(
const char *includePath);
514 virtual void AddLinkedLibs(
const char *linkedLib);
515 virtual int CompileMacro(
const char *filename,
Option_t *opt=
"",
const char* library_name =
"",
const char* build_dir =
"",
UInt_t dirmode = 0);
516 virtual Int_t GetAclicProperties()
const;
517 virtual const char *GetBuildArch()
const;
518 virtual const char *GetBuildCompiler()
const;
519 virtual const char *GetBuildCompilerVersion()
const;
520 virtual const char *GetBuildNode()
const;
521 virtual const char *GetBuildDir()
const;
522 virtual const char *GetFlagsDebug()
const;
523 virtual const char *GetFlagsOpt()
const;
524 virtual const char *GetIncludePath();
525 virtual const char *GetLinkedLibs()
const;
526 virtual const char *GetLinkdefSuffix()
const;
528 virtual const char *GetMakeExe()
const;
529 virtual const char *GetMakeSharedLib()
const;
530 virtual const char *GetSoExt()
const;
531 virtual const char *GetObjExt()
const;
532 virtual void SetBuildDir(
const char* build_dir,
Bool_t isflat =
kFALSE);
533 virtual void SetFlagsDebug(
const char *);
534 virtual void SetFlagsOpt(
const char *);
535 virtual void SetIncludePath(
const char *includePath);
536 virtual void SetMakeExe(
const char *directives);
538 virtual void SetMakeSharedLib(
const char *directives);
539 virtual void SetLinkedLibs(
const char *linkedLibs);
540 virtual void SetLinkdefSuffix(
const char *suffix);
541 virtual void SetSoExt(
const char *soExt);
542 virtual void SetObjExt(
const char *objExt);
544 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.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
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.
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)