ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
TWinNTSystem Class Reference

Definition at line 69 of file TWinNTSystem.h.

Public Types

typedef Bool_t(* ThreadMsgFunc_t )(MSG *)
 
- Public Types inherited from TSystem
enum  EAclicMode { kDefault, kDebug, kOpt }
 
enum  EAclicProperties { kFlatBuildDir = BIT(0) }
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

Public Member Functions

 TWinNTSystem ()
 ctor More...
 
virtual ~TWinNTSystem ()
 dtor More...
 
HANDLE GetProcess ()
 Get current process handle. More...
 
Bool_t HandleConsoleEvent ()
 
Bool_t Init ()
 Initialize WinNT system interface. More...
 
const char * BaseName (const char *name)
 Base name of a file name. More...
 
void SetProgname (const char *name)
 Set the application name (from command line, argv[0]) and copy it in gProgName. More...
 
const char * GetError ()
 Return system error string. More...
 
const char * HostName ()
 Return the system's host name. More...
 
voidGetGUIThreadHandle () const
 
ULong_t GetGUIThreadId () const
 
void SetGUIThreadMsgHandler (ThreadMsgFunc_t func)
 Set the (static part of) the event handler func for GUI messages. More...
 
void NotifyApplicationCreated ()
 Hook to tell TSystem that the TApplication object has been created. More...
 
Bool_t ProcessEvents ()
 process pending events, i.e. DispatchOneEvent(kTRUE) More...
 
void DispatchOneEvent (Bool_t pendingOnly=kFALSE)
 Dispatch a single event in TApplication::Run() loop. More...
 
void ExitLoop ()
 Exit from event loop. More...
 
Int_t Select (TList *active, Long_t timeout)
 Select on file descriptors. The timeout to is in millisec. More...
 
Int_t Select (TFileHandler *fh, Long_t timeout)
 Select on the file descriptor related to file handler h. More...
 
void DispatchSignals (ESignals sig)
 Handle and dispatch signals. More...
 
void AddSignalHandler (TSignalHandler *sh)
 Add a signal handler to list of system signal handlers. More...
 
TSignalHandlerRemoveSignalHandler (TSignalHandler *sh)
 Remove a signal handler from list of signal handlers. More...
 
void ResetSignal (ESignals sig, Bool_t reset=kTRUE)
 If reset is true reset the signal handler for the specified signal to the default handler, else restore previous behaviour. More...
 
void ResetSignals ()
 Reset signals handlers to previous behaviour. More...
 
void IgnoreSignal (ESignals sig, Bool_t ignore=kTRUE)
 If ignore is true ignore the specified signal, else restore previous behaviour. More...
 
void AddFileHandler (TFileHandler *fh)
 Add a file handler to the list of system file handlers. More...
 
TFileHandlerRemoveFileHandler (TFileHandler *fh)
 Remove a file handler from the list of file handlers. More...
 
void StackTrace ()
 Print a stack trace, if gEnv entry "Root.Stacktrace" is unset or 1, and if the image helper functions can be found (see InitImagehlpFunctions()). More...
 
Int_t GetFPEMask ()
 Return the bitmap of conditions that trigger a floating point exception. More...
 
Int_t SetFPEMask (Int_t mask=kDefaultMask)
 Set which conditions trigger a floating point exception. More...
 
int Exec (const char *shellcmd)
 Execute a command. More...
 
FILE * OpenPipe (const char *shellcmd, const char *mode)
 Open a pipe. More...
 
int ClosePipe (FILE *pipe)
 Close the pipe. More...
 
void Exit (int code, Bool_t mode=kTRUE)
 Exit the application. More...
 
void Abort (int code=0)
 Abort the application. More...
 
int GetPid ()
 Get process id. More...
 
const char * Getenv (const char *name)
 Get environment variable. More...
 
void Setenv (const char *name, const char *value)
 Set environment variable. More...
 
int mkdir (const char *name, Bool_t recursive=kFALSE)
 Make a file system directory. More...
 
int MakeDirectory (const char *name)
 Make a WinNT file system directory. More...
 
Bool_t ChangeDirectory (const char *path)
 Change directory. More...
 
const char * GetDirEntry (void *dirp)
 Returns the next directory entry. More...
 
const char * DirName (const char *pathname)
 Return the directory name in pathname. More...
 
void FreeDirectory (void *dirp)
 Close a WinNT file system directory. More...
 
voidOpenDirectory (const char *name)
 Open a directory. Returns 0 if directory does not exist. More...
 
const char * WorkingDirectory (char driveletter)
 Return working directory for the selected drive driveletter == 0 means return the working durectory for the default drive. More...
 
const char * WorkingDirectory ()
 Return the working directory for the default drive. More...
 
const char * HomeDirectory (const char *userName=0)
 Return the user's home directory. More...
 
const char * TempDirectory () const
 Return a user configured or systemwide directory to create temporary files in. More...
 
FILE * TempFileName (TString &base, const char *dir=0)
 Create a secure temporary file by appending a unique 6 letter string to base. More...
 
Int_t GetUid (const char *user=0)
 Returns the user's id. If user = 0, returns current user's id. More...
 
Int_t GetGid (const char *group=0)
 Returns the group's id. If group = 0, returns current user's group. More...
 
Int_t GetEffectiveUid ()
 Returns the effective user id. More...
 
Int_t GetEffectiveGid ()
 Returns the effective group id. More...
 
UserGroup_tGetUserInfo (Int_t uid)
 Returns all user info in the UserGroup_t structure. More...
 
UserGroup_tGetUserInfo (const char *user=0)
 Returns all user info in the UserGroup_t structure. More...
 
UserGroup_tGetGroupInfo (Int_t gid)
 Returns all group info in the UserGroup_t structure. More...
 
UserGroup_tGetGroupInfo (const char *group=0)
 Returns all group info in the UserGroup_t structure. More...
 
const char DriveName (const char *pathname="/")
 Return the drive letter in pathname. More...
 
const char * PrependPathName (const char *dir, TString &name)
 Concatenate a directory and a file name. More...
 
Bool_t ExpandPathName (TString &patbuf)
 Expand a pathname getting rid of special shell characaters like ~.$, etc. More...
 
char * ExpandPathName (const char *path)
 Expand a pathname getting rid of special shell characaters like ~. More...
 
Bool_t AccessPathName (const char *path, EAccessMode mode=kFileExists)
 Returns FALSE if one can access a file using the specified access mode. More...
 
Bool_t IsPathLocal (const char *path)
 Returns TRUE if the url in 'path' points to the local file system. More...
 
Bool_t IsAbsoluteFileName (const char *dir)
 Return true if dir is an absolute pathname. More...
 
int CopyFile (const char *from, const char *to, Bool_t overwrite=kFALSE)
 Copy a file. More...
 
int Rename (const char *from, const char *to)
 Rename a file. Returns 0 when successful, -1 in case of failure. More...
 
int Link (const char *from, const char *to)
 Create a link from file1 to file2. More...
 
int Symlink (const char *from, const char *to)
 Create a symlink from file1 to file2. More...
 
int Unlink (const char *name)
 Unlink, i.e. remove, a file or directory. More...
 
int SetNonBlock (int fd)
 Make descriptor fd non-blocking. More...
 
int GetPathInfo (const char *path, FileStat_t &buf)
 Get info about a file. More...
 
int GetFsInfo (const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree)
 Get info about a file system: id, bsize, bfree, blocks. More...
 
int Chmod (const char *file, UInt_t mode)
 Set the file permission bits. More...
 
int Umask (Int_t mask)
 Set the process file creation mode mask. More...
 
int Utime (const char *file, Long_t modtime, Long_t actime)
 Set a files modification and access times. More...
 
const char * UnixPathName (const char *unixpathname)
 Convert a pathname to a unix pathname. More...
 
const char * FindFile (const char *search, TString &file, EAccessMode mode=kFileExists)
 Find location of file in a search path. More...
 
TListGetVolumes (Option_t *opt="") const
 Get list of volumes (drives) mounted on the system. More...
 
Int_t RedirectOutput (const char *name, const char *mode="a", RedirectHandle_t *h=0)
 Redirect standard output (stdout, stderr) to the specified file. More...
 
void AddDynamicPath (const char *dir)
 Add a new directory to the dynamic path. More...
 
const char * GetDynamicPath ()
 Return the dynamic path (used to find shared libraries). More...
 
void SetDynamicPath (const char *path)
 Set the dynamic path to a new value. More...
 
const char * FindDynamicLibrary (TString &lib, Bool_t quiet=kFALSE)
 Returns and updates sLib to the path of a dynamic library (searches for library in the dynamic library search path). More...
 
int Load (const char *module, const char *entry="", Bool_t system=kFALSE)
 Load a shared library. More...
 
const char * GetLibraries (const char *regexp="", const char *option="", Bool_t isRegexp=kTRUE)
 Return a space separated list of loaded shared libraries. More...
 
TTime Now ()
 Get current time in milliseconds since 0:00 Jan 1 1995. More...
 
void AddTimer (TTimer *ti)
 Add timer to list of system timers. More...
 
TTimerRemoveTimer (TTimer *ti)
 Remove timer from list of system timers. More...
 
void Sleep (UInt_t milliSec)
 Sleep milliSec milli seconds. More...
 
Double_t GetRealTime ()
 
Double_t GetCPUTime ()
 
int ConnectService (const char *servername, int port, int tcpwindowsize, const char *protocol="tcp")
 Connect to service servicename on server servername. More...
 
TInetAddress GetHostByName (const char *server)
 Get Internet Protocol (IP) address of host. More...
 
TInetAddress GetPeerName (int sock)
 Get Internet Protocol (IP) address of remote host and port #. More...
 
TInetAddress GetSockName (int sock)
 Get Internet Protocol (IP) address of host and port #. More...
 
int GetServiceByName (const char *service)
 Get port # of internet service. More...
 
char * GetServiceByPort (int port)
 Get name of internet service. More...
 
int OpenConnection (const char *server, int port, int tcpwindowsize=-1, const char *protocol="tcp")
 Open a connection to a service on a server. More...
 
int AnnounceTcpService (int port, Bool_t reuse, int backlog, int tcpwindowsize=-1)
 Announce TCP/IP service. More...
 
int AnnounceUdpService (int port, int backlog)
 Announce UDP service. More...
 
int AnnounceUnixService (int port, int backlog)
 Announce unix domain service. More...
 
int AnnounceUnixService (const char *sockpath, int backlog)
 Open a socket on path 'sockpath', bind to it and start listening for Unix domain connections to it. More...
 
int AcceptConnection (int sock)
 Accept a connection. More...
 
void CloseConnection (int sock, Bool_t force=kFALSE)
 Close socket. More...
 
int RecvRaw (int sock, void *buffer, int length, int flag)
 Receive exactly length bytes into buffer. More...
 
int SendRaw (int sock, const void *buffer, int length, int flag)
 Send exactly length bytes from buffer. More...
 
int RecvBuf (int sock, void *buffer, int length)
 Receive a buffer headed by a length indicator. More...
 
int SendBuf (int sock, const void *buffer, int length)
 Send a buffer headed by a length indicator. More...
 
int SetSockOpt (int sock, int opt, int val)
 Set socket option. More...
 
int GetSockOpt (int sock, int opt, int *val)
 Get socket option. More...
 
Int_t GetSysInfo (SysInfo_t *info) const
 Returns static system info, like OS type, CPU type, number of CPUs RAM size, etc into the SysInfo_t structure. More...
 
Int_t GetCpuInfo (CpuInfo_t *info, Int_t sampleTime=1000) const
 Returns cpu load average and load info into the CpuInfo_t structure. More...
 
Int_t GetMemInfo (MemInfo_t *info) const
 Returns ram and swap memory usage info into the MemInfo_t structure. More...
 
Int_t GetProcInfo (ProcInfo_t *info) const
 Returns cpu and memory used by this process into the ProcInfo_t structure. More...
 
- Public Member Functions inherited from TSystem
 TSystem (const char *name="Generic", const char *title="Generic System")
 Create a new OS interface. More...
 
virtual ~TSystem ()
 Delete the OS interface. More...
 
virtual void SetDisplay ()
 Set DISPLAY environment variable based on utmp entry. Only for UNIX. More...
 
void SetErrorStr (const char *errstr)
 Set the system error string. More...
 
const char * GetErrorStr () const
 
void RemoveOnExit (TObject *obj)
 Objects that should be deleted on exit of the OS interface. More...
 
void Beep (Int_t freq=-1, Int_t duration=-1, Bool_t setDefault=kFALSE)
 Beep for duration milliseconds with a tone of frequency freq. More...
 
void GetBeepDefaults (Int_t &freq, Int_t &duration) const
 
virtual void Run ()
 System event loop. More...
 
Bool_t InControl () const
 
virtual void InnerLoop ()
 Inner event loop. More...
 
virtual void IgnoreInterrupt (Bool_t ignore=kTRUE)
 If ignore is true ignore the interrupt signal, else restore previous behaviour. More...
 
virtual TSeqCollectionGetListOfSignalHandlers () const
 
virtual TSeqCollectionGetListOfFileHandlers () const
 
virtual void AddStdExceptionHandler (TStdExceptionHandler *eh)
 Add an exception handler to list of system exception handlers. More...
 
virtual TStdExceptionHandlerRemoveStdExceptionHandler (TStdExceptionHandler *eh)
 Remove an exception handler from list of exception handlers. More...
 
virtual TSeqCollectionGetListOfStdExceptionHandlers () const
 
virtual TSeqCollectionGetListOfTimers () const
 
virtual void ResetTimer (TTimer *)
 
virtual Long_t NextTimeOut (Bool_t mode)
 Time when next timer of mode (synchronous=kTRUE or asynchronous=kFALSE) will time-out (in ms). More...
 
virtual TString GetFromPipe (const char *command)
 Execute command and return output in TString. More...
 
virtual voidGetDirPtr () const
 
Bool_t cd (const char *path)
 
const char * pwd ()
 
virtual char * ConcatFileName (const char *dir, const char *name)
 Concatenate a directory and a file name. User must delete returned string. More...
 
virtual Bool_t IsFileInIncludePath (const char *name, char **fullpath=0)
 Return true if 'name' is a file that can be found in the ROOT include path or the current directory. More...
 
int GetPathInfo (const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
 Get info about a file: id, size, flags, modification time. More...
 
int GetPathInfo (const char *path, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
 Get info about a file: id, size, flags, modification time. More...
 
virtual char * Which (const char *search, const char *file, EAccessMode mode=kFileExists)
 Find location of file in a search path. More...
 
virtual void Unsetenv (const char *name)
 Unset environment variable. More...
 
virtual void Openlog (const char *name, Int_t options, ELogFacility facility)
 Open connection to system log daemon. More...
 
virtual void Syslog (ELogLevel level, const char *mess)
 Send mess to syslog daemon. More...
 
virtual void Closelog ()
 Close connection to system log daemon. More...
 
virtual void ShowOutput (RedirectHandle_t *h)
 Display the content associated with the redirection described by the opaque handle 'h'. More...
 
char * DynamicPathName (const char *lib, Bool_t quiet=kFALSE)
 Find a dynamic library called lib using the system search paths. More...
 
virtual Func_t DynFindSymbol (const char *module, const char *entry)
 Find specific entry point in specified library. More...
 
virtual void Unload (const char *module)
 Unload a shared library. More...
 
virtual void ListSymbols (const char *module, const char *re="")
 List symbols in a shared library. More...
 
virtual void ListLibraries (const char *regexp="")
 List all loaded shared libraries. More...
 
virtual void AddIncludePath (const char *includePath)
 Add includePath to the already set include path. More...
 
virtual void AddLinkedLibs (const char *linkedLib)
 Add linkedLib to already set linked libs. More...
 
virtual int CompileMacro (const char *filename, Option_t *opt="", const char *library_name="", const char *build_dir="", UInt_t dirmode=0)
 This method compiles and loads a shared library containing the code from the file "filename". More...
 
virtual Int_t GetAclicProperties () const
 Return the ACLiC properties field. More...
 
virtual const char * GetBuildArch () const
 Return the build architecture. More...
 
virtual const char * GetBuildCompiler () const
 Return the build compiler. More...
 
virtual const char * GetBuildCompilerVersion () const
 Return the build compiler version. More...
 
virtual const char * GetBuildNode () const
 Return the build node name. More...
 
virtual const char * GetBuildDir () const
 Return the path of the build directory. More...
 
virtual const char * GetFlagsDebug () const
 Return the debug flags. More...
 
virtual const char * GetFlagsOpt () const
 Return the optimization flags. More...
 
virtual const char * GetIncludePath ()
 Get the list of include path. More...
 
virtual const char * GetLinkedLibs () const
 Return the list of library linked to this executable. More...
 
virtual const char * GetLinkdefSuffix () const
 Return the linkdef suffix chosen by the user for ACLiC. More...
 
virtual EAclicMode GetAclicMode () const
 AclicMode indicates whether the library should be built in debug mode or optimized. More...
 
virtual const char * GetMakeExe () const
 Return the command line use to make an executable. More...
 
virtual const char * GetMakeSharedLib () const
 Return the command line use to make a shared library. More...
 
virtual const char * GetSoExt () const
 Get the shared library extension. More...
 
virtual const char * GetObjExt () const
 Get the object file extension. More...
 
virtual void SetBuildDir (const char *build_dir, Bool_t isflat=kFALSE)
 Set the location where ACLiC will create libraries and use as a scratch area. More...
 
virtual void SetFlagsDebug (const char *)
 FlagsDebug should contain the options to pass to the C++ compiler in order to compile the library in debug mode. More...
 
virtual void SetFlagsOpt (const char *)
 FlagsOpt should contain the options to pass to the C++ compiler in order to compile the library in optimized mode. More...
 
virtual void SetIncludePath (const char *includePath)
 IncludePath should contain the list of compiler flags to indicate where to find user defined header files. More...
 
virtual void SetMakeExe (const char *directives)
 Directives has the same syntax as the argument of SetMakeSharedLib but is used to create an executable. More...
 
virtual void SetAclicMode (EAclicMode mode)
 AclicMode indicates whether the library should be built in debug mode or optimized. More...
 
virtual void SetMakeSharedLib (const char *directives)
 Directives should contain the description on how to compile and link a shared lib. More...
 
virtual void SetLinkedLibs (const char *linkedLibs)
 LinkedLibs should contain the library directory and list of libraries needed to recreate the current executable. More...
 
virtual void SetLinkdefSuffix (const char *suffix)
 The 'suffix' will be appended to the name of a script loaded by ACLiC and used to locate any eventual additional linkdef information that ACLiC should used to produce the dictionary. More...
 
virtual void SetSoExt (const char *soExt)
 Set shared library extension, should be either .so, .sl, .a, .dll, etc. More...
 
virtual void SetObjExt (const char *objExt)
 Set object files extension, should be either .o, .obj, etc. More...
 
virtual TString SplitAclicMode (const char *filename, TString &mode, TString &args, TString &io) const
 This method split a filename of the form: ~~~ {.cpp} [path/]macro.C[+|++[k|f|g|O|c|s|d|v|-]][(args)]. More...
 
virtual void CleanCompiledMacros ()
 Remove the shared libs produced by the CompileMacro() function. More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 

Static Protected Member Functions

static int WinNTUnixConnect (int port)
 Connect to a Unix domain socket. More...
 
static int WinNTUnixConnect (const char *path)
 Connect to a Unix domain socket. Returns -1 in case of error. More...
 
static int WinNTUdpConnect (const char *hostname, int port)
 Creates a UDP socket connection Is called via the TSocket constructor. More...
 
- Static Protected Member Functions inherited from TSystem
static const char * StripOffProto (const char *path, const char *proto)
 

Private Member Functions

Bool_t DispatchTimers (Bool_t mode)
 Handle and dispatch timers. More...
 
Bool_t CheckDescriptors ()
 Check if there is activity on some file descriptors and call their Notify() member. More...
 
Bool_t CheckSignals (Bool_t sync)
 Check if some signals were raised and call their Notify() member. More...
 
Bool_t CountMembers (const char *lpszGroupName)
 
const char * GetLinkedLibraries ()
 Get list of shared libraries loaded at the start of the executable. More...
 
Bool_t GetNbGroups ()
 
Long_t LookupSID (const char *lpszAccountName, int what, int &groupIdx, int &memberIdx)
 Take the name and look up a SID so that we can get full domain/user information. More...
 
Bool_t CollectMembers (const char *lpszGroupName, int &groupIdx, int &memberIdx)
 
Bool_t CollectGroups ()
 
Bool_t InitUsersGroups ()
 Collect local users and groups accounts information. More...
 
void DoBeep (Int_t freq=-1, Int_t duration=-1) const
 Beep. More...
 
void TimerThread ()
 Special Thread to check asynchronous timers. More...
 

Static Private Member Functions

static void ThreadStub (void *Parameter)
 

Private Attributes

struct groupfGroups
 
struct passwdfPasswords
 
int fNbUsers
 
int fNbGroups
 
int fActUser
 
Bool_t fGroupsInitDone
 
Bool_t fFirstFile
 
HANDLE fhProcess
 
voidfGUIThreadHandle
 
ULong_t fGUIThreadId
 
char * fDirNameBuffer
 
WIN32_FIND_DATA fFindFileData
 

Additional Inherited Members

- Static Public Member Functions inherited from TSystem
static Int_t GetErrno ()
 Static function returning system error number. More...
 
static void ResetErrno ()
 Static function resetting system error number. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Protected Member Functions inherited from TSystem
TStringGetLastErrorString ()
 Return the thread local storage for the custom last error message. More...
 
const TStringGetLastErrorString () const
 Return the thread local storage for the custom last error message. More...
 
TSystemFindHelper (const char *path, void *dirptr=0)
 Create helper TSystem to handle file and directory operations that might be special for remote file access, like via rfiod or rootd. More...
 
virtual Bool_t ConsistentWith (const char *path, void *dirptr=0)
 Check consistency of this helper with the one required by 'path' or 'dirptr'. More...
 
virtual const char * ExpandFileName (const char *fname)
 Expand a pathname getting rid of special shell characters like ~. More...
 
virtual void SigAlarmInterruptsSyscalls (Bool_t)
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
- Protected Attributes inherited from TSystem
TFdSet * fReadmask
 
TFdSet * fWritemask
 Files that should be checked for read events. More...
 
TFdSet * fReadready
 Files that should be checked for write events. More...
 
TFdSet * fWriteready
 Files with reads waiting. More...
 
TFdSet * fSignals
 Files with writes waiting. More...
 
Int_t fNfd
 Signals that were trapped. More...
 
Int_t fMaxrfd
 
Int_t fMaxwfd
 
Int_t fSigcnt
 
TString fWdpath
 
TString fHostname
 
Bool_t fInsideNotify
 
Int_t fBeepFreq
 
Int_t fBeepDuration
 
Bool_t fInControl
 
Bool_t fDone
 
Int_t fLevel
 
TSeqCollectionfTimers
 
TSeqCollectionfSignalHandler
 
TSeqCollectionfFileHandler
 
TSeqCollectionfStdExceptionHandler
 
TSeqCollectionfOnExitList
 
TString fListLibs
 
TString fBuildArch
 
TString fBuildCompiler
 
TString fBuildCompilerVersion
 
TString fBuildNode
 
TString fBuildDir
 
TString fFlagsDebug
 
TString fFlagsOpt
 
TString fListPaths
 
TString fIncludePath
 
TString fLinkedLibs
 
TString fSoExt
 
TString fObjExt
 
EAclicMode fAclicMode
 
TString fMakeSharedLib
 
TString fMakeExe
 
TString fLinkdefSuffix
 
Int_t fAclicProperties
 
TSeqCollectionfCompiled
 
TSeqCollectionfHelpers
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

#include <TWinNTSystem.h>

Inheritance diagram for TWinNTSystem:
[legend]

Member Typedef Documentation

typedef Bool_t(* TWinNTSystem::ThreadMsgFunc_t)(MSG *)

Definition at line 72 of file TWinNTSystem.h.

Constructor & Destructor Documentation

TWinNTSystem::TWinNTSystem ( )

ctor

Definition at line 987 of file TWinNTSystem.cxx.

TWinNTSystem::~TWinNTSystem ( )
virtual

dtor

Definition at line 1048 of file TWinNTSystem.cxx.

Member Function Documentation

void TWinNTSystem::Abort ( int  code = 0)
virtual

Abort the application.

Reimplemented from TSystem.

Definition at line 3851 of file TWinNTSystem.cxx.

Referenced by DispatchSignals().

int TWinNTSystem::AcceptConnection ( int  socket)
virtual

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.

Reimplemented from TSystem.

Definition at line 5361 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::AccessPathName ( const char *  path,
EAccessMode  mode = kFileExists 
)
virtual

Returns FALSE if one can access a file using the specified access mode.

Mode is the same as for the WinNT access(2) function. Attention, bizarre convention of return value!!

Reimplemented from TSystem.

Definition at line 2477 of file TWinNTSystem.cxx.

Referenced by CopyFile(), FindFile(), mkdir(), SetProgname(), and Utime().

void TWinNTSystem::AddDynamicPath ( const char *  dir)
virtual

Add a new directory to the dynamic path.

Reimplemented from TSystem.

Definition at line 3978 of file TWinNTSystem.cxx.

Referenced by Init().

void TWinNTSystem::AddFileHandler ( TFileHandler h)
virtual

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.

Reimplemented from TSystem.

Definition at line 1348 of file TWinNTSystem.cxx.

void TWinNTSystem::AddSignalHandler ( TSignalHandler h)
virtual

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.

Reimplemented from TSystem.

Definition at line 1384 of file TWinNTSystem.cxx.

void TWinNTSystem::AddTimer ( TTimer ti)
virtual

Add timer to list of system timers.

Reimplemented from TSystem.

Definition at line 4261 of file TWinNTSystem.cxx.

int TWinNTSystem::AnnounceTcpService ( int  port,
Bool_t  reuse,
int  backlog,
int  tcpwindowsize = -1 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 5221 of file TWinNTSystem.cxx.

int TWinNTSystem::AnnounceUdpService ( int  port,
int  backlog 
)
virtual

Announce UDP service.

Reimplemented from TSystem.

Definition at line 5298 of file TWinNTSystem.cxx.

int TWinNTSystem::AnnounceUnixService ( int  port,
int  backlog 
)
virtual

Announce unix domain service.

Reimplemented from TSystem.

Definition at line 4647 of file TWinNTSystem.cxx.

int TWinNTSystem::AnnounceUnixService ( const char *  sockpath,
int  backlog 
)
virtual

Open a socket on path 'sockpath', bind to it and start listening for Unix domain connections to it.

Returns socket fd or -1.

Reimplemented from TSystem.

Definition at line 4682 of file TWinNTSystem.cxx.

const char * TWinNTSystem::BaseName ( const char *  name)
virtual

Base name of a file name.

Base name of /user/root is root. But the base name of '/' is '/' 'c:\' is 'c:\'

Reimplemented from TSystem.

Definition at line 1173 of file TWinNTSystem.cxx.

Referenced by SetProgname().

Bool_t TWinNTSystem::ChangeDirectory ( const char *  path)
virtual

Change directory.

Reimplemented from TSystem.

Definition at line 1979 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::CheckDescriptors ( )
private

Check if there is activity on some file descriptors and call their Notify() member.

Definition at line 1835 of file TWinNTSystem.cxx.

Referenced by DispatchOneEvent().

Bool_t TWinNTSystem::CheckSignals ( Bool_t  sync)
private

Check if some signals were raised and call their Notify() member.

Definition at line 1805 of file TWinNTSystem.cxx.

Referenced by DispatchOneEvent(), and DispatchSignals().

int TWinNTSystem::Chmod ( const char *  file,
UInt_t  mode 
)
virtual

Set the file permission bits.

Returns -1 in case or error, 0 otherwise. On windows mode can only be a combination of "user read" (0400), "user write" (0200) or "user read | user write" (0600). Any other value for mode are ignored.

Reimplemented from TSystem.

Definition at line 2982 of file TWinNTSystem.cxx.

void TWinNTSystem::CloseConnection ( int  sock,
Bool_t  force = kFALSE 
)
virtual

Close socket.

Reimplemented from TSystem.

Definition at line 4738 of file TWinNTSystem.cxx.

int TWinNTSystem::ClosePipe ( FILE *  pipe)
virtual

Close the pipe.

Reimplemented from TSystem.

Definition at line 3795 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::CollectGroups ( )
private

Definition at line 3425 of file TWinNTSystem.cxx.

Referenced by InitUsersGroups().

Bool_t TWinNTSystem::CollectMembers ( const char *  lpszGroupName,
int &  groupIdx,
int &  memberIdx 
)
private

Definition at line 3290 of file TWinNTSystem.cxx.

Referenced by CollectGroups().

int TWinNTSystem::ConnectService ( const char *  servername,
int  port,
int  tcpwindowsize,
const char *  protocol = "tcp" 
)

Connect to service servicename on server servername.

Definition at line 5037 of file TWinNTSystem.cxx.

Referenced by OpenConnection().

int TWinNTSystem::CopyFile ( const char *  f,
const char *  t,
Bool_t  overwrite = kFALSE 
)
virtual

Copy a file.

If overwrite is true and file already exists the file will be overwritten. Returns 0 when successful, -1 in case of failure, -2 in case the file already exists and overwrite was false.

Reimplemented from TSystem.

Definition at line 2536 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::CountMembers ( const char *  lpszGroupName)
private

Definition at line 3105 of file TWinNTSystem.cxx.

Referenced by GetNbGroups().

const char * TWinNTSystem::DirName ( const char *  pathname)
virtual

Return the directory name in pathname.

DirName of c:/user/root is /user. It creates output with 'new char []' operator. Returned string has to be deleted.

Reimplemented from TSystem.

Definition at line 2345 of file TWinNTSystem.cxx.

Referenced by Init(), mkdir(), and SetProgname().

void TWinNTSystem::DispatchOneEvent ( Bool_t  pendingOnly = kFALSE)
virtual

Dispatch a single event in TApplication::Run() loop.

Reimplemented from TSystem.

Definition at line 1633 of file TWinNTSystem.cxx.

void TWinNTSystem::DispatchSignals ( ESignals  sig)

Handle and dispatch signals.

Definition at line 1783 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::DispatchTimers ( Bool_t  mode)
private

Handle and dispatch timers.

If mode = kTRUE dispatch synchronous timers else a-synchronous timers.

Definition at line 4293 of file TWinNTSystem.cxx.

Referenced by DispatchOneEvent(), and TimerThread().

void TWinNTSystem::DoBeep ( Int_t  freq = -1,
Int_t  duration = -1 
) const
privatevirtual

Beep.

If freq==0 (the default for TWinNTSystem), use ::MessageBeep. Otherwise ::Beep with freq and duration.

Reimplemented from TSystem.

Definition at line 1313 of file TWinNTSystem.cxx.

const char TWinNTSystem::DriveName ( const char *  pathname = "/")

Return the drive letter in pathname.

DriveName of 'c:/user/root' is 'c'// Input: // pathname - the string containing file name // Return: // = Letter presenting the drive letter in the file name // = The current drive if the pathname has no drive assigment // = 0 if pathname is an empty string or uses UNC syntax // Note: // It doesn't chech whether pathname presents the 'real filename // This subroutine looks for 'single letter' is follows with a ':' //

Definition at line 2398 of file TWinNTSystem.cxx.

Referenced by mkdir(), and SetProgname().

int TWinNTSystem::Exec ( const char *  shellcmd)
virtual

Execute a command.

Reimplemented from TSystem.

Definition at line 3779 of file TWinNTSystem.cxx.

void TWinNTSystem::Exit ( int  code,
Bool_t  mode = kTRUE 
)
virtual

Exit the application.

Reimplemented from TSystem.

Definition at line 3819 of file TWinNTSystem.cxx.

void TWinNTSystem::ExitLoop ( )
virtual

Exit from event loop.

Reimplemented from TSystem.

Definition at line 1774 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::ExpandPathName ( TString patbuf)
virtual

Expand a pathname getting rid of special shell characaters like ~.$, etc.

Reimplemented from TSystem.

Definition at line 2857 of file TWinNTSystem.cxx.

Referenced by ExpandPathName().

char * TWinNTSystem::ExpandPathName ( const char *  path)
virtual

Expand a pathname getting rid of special shell characaters like ~.

$, etc. User must delete returned string.

Reimplemented from TSystem.

Definition at line 2961 of file TWinNTSystem.cxx.

const char * TWinNTSystem::FindDynamicLibrary ( TString sLib,
Bool_t  quiet = kFALSE 
)
virtual

Returns and updates sLib to the path of a dynamic library (searches for library in the dynamic library search path).

If no file name extension is provided it tries .DLL.

Reimplemented from TSystem.

Definition at line 4014 of file TWinNTSystem.cxx.

const char * TWinNTSystem::FindFile ( const char *  search,
TString infile,
EAccessMode  mode = kFileExists 
)
virtual

Find location of file in a search path.

User must delete returned string. Returns 0 in case file is not found.

Reimplemented from TSystem.

Definition at line 3017 of file TWinNTSystem.cxx.

void TWinNTSystem::FreeDirectory ( void dirp)
virtual

Close a WinNT file system directory.

Reimplemented from TSystem.

Definition at line 1937 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetCpuInfo ( CpuInfo_t info,
Int_t  sampleTime = 1000 
) const
virtual

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).

Reimplemented from TSystem.

Definition at line 5969 of file TWinNTSystem.cxx.

Double_t TWinNTSystem::GetCPUTime ( )

Definition at line 4339 of file TWinNTSystem.cxx.

const char * TWinNTSystem::GetDirEntry ( void dirp)
virtual

Returns the next directory entry.

Reimplemented from TSystem.

Definition at line 1953 of file TWinNTSystem.cxx.

const char * TWinNTSystem::GetDynamicPath ( )
virtual

Return the dynamic path (used to find shared libraries).

Reimplemented from TSystem.

Definition at line 3991 of file TWinNTSystem.cxx.

Referenced by FindDynamicLibrary().

Int_t TWinNTSystem::GetEffectiveGid ( )
virtual

Returns the effective group id.

The effective group id corresponds to the set id bit on the file being executed.

Reimplemented from TSystem.

Definition at line 3589 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetEffectiveUid ( )
virtual

Returns the effective user id.

The effective id corresponds to the set id bit on the file being executed.

Reimplemented from TSystem.

Definition at line 3521 of file TWinNTSystem.cxx.

const char * TWinNTSystem::Getenv ( const char *  name)
virtual

Get environment variable.

Reimplemented from TSystem.

Definition at line 3761 of file TWinNTSystem.cxx.

Referenced by GetLinkedLibraries(), Init(), SetProgname(), and TWinNTSystem().

const char * TWinNTSystem::GetError ( )
virtual

Return system error string.

Reimplemented from TSystem.

Definition at line 1279 of file TWinNTSystem.cxx.

Referenced by AccessPathName(), and Rename().

Int_t TWinNTSystem::GetFPEMask ( )
virtual

Return the bitmap of conditions that trigger a floating point exception.

Reimplemented from TSystem.

Definition at line 1586 of file TWinNTSystem.cxx.

Referenced by SetFPEMask().

int TWinNTSystem::GetFsInfo ( const char *  path,
Long_t id,
Long_t bsize,
Long_t blocks,
Long_t bfree 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 2620 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetGid ( const char *  group = 0)
virtual

Returns the group's id. If group = 0, returns current user's group.

Reimplemented from TSystem.

Definition at line 3548 of file TWinNTSystem.cxx.

Referenced by GetGroupInfo().

UserGroup_t * TWinNTSystem::GetGroupInfo ( Int_t  gid)
virtual

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.

Reimplemented from TSystem.

Definition at line 3691 of file TWinNTSystem.cxx.

Referenced by GetGroupInfo().

UserGroup_t * TWinNTSystem::GetGroupInfo ( const char *  group = 0)
virtual

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.

Reimplemented from TSystem.

Definition at line 3743 of file TWinNTSystem.cxx.

void* TWinNTSystem::GetGUIThreadHandle ( ) const
inline

Definition at line 123 of file TWinNTSystem.h.

ULong_t TWinNTSystem::GetGUIThreadId ( ) const
inline

Definition at line 124 of file TWinNTSystem.h.

TInetAddress TWinNTSystem::GetHostByName ( const char *  server)
virtual

Get Internet Protocol (IP) address of host.

Reimplemented from TSystem.

Definition at line 4526 of file TWinNTSystem.cxx.

const char * TWinNTSystem::GetLibraries ( const char *  regexp = "",
const char *  options = "",
Bool_t  isRegexp = kTRUE 
)
virtual

Return a space separated list of loaded shared libraries.

This list is of a format suitable for a linker, i.e it may contain -Lpathname and/or -lNameOfLib. Option can be any of: S: shared libraries loaded at the start of the executable, because they were specified on the link line. D: shared libraries dynamically loaded after the start of the program. L: list the .LIB rather than the .DLL (this is intended for linking) [This options is not the default]

Reimplemented from TSystem.

Definition at line 4208 of file TWinNTSystem.cxx.

const char * TWinNTSystem::GetLinkedLibraries ( )
privatevirtual

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.

Reimplemented from TSystem.

Definition at line 4054 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetMemInfo ( MemInfo_t info) const
virtual

Returns ram and swap memory usage info into the MemInfo_t structure.

Returns -1 in case of error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 5980 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::GetNbGroups ( )
private

Definition at line 3164 of file TWinNTSystem.cxx.

Referenced by InitUsersGroups().

int TWinNTSystem::GetPathInfo ( const char *  path,
FileStat_t buf 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 2563 of file TWinNTSystem.cxx.

Referenced by GetLibraries().

TInetAddress TWinNTSystem::GetPeerName ( int  sock)
virtual

Get Internet Protocol (IP) address of remote host and port #.

Reimplemented from TSystem.

Definition at line 4581 of file TWinNTSystem.cxx.

int TWinNTSystem::GetPid ( )
virtual

Get process id.

Reimplemented from TSystem.

Definition at line 3803 of file TWinNTSystem.cxx.

HANDLE TWinNTSystem::GetProcess ( )

Get current process handle.

Definition at line 3811 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetProcInfo ( ProcInfo_t info) const
virtual

Returns cpu and memory used by this process into the ProcInfo_t structure.

Returns -1 in case of error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 5991 of file TWinNTSystem.cxx.

Double_t TWinNTSystem::GetRealTime ( )

Definition at line 4325 of file TWinNTSystem.cxx.

Referenced by GetCPUTime().

int TWinNTSystem::GetServiceByName ( const char *  service)
virtual

Get port # of internet service.

Reimplemented from TSystem.

Definition at line 4497 of file TWinNTSystem.cxx.

char * TWinNTSystem::GetServiceByPort ( int  port)
virtual

Get name of internet service.

Reimplemented from TSystem.

Definition at line 4511 of file TWinNTSystem.cxx.

TInetAddress TWinNTSystem::GetSockName ( int  sock)
virtual

Get Internet Protocol (IP) address of host and port #.

Reimplemented from TSystem.

Definition at line 4614 of file TWinNTSystem.cxx.

int TWinNTSystem::GetSockOpt ( int  sock,
int  opt,
int *  val 
)
virtual

Get socket option.

Reimplemented from TSystem.

Definition at line 4951 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetSysInfo ( SysInfo_t info) const
virtual

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.

Reimplemented from TSystem.

Definition at line 5957 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::GetUid ( const char *  user = 0)
virtual

Returns the user's id. If user = 0, returns current user's id.

Reimplemented from TSystem.

Definition at line 3480 of file TWinNTSystem.cxx.

Referenced by GetUserInfo().

UserGroup_t * TWinNTSystem::GetUserInfo ( Int_t  uid)
virtual

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.

Reimplemented from TSystem.

Definition at line 3617 of file TWinNTSystem.cxx.

Referenced by GetUserInfo().

UserGroup_t * TWinNTSystem::GetUserInfo ( const char *  user = 0)
virtual

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.

Reimplemented from TSystem.

Definition at line 3679 of file TWinNTSystem.cxx.

TList * TWinNTSystem::GetVolumes ( Option_t opt = "") const
virtual

Get list of volumes (drives) mounted on the system.

The returned TList must be deleted by the user using "delete".

Reimplemented from TSystem.

Definition at line 2243 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::HandleConsoleEvent ( )

Definition at line 967 of file TWinNTSystem.cxx.

const char * TWinNTSystem::HomeDirectory ( const char *  userName = 0)
virtual

Return the user's home directory.

Reimplemented from TSystem.

Definition at line 2168 of file TWinNTSystem.cxx.

Referenced by Getenv().

const char * TWinNTSystem::HostName ( )
virtual

Return the system's host name.

Reimplemented from TSystem.

Definition at line 1295 of file TWinNTSystem.cxx.

void TWinNTSystem::IgnoreSignal ( ESignals  sig,
Bool_t  ignore = kTRUE 
)
virtual

If ignore is true ignore the specified signal, else restore previous behaviour.

Reimplemented from TSystem.

Definition at line 1455 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::Init ( )
virtual

Initialize WinNT system interface.

Reimplemented from TSystem.

Definition at line 1081 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::InitUsersGroups ( )
private

Collect local users and groups accounts information.

Definition at line 3071 of file TWinNTSystem.cxx.

Referenced by GetEffectiveGid(), GetEffectiveUid(), GetGid(), GetGroupInfo(), GetUid(), and GetUserInfo().

Bool_t TWinNTSystem::IsAbsoluteFileName ( const char *  dir)
virtual

Return true if dir is an absolute pathname.

Reimplemented from TSystem.

Definition at line 2423 of file TWinNTSystem.cxx.

Referenced by FindFile(), mkdir(), and SetProgname().

Bool_t TWinNTSystem::IsPathLocal ( const char *  path)
virtual

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.

Reimplemented from TSystem.

Definition at line 2504 of file TWinNTSystem.cxx.

int TWinNTSystem::Link ( const char *  from,
const char *  to 
)
virtual

Create a link from file1 to file2.

Reimplemented from TSystem.

Definition at line 2688 of file TWinNTSystem.cxx.

int TWinNTSystem::Load ( const char *  module,
const char *  entry = "",
Bool_t  system = kFALSE 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 4042 of file TWinNTSystem.cxx.

Long_t TWinNTSystem::LookupSID ( const char *  lpszAccountName,
int  what,
int &  groupIdx,
int &  memberIdx 
)
private

Take the name and look up a SID so that we can get full domain/user information.

Definition at line 3217 of file TWinNTSystem.cxx.

Referenced by CollectGroups(), and CollectMembers().

int TWinNTSystem::MakeDirectory ( const char *  name)
virtual

Make a WinNT 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).

Reimplemented from TSystem.

Definition at line 1916 of file TWinNTSystem.cxx.

Referenced by mkdir().

int TWinNTSystem::mkdir ( const char *  name,
Bool_t  recursive = kFALSE 
)
virtual

Make a 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). If 'recursive' is true, makes parent directories as needed.

Reimplemented from TSystem.

Definition at line 1881 of file TWinNTSystem.cxx.

void TWinNTSystem::NotifyApplicationCreated ( )
virtual

Hook to tell TSystem that the TApplication object has been created.

Reimplemented from TSystem.

Definition at line 1335 of file TWinNTSystem.cxx.

TTime TWinNTSystem::Now ( )
virtual

Get current time in milliseconds since 0:00 Jan 1 1995.

Reimplemented from TSystem.

Definition at line 4391 of file TWinNTSystem.cxx.

Referenced by DispatchTimers().

int TWinNTSystem::OpenConnection ( const char *  server,
int  port,
int  tcpwindowsize = -1,
const char *  protocol = "tcp" 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 5204 of file TWinNTSystem.cxx.

void * TWinNTSystem::OpenDirectory ( const char *  name)
virtual

Open a directory. Returns 0 if directory does not exist.

Reimplemented from TSystem.

Definition at line 2056 of file TWinNTSystem.cxx.

FILE * TWinNTSystem::OpenPipe ( const char *  shellcmd,
const char *  mode 
)
virtual

Open a pipe.

Reimplemented from TSystem.

Definition at line 3787 of file TWinNTSystem.cxx.

const char * TWinNTSystem::PrependPathName ( const char *  dir,
TString name 
)
virtual

Concatenate a directory and a file name.

Reimplemented from TSystem.

Definition at line 2516 of file TWinNTSystem.cxx.

Bool_t TWinNTSystem::ProcessEvents ( )
virtual

process pending events, i.e. DispatchOneEvent(kTRUE)

Reimplemented from TSystem.

Definition at line 1625 of file TWinNTSystem.cxx.

int TWinNTSystem::RecvBuf ( int  sock,
void buf,
int  length 
)
virtual

Receive a buffer headed by a length indicator.

Length is the size of the buffer. Returns the number of bytes received in buf or -1 in case of error.

Reimplemented from TSystem.

Definition at line 4758 of file TWinNTSystem.cxx.

int TWinNTSystem::RecvRaw ( int  sock,
void buf,
int  length,
int  opt 
)
virtual

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).

Reimplemented from TSystem.

Definition at line 4810 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::RedirectOutput ( const char *  file,
const char *  mode = "a",
RedirectHandle_t h = 0 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 3870 of file TWinNTSystem.cxx.

TFileHandler * TWinNTSystem::RemoveFileHandler ( TFileHandler h)
virtual

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.

Reimplemented from TSystem.

Definition at line 1368 of file TWinNTSystem.cxx.

TSignalHandler * TWinNTSystem::RemoveSignalHandler ( TSignalHandler h)
virtual

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.

Reimplemented from TSystem.

Definition at line 1412 of file TWinNTSystem.cxx.

TTimer * TWinNTSystem::RemoveTimer ( TTimer ti)
virtual

Remove timer from list of system timers.

Reimplemented from TSystem.

Definition at line 4269 of file TWinNTSystem.cxx.

int TWinNTSystem::Rename ( const char *  from,
const char *  to 
)
virtual

Rename a file. Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 2550 of file TWinNTSystem.cxx.

void TWinNTSystem::ResetSignal ( ESignals  sig,
Bool_t  reset = kTRUE 
)
virtual

If reset is true reset the signal handler for the specified signal to the default handler, else restore previous behaviour.

Reimplemented from TSystem.

Definition at line 1438 of file TWinNTSystem.cxx.

void TWinNTSystem::ResetSignals ( )
virtual

Reset signals handlers to previous behaviour.

Reimplemented from TSystem.

Definition at line 1446 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::Select ( TList active,
Long_t  timeout 
)
virtual

Select on file descriptors. The timeout to is in millisec.

Reimplemented from TSystem.

Definition at line 4429 of file TWinNTSystem.cxx.

Int_t TWinNTSystem::Select ( TFileHandler h,
Long_t  to 
)
virtual

Select on the file descriptor related to file handler h.

The timeout to is in millisec.

Reimplemented from TSystem.

Definition at line 4466 of file TWinNTSystem.cxx.

int TWinNTSystem::SendBuf ( int  sock,
const void buf,
int  length 
)
virtual

Send a buffer headed by a length indicator.

Returns length of sent buffer or -1 in case of error.

Reimplemented from TSystem.

Definition at line 4783 of file TWinNTSystem.cxx.

int TWinNTSystem::SendRaw ( int  sock,
const void buf,
int  length,
int  opt 
)
virtual

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).

Reimplemented from TSystem.

Definition at line 4848 of file TWinNTSystem.cxx.

void TWinNTSystem::SetDynamicPath ( const char *  path)
virtual

Set the dynamic path to a new value.

If the value of 'path' is zero, the dynamic path is reset to its default value.

Reimplemented from TSystem.

Definition at line 4001 of file TWinNTSystem.cxx.

void TWinNTSystem::Setenv ( const char *  name,
const char *  value 
)
virtual

Set environment variable.

Reimplemented from TSystem.

Definition at line 3753 of file TWinNTSystem.cxx.

Referenced by TWinNTSystem().

Int_t TWinNTSystem::SetFPEMask ( Int_t  mask = kDefaultMask)
virtual

Set which conditions trigger a floating point exception.

Return the previous set of conditions.

Reimplemented from TSystem.

Definition at line 1604 of file TWinNTSystem.cxx.

void TWinNTSystem::SetGUIThreadMsgHandler ( ThreadMsgFunc_t  func)

Set the (static part of) the event handler func for GUI messages.

Definition at line 1327 of file TWinNTSystem.cxx.

int TWinNTSystem::SetNonBlock ( int  fd)

Make descriptor fd non-blocking.

Definition at line 2838 of file TWinNTSystem.cxx.

void TWinNTSystem::SetProgname ( const char *  name)
virtual

Set the application name (from command line, argv[0]) and copy it in gProgName.

Copy the application pathname in gProgPath.

Reimplemented from TSystem.

Definition at line 1216 of file TWinNTSystem.cxx.

int TWinNTSystem::SetSockOpt ( int  sock,
int  opt,
int  val 
)
virtual

Set socket option.

Reimplemented from TSystem.

Definition at line 4881 of file TWinNTSystem.cxx.

void TWinNTSystem::Sleep ( UInt_t  milliSec)
virtual

Sleep milliSec milli seconds.

The Sleep function suspends the execution of the CURRENT THREAD for a specified interval.

Reimplemented from TSystem.

Definition at line 4421 of file TWinNTSystem.cxx.

Referenced by TimerThread().

void TWinNTSystem::StackTrace ( )
virtual

Print a stack trace, if gEnv entry "Root.Stacktrace" is unset or 1, and if the image helper functions can be found (see InitImagehlpFunctions()).

The stack trace is printed for each thread; if fgXcptContext is set (e.g. because there was an exception) use it to define the current thread's context. For each frame in the stack, the frame's module name, the frame's function name, and the frame's line number are printed.

Reimplemented from TSystem.

Definition at line 1468 of file TWinNTSystem.cxx.

Referenced by DispatchSignals().

int TWinNTSystem::Symlink ( const char *  from,
const char *  to 
)
virtual

Create a symlink from file1 to file2.

Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 2746 of file TWinNTSystem.cxx.

const char * TWinNTSystem::TempDirectory ( ) const
virtual

Return a user configured or systemwide directory to create temporary files in.

Reimplemented from TSystem.

Definition at line 2202 of file TWinNTSystem.cxx.

Referenced by TempFileName().

FILE * TWinNTSystem::TempFileName ( TString base,
const char *  dir = 0 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 2224 of file TWinNTSystem.cxx.

static void TWinNTSystem::ThreadStub ( void Parameter)
inlinestaticprivate

Definition at line 101 of file TWinNTSystem.h.

Referenced by Init().

void TWinNTSystem::TimerThread ( )
private

Special Thread to check asynchronous timers.

Definition at line 4280 of file TWinNTSystem.cxx.

int TWinNTSystem::Umask ( Int_t  mask)
virtual

Set the process file creation mode mask.

Reimplemented from TSystem.

Definition at line 2990 of file TWinNTSystem.cxx.

const char * TWinNTSystem::UnixPathName ( const char *  name)
virtual

Convert a pathname to a unix pathname.

E.g. form to /user/root. General rules for applications creating names for directories and files or processing names supplied by the user include the following:

  • Use any character in the current code page for a name, but do not use a path separator, a character in the range 0 through 31, or any character explicitly disallowed by the file system. A name can contain characters in the extended character set (128-255).
  • Use the backslash (), the forward slash (/), or both to separate components in a path. No other character is acceptable as a path separator.
  • Use a period (.) as a directory component in a path to represent the current directory.
  • Use two consecutive periods (..) as a directory component in a path to represent the parent of the current directory.
  • Use a period (.) to separate components in a directory name or filename.
  • Do not use the following characters in directory names or filenames, because they are reserved for Windows: < > : " / \ |
  • Do not use reserved words, such as aux, con, and prn, as filenames or directory names.
  • Process a path as a null-terminated string. The maximum length for a path is given by MAX_PATH.
  • Do not assume case sensitivity. Consider names such as OSCAR, Oscar, and oscar to be the same.

Reimplemented from TSystem.

Definition at line 2459 of file TWinNTSystem.cxx.

int TWinNTSystem::Unlink ( const char *  name)
virtual

Unlink, i.e. remove, a file or directory.

Reimplemented from TSystem.

Definition at line 2816 of file TWinNTSystem.cxx.

int TWinNTSystem::Utime ( const char *  file,
Long_t  modtime,
Long_t  actime 
)
virtual

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.

Reimplemented from TSystem.

Definition at line 2999 of file TWinNTSystem.cxx.

int TWinNTSystem::WinNTUdpConnect ( const char *  hostname,
int  port 
)
staticprotected

Creates a UDP socket connection Is called via the TSocket constructor.

Returns -1 in case of error.

Definition at line 5155 of file TWinNTSystem.cxx.

Referenced by ConnectService().

int TWinNTSystem::WinNTUnixConnect ( int  port)
staticprotected

Connect to a Unix domain socket.

Definition at line 5094 of file TWinNTSystem.cxx.

Referenced by ConnectService(), and WinNTUnixConnect().

int TWinNTSystem::WinNTUnixConnect ( const char *  path)
staticprotected

Connect to a Unix domain socket. Returns -1 in case of error.

Definition at line 5125 of file TWinNTSystem.cxx.

const char * TWinNTSystem::WorkingDirectory ( char  driveletter)

Return working directory for the selected drive driveletter == 0 means return the working durectory for the default drive.

Definition at line 2143 of file TWinNTSystem.cxx.

const char * TWinNTSystem::WorkingDirectory ( )
virtual

Return the working directory for the default drive.

Reimplemented from TSystem.

Definition at line 2134 of file TWinNTSystem.cxx.

Referenced by DriveName(), and SetProgname().

Member Data Documentation

int TWinNTSystem::fActUser
private
char* TWinNTSystem::fDirNameBuffer
private

Definition at line 86 of file TWinNTSystem.h.

Referenced by DirName(), TWinNTSystem(), and ~TWinNTSystem().

WIN32_FIND_DATA TWinNTSystem::fFindFileData
private

Definition at line 87 of file TWinNTSystem.h.

Referenced by GetDirEntry(), and OpenDirectory().

Bool_t TWinNTSystem::fFirstFile
private

Definition at line 81 of file TWinNTSystem.h.

Referenced by GetDirEntry(), Init(), and OpenDirectory().

struct group* TWinNTSystem::fGroups
private
Bool_t TWinNTSystem::fGroupsInitDone
private
void* TWinNTSystem::fGUIThreadHandle
private

Definition at line 84 of file TWinNTSystem.h.

Referenced by GetGUIThreadHandle(), and Init().

ULong_t TWinNTSystem::fGUIThreadId
private

Definition at line 85 of file TWinNTSystem.h.

Referenced by GetGUIThreadId(), Init(), and NotifyApplicationCreated().

HANDLE TWinNTSystem::fhProcess
private

Definition at line 83 of file TWinNTSystem.h.

Referenced by GetProcess(), and TWinNTSystem().

int TWinNTSystem::fNbGroups
private

Definition at line 78 of file TWinNTSystem.h.

Referenced by GetGid(), GetGroupInfo(), GetNbGroups(), and InitUsersGroups().

int TWinNTSystem::fNbUsers
private

Definition at line 77 of file TWinNTSystem.h.

Referenced by CountMembers(), GetUid(), GetUserInfo(), and InitUsersGroups().

struct passwd* TWinNTSystem::fPasswords
private
Collaboration diagram for TWinNTSystem:
[legend]

The documentation for this class was generated from the following files: