TUnixSystem Class providing an interface to the UNIX Operating System.
TUnixSystem() | |
virtual | ~TUnixSystem() |
virtual void | Abort(int code = 0) |
void | TObject::AbstractMethod(const char* method) const |
virtual int | AcceptConnection(int sock) |
virtual Bool_t | AccessPathName(const char* path, EAccessMode mode = kFileExists) |
virtual void | AddFileHandler(TFileHandler* fh) |
virtual void | TSystem::AddIncludePath(const char* includePath) |
virtual void | TSystem::AddLinkedLibs(const char* linkedLib) |
virtual void | AddSignalHandler(TSignalHandler* sh) |
virtual void | TSystem::AddStdExceptionHandler(TStdExceptionHandler* eh) |
virtual void | AddTimer(TTimer* ti) |
virtual int | AnnounceTcpService(int port, Bool_t reuse, int backlog, int tcpwindowsize = -1) |
virtual int | AnnounceUnixService(int port, int backlog) |
virtual int | AnnounceUnixService(const char* sockpath, int backlog) |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual const char* | TSystem::BaseName(const char* pathname) |
void | TSystem::Beep(Int_t freq = -1, Int_t duration = -1, Bool_t setDefault = kFALSE) |
virtual void | TObject::Browse(TBrowser* b) |
Bool_t | TSystem::cd(const char* path) |
virtual Bool_t | ChangeDirectory(const char* path) |
void | CheckChilds() |
Bool_t | CheckDescriptors() |
Bool_t | CheckSignals(Bool_t sync) |
virtual int | Chmod(const char* file, UInt_t mode) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TSystem::CleanCompiledMacros() |
virtual void | TNamed::Clear(Option_t* option = "") |
virtual TObject* | TNamed::Clone(const char* newname = "") const |
virtual void | CloseConnection(int sock, Bool_t force = kFALSE) |
virtual void | Closelog() |
virtual int | ClosePipe(FILE* pipe) |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual int | TSystem::CompileMacro(const char* filename, Option_t* opt = "", const char* library_name = "", const char* build_dir = "", UInt_t dirmode = 0) |
virtual char* | TSystem::ConcatFileName(const char* dir, const char* name) |
int | ConnectService(const char* server, int port, int tcpwindowsize) |
virtual void | TNamed::Copy(TObject& named) const |
virtual int | CopyFile(const char* from, const char* to, Bool_t overwrite = kFALSE) |
virtual void | TObject::Delete(Option_t* option = "")MENU |
virtual const char* | TSystem::DirName(const char* pathname) |
virtual void | DispatchOneEvent(Bool_t pendingOnly = kFALSE) |
void | DispatchSignals(ESignals sig) |
Bool_t | DispatchTimers(Bool_t mode) |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() constMENU |
virtual TObject* | TObject::DrawClone(Option_t* option = "") constMENU |
virtual void | TObject::Dump() constMENU |
virtual Func_t | DynFindSymbol(const char* module, const char* entry) |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual Int_t | Exec(const char* shellcmd) |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | Exit(int code, Bool_t mode = kTRUE) |
virtual void | TSystem::ExitLoop() |
virtual Bool_t | ExpandPathName(TString& patbuf) |
virtual char* | ExpandPathName(const char* path) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual void | TNamed::FillBuffer(char*& buffer) |
virtual const char* | FindFile(const char* search, TString& file, EAccessMode mode = kFileExists) |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
virtual void | FreeDirectory(void* dirp) |
virtual TSystem::EAclicMode | TSystem::GetAclicMode() const |
void | TSystem::GetBeepDefaults(Int_t& freq, Int_t& duration) const |
virtual const char* | TSystem::GetBuildArch() const |
virtual const char* | TSystem::GetBuildCompiler() const |
virtual const char* | TSystem::GetBuildCompilerVersion() const |
virtual const char* | TSystem::GetBuildDir() const |
virtual const char* | TSystem::GetBuildNode() const |
virtual int | GetCpuInfo(CpuInfo_t* info, Int_t sampleTime = 1000) const |
virtual const char* | GetDirEntry(void* dirp) |
virtual void* | TSystem::GetDirPtr() const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | GetDynamicPath() |
virtual Int_t | GetEffectiveGid() |
virtual Int_t | GetEffectiveUid() |
virtual const char* | Getenv(const char* name) |
static Int_t | TSystem::GetErrno() |
virtual const char* | GetError() |
const char* | TSystem::GetErrorStr() const |
virtual const char* | TSystem::GetFlagsDebug() const |
virtual const char* | TSystem::GetFlagsOpt() const |
virtual Int_t | GetFPEMask() |
virtual TString | TSystem::GetFromPipe(const char* command) |
virtual int | GetFsInfo(const char* path, Long_t* id, Long_t* bsize, Long_t* blocks, Long_t* bfree) |
virtual Int_t | GetGid(const char* group = 0) |
virtual UserGroup_t* | GetGroupInfo(Int_t gid) |
virtual UserGroup_t* | GetGroupInfo(const char* group = 0) |
virtual TInetAddress | GetHostByName(const char* server) |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TSystem::GetIncludePath() |
virtual const char* | TSystem::GetLibraries(const char* regexp = "", const char* option = "", Bool_t isRegexp = kTRUE) |
virtual const char* | TSystem::GetLinkdefSuffix() const |
virtual const char* | TSystem::GetLinkedLibs() const |
virtual TSeqCollection* | TSystem::GetListOfFileHandlers() const |
virtual TSeqCollection* | TSystem::GetListOfSignalHandlers() const |
virtual TSeqCollection* | TSystem::GetListOfStdExceptionHandlers() const |
virtual TSeqCollection* | TSystem::GetListOfTimers() const |
virtual const char* | TSystem::GetMakeExe() const |
virtual const char* | TSystem::GetMakeSharedLib() const |
virtual int | GetMemInfo(MemInfo_t* info) const |
virtual const char* | TNamed::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual const char* | TSystem::GetObjExt() const |
virtual Option_t* | TObject::GetOption() const |
virtual int | GetPathInfo(const char* path, FileStat_t& buf) |
virtual TInetAddress | GetPeerName(int sock) |
virtual int | GetPid() |
virtual int | GetProcInfo(ProcInfo_t* info) const |
virtual int | GetServiceByName(const char* service) |
virtual char* | GetServiceByPort(int port) |
virtual TInetAddress | GetSockName(int sock) |
virtual int | GetSockOpt(int sock, int option, int* val) |
virtual const char* | TSystem::GetSoExt() const |
virtual int | GetSysInfo(SysInfo_t* info) const |
virtual const char* | TNamed::GetTitle() const |
virtual Int_t | GetUid(const char* user = 0) |
virtual UInt_t | TObject::GetUniqueID() const |
virtual UserGroup_t* | GetUserInfo(Int_t uid) |
virtual UserGroup_t* | GetUserInfo(const char* user = 0) |
virtual TList* | TSystem::GetVolumes(Option_t*) const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TNamed::Hash() const |
virtual const char* | HomeDirectory(const char* userName = 0) |
virtual const char* | HostName() |
virtual void | TSystem::IgnoreInterrupt(Bool_t ignore = kTRUE) |
virtual void | IgnoreSignal(ESignals sig, Bool_t ignore = kTRUE) |
Bool_t | TSystem::InControl() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual Bool_t | Init() |
virtual void | TSystem::InnerLoop() |
virtual void | TObject::Inspect() constMENU |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TSystem::IsAbsoluteFileName(const char* dir) |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TSystem::IsFileInIncludePath(const char* name, char** fullpath = 0) |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | IsPathLocal(const char* path) |
virtual Bool_t | TNamed::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual int | Link(const char* from, const char* to) |
virtual void | ListLibraries(const char* regexp = "") |
virtual void | ListSymbols(const char* module, const char* re = "") |
virtual int | Load(const char* module, const char* entry = "", Bool_t system = kFALSE) |
virtual void | TNamed::ls(Option_t* option = "") const |
virtual int | MakeDirectory(const char* name) |
void | TObject::MayNotUse(const char* method) const |
virtual int | TSystem::mkdir(const char* name, Bool_t recursive = kFALSE) |
virtual Long_t | TSystem::NextTimeOut(Bool_t mode) |
virtual Bool_t | TObject::Notify() |
virtual void | TSystem::NotifyApplicationCreated() |
virtual TTime | Now() |
virtual int | OpenConnection(const char* server, int port, int tcpwindowsize = -1) |
virtual void* | OpenDirectory(const char* name) |
virtual void | Openlog(const char* name, Int_t options, ELogFacility facility) |
virtual FILE* | OpenPipe(const char* shellcmd, const char* mode) |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
TNamed& | TNamed::operator=(const TNamed& rhs) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual const char* | PrependPathName(const char* dir, TString& name) |
virtual void | TNamed::Print(Option_t* option = "") const |
virtual Bool_t | TSystem::ProcessEvents() |
const char* | TSystem::pwd() |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
virtual int | RecvBuf(int sock, void* buffer, int length) |
virtual int | RecvRaw(int sock, void* buffer, int length, int flag) |
virtual Int_t | RedirectOutput(const char* name, const char* mode = "a", RedirectHandle_t* h = 0) |
virtual TFileHandler* | RemoveFileHandler(TFileHandler* fh) |
void | TSystem::RemoveOnExit(TObject* obj) |
virtual TSignalHandler* | RemoveSignalHandler(TSignalHandler* sh) |
virtual TStdExceptionHandler* | TSystem::RemoveStdExceptionHandler(TStdExceptionHandler* eh) |
virtual TTimer* | RemoveTimer(TTimer* ti) |
virtual int | Rename(const char* from, const char* to) |
void | TObject::ResetBit(UInt_t f) |
static void | TSystem::ResetErrno() |
virtual void | ResetSignal(ESignals sig, Bool_t reset = kTRUE) |
virtual void | ResetTimer(TTimer* ti) |
virtual void | TSystem::Run() |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
virtual void | TObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "") |
virtual Int_t | Select(TList* active, Long_t timeout) |
virtual Int_t | Select(TFileHandler* fh, Long_t timeout) |
virtual int | SendBuf(int sock, const void* buffer, int length) |
virtual int | SendRaw(int sock, const void* buffer, int length, int flag) |
virtual void | TSystem::SetAclicMode(TSystem::EAclicMode mode) |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TSystem::SetBuildDir(const char*) |
virtual void | SetDisplay() |
virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
static void | TObject::SetDtorOnly(void* obj) |
virtual void | SetDynamicPath(const char* lib) |
virtual void | Setenv(const char* name, const char* value) |
void | TSystem::SetErrorStr(const char* errstr) |
virtual void | TSystem::SetFlagsDebug(const char*) |
virtual void | TSystem::SetFlagsOpt(const char*) |
virtual Int_t | SetFPEMask(Int_t mask = kDefaultMask) |
virtual void | TSystem::SetIncludePath(const char* includePath) |
virtual void | TSystem::SetLinkdefSuffix(const char* suffix) |
virtual void | TSystem::SetLinkedLibs(const char* linkedLibs) |
virtual void | TSystem::SetMakeExe(const char* directives) |
virtual void | TSystem::SetMakeSharedLib(const char* directives) |
virtual void | TNamed::SetName(const char* name)MENU |
virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TSystem::SetObjExt(const char* objExt) |
virtual void | SetProgname(const char* name) |
virtual int | SetSockOpt(int sock, int option, int val) |
virtual void | TSystem::SetSoExt(const char* soExt) |
virtual void | TNamed::SetTitle(const char* title = "")MENU |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | TSystem::ShowOutput(RedirectHandle_t* h) |
virtual void | SigAlarmInterruptsSyscalls(Bool_t set) |
virtual Int_t | TNamed::Sizeof() const |
virtual void | Sleep(UInt_t milliSec) |
virtual TString | TSystem::SplitAclicMode(const char* filename, TString& mode, TString& args, TString& io) const |
virtual void | StackTrace() |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual int | Symlink(const char* from, const char* to) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
virtual void | Syslog(ELogLevel level, const char* mess) |
virtual const char* | TempDirectory() const |
virtual FILE* | TempFileName(TString& base, const char* dir = 0) |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual int | Umask(Int_t mask) |
virtual const char* | TSystem::UnixPathName(const char* unixpathname) |
virtual int | Unlink(const char* name) |
virtual void | Unload(const char* module) |
virtual void | TSystem::Unsetenv(const char* name) |
virtual void | TObject::UseCurrentStyle() |
virtual int | Utime(const char* file, Long_t modtime, Long_t actime) |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual char* | TSystem::Which(const char* search, const char* file, EAccessMode mode = kFileExists) |
virtual const char* | WorkingDirectory() |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
virtual Bool_t | TSystem::ConsistentWith(const char* path, void* dirptr = 0) |
virtual void | TSystem::DoBeep(Int_t = -1, Int_t = -1) const |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
virtual char* | DynamicPathName(const char* lib, Bool_t quiet = kFALSE) |
virtual const char* | TSystem::ExpandFileName(const char* fname) |
static void* | FindDynLib(const char* lib) |
TSystem* | TSystem::FindHelper(const char* path, void* dirptr = 0) |
virtual const char* | GetLinkedLibraries() |
void | TObject::MakeZombie() |
static int | ReadUtmpFile() |
static void* | SearchUtmpEntry(int nentries, const char* tty) |
static const char* | TSystem::StripOffProto(const char* path, const char* proto) |
static Func_t | UnixDynFindSymbol(const char* lib, const char* entry) |
static void | UnixDynListLibs(const char* lib = "") |
static void | UnixDynListSymbols(const char* lib, const char* re = "") |
static int | UnixDynLoad(const char* lib) |
static void | UnixDynUnload(const char* lib) |
static int | UnixFilestat(const char* path, FileStat_t& buf) |
static int | UnixFSstat(const char* path, Long_t* id, Long_t* bsize, Long_t* blocks, Long_t* bfree) |
static const char* | UnixGetdirentry(void* dir) |
static const char* | UnixHomedirectory(const char* user = 0) |
static void | UnixIgnoreSignal(ESignals sig, Bool_t ignore) |
static int | UnixMakedir(const char* name) |
static Long_t | UnixNow() |
static void* | UnixOpendir(const char* name) |
static int | UnixRecv(int sock, void* buf, int len, int flag) |
static void | UnixResetSignal(ESignals sig) |
static void | UnixResetSignals() |
static int | UnixSelect(Int_t nfds, TFdSet* readready, TFdSet* writeready, Long_t timeout) |
static int | UnixSend(int sock, const void* buf, int len, int flag) |
static int | UnixSetitimer(Long_t ms) |
static void | UnixSigAlarmInterruptsSyscalls(Bool_t set) |
static void | UnixSignal(ESignals sig, void* h) |
static const char* | UnixSigname(ESignals sig) |
static int | UnixTcpConnect(const char* hostname, int port, int tcpwindowsize) |
static int | UnixTcpService(int port, Bool_t reuse, int backlog, int tcpwindowsize) |
static int | UnixUnixConnect(int port) |
static int | UnixUnixConnect(const char* path) |
static int | UnixUnixService(int port, int backlog) |
static int | UnixUnixService(const char* sockpath, int backlog) |
static int | UnixWaitchild() |
enum TSystem::EAclicMode { | kDefault | |
kDebug | ||
kOpt | ||
}; | ||
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TSystem::EAclicMode | TSystem::fAclicMode | Whether the compilation should be done debug or opt |
Int_t | TSystem::fBeepDuration | Used by Beep() |
Int_t | TSystem::fBeepFreq | Used by Beep() |
TString | TSystem::fBuildArch | Architecure for which ROOT was built (passed to ./configure) |
TString | TSystem::fBuildCompiler | Compiler used to build this ROOT |
TString | TSystem::fBuildCompilerVersion | Compiler version used to build this ROOT |
TString | TSystem::fBuildDir | Location where to build ACLiC shared library and use as scratch area. |
TString | TSystem::fBuildNode | Detailed information where ROOT was built |
TSeqCollection* | TSystem::fCompiled | List of shared libs from compiled macros to be deleted |
Bool_t | TSystem::fDone | True if eventloop should be finished |
TSeqCollection* | TSystem::fFileHandler | List of file handlers |
TString | TSystem::fFlagsDebug | Flags for debug compilation |
TString | TSystem::fFlagsOpt | Flags for optimized compilation |
TSeqCollection* | TSystem::fHelpers | List of helper classes for alternative file/directory access |
TString | TSystem::fHostname | Hostname |
Bool_t | TSystem::fInControl | True if in eventloop |
TString | TSystem::fIncludePath | Used to expand $IncludePath in the directives given to SetMakeSharedLib and SetMakeExe |
Bool_t | TSystem::fInsideNotify | Used by DispatchTimers() |
TString | TSystem::fLastErrorString | Last system error message |
Int_t | TSystem::fLevel | Level of nested eventloops |
TString | TSystem::fLinkdefSuffix | Default suffix for linkdef files to be used by ACLiC |
TString | TSystem::fLinkedLibs | Used to expand $LinkedLibs in the directives given to SetMakeSharedLib and SetMakeExe |
TString | TSystem::fListLibs | List shared libraries, cache used by GetLibraries |
TString | TSystem::fListPaths | List of all include (fIncludePath + interpreter include path). Cache used by GetIncludePath |
TString | TSystem::fMakeExe | Directive used to build an executable |
TString | TSystem::fMakeSharedLib | Directive used to build a shared library |
Int_t | TSystem::fMaxrfd | Largest fd in read mask |
Int_t | TSystem::fMaxwfd | Largest fd in write mask |
TString | TNamed::fName | object identifier |
Int_t | TSystem::fNfd | Number of fd's in masks |
TString | TSystem::fObjExt | Extension of object files (.o, .obj, etc.) |
TSeqCollection* | TSystem::fOnExitList | List of items to be cleaned-up on exit |
TFdSet* | TSystem::fReadmask | !Files that should be checked for read events |
TFdSet* | TSystem::fReadready | !Files with reads waiting |
Int_t | TSystem::fSigcnt | Number of pending signals |
TSeqCollection* | TSystem::fSignalHandler | List of signal handlers |
TFdSet* | TSystem::fSignals | !Signals that were trapped |
TString | TSystem::fSoExt | Extension of shared library (.so, .sl, .a, .dll, etc.) |
TSeqCollection* | TSystem::fStdExceptionHandler | List of std::exception handlers |
TSeqCollection* | TSystem::fTimers | List of timers |
TString | TNamed::fTitle | object title |
TString | TSystem::fWdpath | Working directory |
TFdSet* | TSystem::fWritemask | !Files that should be checked for write events |
TFdSet* | TSystem::fWriteready | !Files with writes waiting |
Add a file handler to the list of system file handlers. Only adds the handler if it is not already in the list of file handlers.
Remove a file handler from the list of file handlers. Returns the handler or 0 if the handler was not in the list of file handlers.
Add a signal handler to list of system signal handlers. Only adds the handler if it is not already in the list of signal handlers.
Remove a signal handler from list of signal handlers. Returns the handler or 0 if the handler was not in the list of signal handlers.
If reset is true reset the signal handler for the specified signal to the default handler, else restore previous behaviour.
If ignore is true ignore the specified signal, else restore previous behaviour.
When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel. This is typically used in case one wants to put a timeout on an I/O operation. By default interrupted syscalls will always be restarted (for all signals). This can be controlled for each a-synchronous TTimer via the method TTimer::SetInterruptSyscalls().
Set which conditions trigger a floating point exception. Return the previous set of conditions.
Select on file descriptors. The timeout to is in millisec. Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again. Returns -4 in case the list did not contain any file handlers or file handlers with file descriptor >= 0.
Select on the file descriptor related to file handler h. The timeout to is in millisec. Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again. Returns -4 in case the file handler is 0 or does not have a file descriptor >= 0.
Check if there is activity on some file descriptors and call their Notify() member.
Make a Unix file system directory. Returns 0 in case of success and -1 if the directory could not be created.
Open a Unix file system directory. Returns 0 if directory does not exist.
Get next Unix file system directory entry. Returns 0 if no more entries.
Return a user configured or systemwide directory to create temporary files in.
Create a secure temporary file by appending a unique 6 letter string to base. The file will be created in a standard (system) directory or in the directory provided in dir. The full filename is returned in base and a filepointer is returned for safely writing to the file (this avoids certain security problems). Returns 0 in case of error.
Concatenate a directory and a file name.
Returns FALSE if one can access a file using the specified access mode. Mode is the same as for the Unix access(2) function. Attention, bizarre convention of return value!!
Rename a file. Returns 0 when successful, -1 in case of failure.
Returns TRUE if the url in 'path' points to the local file system. This is used to avoid going through the NIC card for local operations.
Get info about a file. Info is returned in the form of a FileStat_t structure (see TSystem.h). The function returns 0 in case of success and 1 if the file could not be stat'ed.
Get info about a file system: id, bsize, bfree, blocks. Id is file system type (machine dependend, see statfs()) Bsize is block size of file system Blocks is total number of blocks in file system Bfree is number of free blocks in file system The function returns 0 in case of success and 1 if the file system could not be stat'ed.
Create a link from file1 to file2. Returns 0 when successful, -1 in case of failure.
Create a symlink from file1 to file2. Returns 0 when succesfull, -1 in case of failure.
Unlink, i.e. remove, a file or directory. Returns 0 when succesfull, -1 in case of failure.
Expand a pathname getting rid of special shell characters like ~.$, etc. For Unix/Win32 compatibility use $(XXX) instead of $XXX when using environment variables in a pathname. If compatibility is not an issue you can use on Unix directly $XXX. Returns kFALSE in case of success or kTRUE in case of error.
Expand a pathname getting rid of special shell characters like ~.$, etc. For Unix/Win32 compatibility use $(XXX) instead of $XXX when using environment variables in a pathname. If compatibility is not an issue you can use on Unix directly $XXX. Returns kFALSE in case of success or kTRUE in case of error.
Set the file permission bits. Returns -1 in case or error, 0 otherwise.
Set a files modification and access times. If actime = 0 it will be set to the modtime. Returns 0 on success and -1 in case of error.
Returns the effective user id. The effective id corresponds to the set id bit on the file being executed.
Returns the group's id. If group = 0, returns current user's group.
Returns the effective group id. The effective group id corresponds to the set id bit on the file being executed.
Returns all user info in the UserGroup_t structure. The returned structure must be deleted by the user. In case of error 0 is returned.
Returns all user info in the UserGroup_t structure. If user = 0, returns current user's id info. The returned structure must be deleted by the user. In case of error 0 is returned.
Returns all group info in the UserGroup_t structure. The only active fields in the UserGroup_t structure for this call are: fGid and fGroup The returned structure must be deleted by the user. In case of error 0 is returned.
Returns all group info in the UserGroup_t structure. The only active fields in the UserGroup_t structure for this call are: fGid and fGroup If group = 0, returns current user's group. The returned structure must be deleted by the user. In case of error 0 is returned.
Set environment variable. The string passed will be owned by
the environment and can not be reused till a "name" is set
again. The solution below will lose the space for the string
in that case, but if this functions is not called thousands
of times that should not be a problem.
Open connection to system log daemon. For the use of the options and facility see the Unix openlog man page.
Send mess to syslog daemon. Level is the logging level and mess the message that will be written on the log.
Redirect standard output (stdout, stderr) to the specified file. If the file argument is 0 the output is set again to stderr, stdout. The second argument specifies whether the output should be added to the file ("a", default) or the file be truncated before ("w"). This function saves internally the current state into a static structure. The call can be made reentrant by specifying the opaque structure pointed by 'h', which is filled with the relevant information. The handle 'h' obtained on the first call must then be used in any subsequent call, included ShowOutput, to display the redirected output. Returns 0 on success, -1 in case of error.
Load a shared library. Returns 0 on successful loading, 1 in case lib was already loaded and -1 in case lib does not exist or in case of error.
Get list of shared libraries loaded at the start of the executable. Returns 0 in case list cannot be obtained or in case of error.
Handle and dispatch timers. If mode = kTRUE dispatch synchronous timers else a-synchronous timers.
Get Internet Protocol (IP) address of host. Returns an TInetAddress object. To see if the hostname lookup was successfull call TInetAddress::IsValid().
Connect to service servicename on server servername.
Open a connection to a service on a server. Returns -1 in case connection cannot be opened. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Is called via the TSocket constructor.
Announce TCP/IP service. Open a socket, bind to it and start listening for TCP/IP connections on the port. If reuse is true reuse the address, backlog specifies how many sockets can be waiting to be accepted. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Returns socket fd or -1 if socket() failed, -2 if bind() failed or -3 if listen() failed.
Announce unix domain service on path "kServerPath/<port>"
Announce unix domain service on path 'sockpath'
Accept a connection. In case of an error return -1. In case non-blocking I/O is enabled and no connections are available return -2.
Receive a buffer headed by a length indicator. Lenght is the size of the buffer. Returns the number of bytes received in buf or -1 in case of error.
Send a buffer headed by a length indicator. Returns length of sent buffer or -1 in case of error.
Receive exactly length bytes into buffer. Use opt to receive out-of-band data or to have a peek at what is in the buffer (see TSocket). Buffer must be able to store at least length bytes. Returns the number of bytes received (can be 0 if other side of connection was closed) or -1 in case of error, -2 in case of MSG_OOB and errno == EWOULDBLOCK, -3 in case of MSG_OOB and errno == EINVAL and -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).
Send exactly length bytes from buffer. Use opt to send out-of-band data (see TSocket). Returns the number of bytes sent or -1 in case of error. Returns -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).
If ignore is true ignore the specified signal, else restore previous behaviour.
When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel. This is typically used in case one wants to put a timeout on an I/O operation. By default interrupted syscalls will always be restarted (for all signals). This can be controlled for each a-synchronous TTimer via the method TTimer::SetInterruptSyscalls().
Wait for events on the file descriptors specified in the readready and writeready masks or for timeout (in milliseconds) to occur. Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again.
Make a Unix file system directory. Returns 0 in case of success and -1 if the directory could not be created (either already exists or illegal path name).
Get info about a file. Info is returned in the form of a FileStat_t structure (see TSystem.h). The function returns 0 in case of success and 1 if the file could not be stat'ed.
Get info about a file system: id, bsize, bfree, blocks. Id is file system type (machine dependend, see statfs()) Bsize is block size of file system Blocks is total number of blocks in file system Bfree is number of free blocks in file system The function returns 0 in case of success and 1 if the file system could not be stat'ed.
Open a TCP/IP connection to server and connect to a service (i.e. port). Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Is called via the TSocket constructor. Returns -1 in case of error.
Connect to a Unix domain socket. Returns -1 in case of error.
Open a socket, bind to it and start listening for TCP/IP connections on the port. If reuse is true reuse the address, backlog specifies how many sockets can be waiting to be accepted. If port is 0 a port scan will be done to find a free port. This option is mutual exlusive with the reuse option. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Returns socket fd or -1 if socket() failed, -2 if bind() failed or -3 if listen() failed.
Open a socket, bind to it and start listening for Unix domain connections to it. Returns socket fd or -1.
Open a socket on path 'sockpath', bind to it and start listening for Unix domain connections to it. Returns socket fd or -1.
Receive exactly length bytes into buffer. Returns number of bytes received. Returns -1 in case of error, -2 in case of MSG_OOB and errno == EWOULDBLOCK, -3 in case of MSG_OOB and errno == EINVAL and -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).
Send exactly length bytes from buffer. Returns -1 in case of error, otherwise number of sent bytes. Returns -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).
Set the dynamic path to a new value. If the value of 'path' is zero, the dynamic path is reset to its default value.
Returns the path of a shared library (searches for library in the shared library search path). If no file name extension is provided it first tries .so, .sl, .dl and then .a (for AIX). The returned string must be deleted.
Returns the handle to a loaded shared library. Returns 0 when library not loaded.
Load a shared library. Returns 0 on successful loading, 1 in case lib was already loaded and -1 in case lib does not exist or in case of error.
Finds and returns a function pointer to a symbol in the shared library. Returns 0 when symbol not found.
List symbols in a shared library. One can use wildcards to list only the interesting symbols.
Look for utmp entry which is connected to terminal tty.
Returns static system info, like OS type, CPU type, number of CPUs RAM size, etc into the SysInfo_t structure. Returns -1 in case of error, 0 otherwise.
Returns cpu load average and load info into the CpuInfo_t structure. Returns -1 in case of error, 0 otherwise. Use sampleTime to set the interval over which the CPU load will be measured, in ms (default 1000).
Returns ram and swap memory usage info into the MemInfo_t structure. Returns -1 in case of error, 0 otherwise.
Returns cpu and memory used by this process into the ProcInfo_t structure. Returns -1 in case of error, 0 otherwise.