Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TWinNTSystem Class Reference

Definition at line 58 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 = (1ULL << ( 0 )) }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 

Public Member Functions

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

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TSystem
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Int_t GetErrno ()
 Static function returning system error number.
 
static void ResetErrno ()
 Static function resetting system error number.
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Static Protected Member Functions

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

Private Member Functions

Bool_t CheckDescriptors ()
 Check if there is activity on some file descriptors and call their Notify() member.
 
Bool_t CheckSignals (Bool_t sync)
 Check if some signals were raised and call their Notify() member.
 
Bool_t CollectGroups ()
 
Bool_t CollectMembers (const char *lpszGroupName, int &groupIdx, int &memberIdx)
 
Bool_t CountMembers (const char *lpszGroupName)
 
Bool_t DispatchTimers (Bool_t mode)
 Handle and dispatch timers.
 
void DoBeep (Int_t freq=-1, Int_t duration=-1) const override
 Beep.
 
void FillWithHomeDirectory (const char *userName, char *mydir) const
 Fill buffer with user's home directory.
 
const char * GetLinkedLibraries () override
 Get list of shared libraries loaded at the start of the executable.
 
Bool_t GetNbGroups ()
 
char * GetWorkingDirectory (char driveletter) const
 Return working directory for the selected drive (helper function).
 
Bool_t InitUsersGroups ()
 Collect local users and groups accounts information.
 
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.
 
void TimerThread ()
 Special Thread to check asynchronous timers.
 

Static Private Member Functions

static void ThreadStub (void *Parameter)
 

Private Attributes

int fActUser {-1}
 
std::string fDirNameBuffer
 
struct groupfGroups {nullptr}
 
Bool_t fGroupsInitDone {kFALSE}
 
void * fGUIThreadHandle {nullptr}
 
ULong_t fGUIThreadId {0}
 
HANDLE fhProcess
 
int fNbGroups {0}
 
int fNbUsers {0}
 
struct passwdfPasswords {nullptr}
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Member Functions inherited from TSystem
virtual Bool_t ConsistentWith (const char *path, void *dirptr=nullptr)
 Check consistency of this helper with the one required by 'path' or 'dirptr'.
 
virtual const char * ExpandFileName (const char *fname)
 Expand a pathname getting rid of special shell characters like ~.
 
virtual Bool_t ExpandFileName (TString &fname)
 Expand a pathname getting rid of special shell characters like ~.
 
TSystemFindHelper (const char *path, void *dirptr=nullptr)
 Create helper TSystem to handle file and directory operations that might be special for remote file access.
 
TStringGetLastErrorString ()
 Return the thread local storage for the custom last error message.
 
const TStringGetLastErrorString () const
 Return the thread local storage for the custom last error message.
 
virtual void SigAlarmInterruptsSyscalls (Bool_t)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Protected Attributes inherited from TSystem
EAclicMode fAclicMode {kDefault}
 
Int_t fAclicProperties {0}
 
Int_t fBeepDuration {0}
 
Int_t fBeepFreq {0}
 
TString fBuildArch
 
TString fBuildCompiler
 
TString fBuildCompilerVersion
 
TString fBuildCompilerVersionStr
 
TString fBuildDir
 
TString fBuildNode
 
TSeqCollectionfCompiled {nullptr}
 
Bool_t fDone {kFALSE}
 
TSeqCollectionfFileHandler {nullptr}
 
TString fFlagsDebug
 
TString fFlagsOpt
 
TSeqCollectionfHelpers {nullptr}
 
TString fHostname
 
TString fIncludePath
 
Bool_t fInControl {kFALSE}
 
std::atomic< Bool_tfInsideNotify {kFALSE}
 
Int_t fLevel {0}
 
TString fLinkdefSuffix
 
TString fLinkedLibs
 
TString fListLibs
 
TString fListPaths
 
TString fMakeExe
 
TString fMakeSharedLib
 
Int_t fMaxrfd {-1}
 
Int_t fMaxwfd {-1}
 
Int_t fNfd {0}
 Signals that were trapped.
 
TString fObjExt
 
TSeqCollectionfOnExitList {nullptr}
 
TFdSetfReadmask {nullptr}
 
TFdSetfReadready {nullptr}
 Files that should be checked for write events.
 
Int_t fSigcnt {0}
 
TSeqCollectionfSignalHandler {nullptr}
 
TFdSetfSignals {nullptr}
 Files with writes waiting.
 
TString fSoExt
 
TSeqCollectionfStdExceptionHandler {nullptr}
 
TListfTimers {nullptr}
 
TString fWdpath
 
TFdSetfWritemask {nullptr}
 Files that should be checked for read events.
 
TFdSetfWriteready {nullptr}
 Files with reads waiting.
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

#include <TWinNTSystem.h>

Inheritance diagram for TWinNTSystem:
[legend]

Member Typedef Documentation

◆ ThreadMsgFunc_t

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

Definition at line 61 of file TWinNTSystem.h.

Constructor & Destructor Documentation

◆ TWinNTSystem()

TWinNTSystem::TWinNTSystem ( )

ctor

Definition at line 985 of file TWinNTSystem.cxx.

◆ ~TWinNTSystem()

TWinNTSystem::~TWinNTSystem ( )
virtual

dtor

Definition at line 1048 of file TWinNTSystem.cxx.

Member Function Documentation

◆ Abort()

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

Abort the application.

Reimplemented from TSystem.

Definition at line 3949 of file TWinNTSystem.cxx.

◆ AcceptConnection()

int TWinNTSystem::AcceptConnection ( int  socket)
overridevirtual

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 5525 of file TWinNTSystem.cxx.

◆ AccessPathName()

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

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 2557 of file TWinNTSystem.cxx.

◆ AddDynamicPath()

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

Add a new directory to the dynamic path.

Reimplemented from TSystem.

Definition at line 4077 of file TWinNTSystem.cxx.

◆ AddFileHandler()

void TWinNTSystem::AddFileHandler ( TFileHandler h)
overridevirtual

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 1335 of file TWinNTSystem.cxx.

◆ AddSignalHandler()

void TWinNTSystem::AddSignalHandler ( TSignalHandler h)
overridevirtual

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 1371 of file TWinNTSystem.cxx.

◆ AddTimer()

void TWinNTSystem::AddTimer ( TTimer ti)
overridevirtual

Add timer to list of system timers.

Reimplemented from TSystem.

Definition at line 4423 of file TWinNTSystem.cxx.

◆ AnnounceTcpService()

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

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 5383 of file TWinNTSystem.cxx.

◆ AnnounceUdpService()

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

Announce UDP service.

Reimplemented from TSystem.

Definition at line 5461 of file TWinNTSystem.cxx.

◆ AnnounceUnixService() [1/2]

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

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 4844 of file TWinNTSystem.cxx.

◆ AnnounceUnixService() [2/2]

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

Announce unix domain service.

Reimplemented from TSystem.

Definition at line 4809 of file TWinNTSystem.cxx.

◆ BaseName()

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

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 1149 of file TWinNTSystem.cxx.

◆ ChangeDirectory()

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

Change directory.

Reimplemented from TSystem.

Definition at line 1984 of file TWinNTSystem.cxx.

◆ CheckDescriptors()

Bool_t TWinNTSystem::CheckDescriptors ( )
private

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

Definition at line 1832 of file TWinNTSystem.cxx.

◆ CheckSignals()

Bool_t TWinNTSystem::CheckSignals ( Bool_t  sync)
private

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

Definition at line 1802 of file TWinNTSystem.cxx.

◆ Chmod()

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

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 3073 of file TWinNTSystem.cxx.

◆ Class()

static TClass * TWinNTSystem::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TWinNTSystem::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TWinNTSystem::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 254 of file TWinNTSystem.h.

◆ CloseConnection()

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

Close socket.

Reimplemented from TSystem.

Definition at line 4900 of file TWinNTSystem.cxx.

◆ ClosePipe()

int TWinNTSystem::ClosePipe ( FILE *  pipe)
overridevirtual

Close the pipe.

Reimplemented from TSystem.

Definition at line 3889 of file TWinNTSystem.cxx.

◆ CollectGroups()

Bool_t TWinNTSystem::CollectGroups ( )
private

Definition at line 3519 of file TWinNTSystem.cxx.

◆ CollectMembers()

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

Definition at line 3383 of file TWinNTSystem.cxx.

◆ ConnectService()

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

Connect to service servicename on server servername.

Definition at line 5199 of file TWinNTSystem.cxx.

◆ CopyFile()

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

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 2616 of file TWinNTSystem.cxx.

◆ CountMembers()

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

Definition at line 3196 of file TWinNTSystem.cxx.

◆ DeclFileName()

static const char * TWinNTSystem::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 254 of file TWinNTSystem.h.

◆ DirName()

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

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 2424 of file TWinNTSystem.cxx.

◆ DispatchOneEvent()

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

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

Reimplemented from TSystem.

Definition at line 1620 of file TWinNTSystem.cxx.

◆ DispatchSignals()

void TWinNTSystem::DispatchSignals ( ESignals  sig)

Handle and dispatch signals.

Definition at line 1770 of file TWinNTSystem.cxx.

◆ DispatchTimers()

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 4455 of file TWinNTSystem.cxx.

◆ DoBeep()

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

Beep.

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

Reimplemented from TSystem.

Definition at line 1300 of file TWinNTSystem.cxx.

◆ DriveName()

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 representing 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 check whether pathname represents a 'real' filename. This subroutine looks for 'single letter' followed by a ':'.

Definition at line 2475 of file TWinNTSystem.cxx.

◆ Exec()

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

Execute a command.

Reimplemented from TSystem.

Definition at line 3873 of file TWinNTSystem.cxx.

◆ Exit()

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

Exit the application.

Reimplemented from TSystem.

Definition at line 3913 of file TWinNTSystem.cxx.

◆ ExitLoop()

void TWinNTSystem::ExitLoop ( )
overridevirtual

Exit from event loop.

Reimplemented from TSystem.

Definition at line 1761 of file TWinNTSystem.cxx.

◆ ExpandPathName() [1/2]

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

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

$, etc. User must delete returned string.

Reimplemented from TSystem.

Definition at line 3051 of file TWinNTSystem.cxx.

◆ ExpandPathName() [2/2]

Bool_t TWinNTSystem::ExpandPathName ( TString patbuf)
overridevirtual

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

Reimplemented from TSystem.

Definition at line 2940 of file TWinNTSystem.cxx.

◆ FillWithHomeDirectory()

void TWinNTSystem::FillWithHomeDirectory ( const char *  userName,
char *  mydir 
) const
private

Fill buffer with user's home directory.

Definition at line 2224 of file TWinNTSystem.cxx.

◆ FindDynamicLibrary()

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

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 4113 of file TWinNTSystem.cxx.

◆ FindFile()

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

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 3108 of file TWinNTSystem.cxx.

◆ FreeDirectory()

void TWinNTSystem::FreeDirectory ( void *  dirp)
overridevirtual

Close a WinNT file system directory.

Reimplemented from TSystem.

Definition at line 1944 of file TWinNTSystem.cxx.

◆ GetCpuInfo()

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

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 6133 of file TWinNTSystem.cxx.

◆ GetCPUTime()

Double_t TWinNTSystem::GetCPUTime ( )

Definition at line 4501 of file TWinNTSystem.cxx.

◆ GetCryptoRandom()

Int_t TWinNTSystem::GetCryptoRandom ( void *  buf,
Int_t  len 
)
overridevirtual

Return cryptographic random number Fill provided buffer with random values Returns number of bytes written to buffer or -1 in case of error.

Reimplemented from TSystem.

Definition at line 1273 of file TWinNTSystem.cxx.

◆ GetDirEntry()

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

Returns the next directory entry.

Reimplemented from TSystem.

Definition at line 1960 of file TWinNTSystem.cxx.

◆ GetDirName()

TString TWinNTSystem::GetDirName ( const char *  pathname)
overridevirtual

Return the directory name in pathname.

DirName of c:/user/root is /user. DirName of c:/user/root/ is /user/root.

Reimplemented from TSystem.

Definition at line 2434 of file TWinNTSystem.cxx.

◆ GetDynamicPath()

const char * TWinNTSystem::GetDynamicPath ( )
overridevirtual

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

Reimplemented from TSystem.

Definition at line 4090 of file TWinNTSystem.cxx.

◆ GetEffectiveGid()

Int_t TWinNTSystem::GetEffectiveGid ( )
overridevirtual

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 3684 of file TWinNTSystem.cxx.

◆ GetEffectiveUid()

Int_t TWinNTSystem::GetEffectiveUid ( )
overridevirtual

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 3616 of file TWinNTSystem.cxx.

◆ Getenv()

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

Get environment variable.

Reimplemented from TSystem.

Definition at line 3855 of file TWinNTSystem.cxx.

◆ GetError()

const char * TWinNTSystem::GetError ( )
overridevirtual

Return system error string.

Reimplemented from TSystem.

Definition at line 1255 of file TWinNTSystem.cxx.

◆ GetFPEMask()

Int_t TWinNTSystem::GetFPEMask ( )
overridevirtual

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

Reimplemented from TSystem.

Definition at line 1573 of file TWinNTSystem.cxx.

◆ GetFsInfo()

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

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 2700 of file TWinNTSystem.cxx.

◆ GetGid()

Int_t TWinNTSystem::GetGid ( const char *  group = nullptr)
overridevirtual

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

Reimplemented from TSystem.

Definition at line 3643 of file TWinNTSystem.cxx.

◆ GetGroupInfo() [1/2]

UserGroup_t * TWinNTSystem::GetGroupInfo ( const char *  group = nullptr)
overridevirtual

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 3837 of file TWinNTSystem.cxx.

◆ GetGroupInfo() [2/2]

UserGroup_t * TWinNTSystem::GetGroupInfo ( Int_t  gid)
overridevirtual

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 3786 of file TWinNTSystem.cxx.

◆ GetGUIThreadHandle()

void * TWinNTSystem::GetGUIThreadHandle ( ) const
inline

Definition at line 114 of file TWinNTSystem.h.

◆ GetGUIThreadId()

ULong_t TWinNTSystem::GetGUIThreadId ( ) const
inline

Definition at line 115 of file TWinNTSystem.h.

◆ GetHomeDirectory()

std::string TWinNTSystem::GetHomeDirectory ( const char *  userName = nullptr) const
overridevirtual

Return the user's home directory.

Reimplemented from TSystem.

Definition at line 2214 of file TWinNTSystem.cxx.

◆ GetHostByName()

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

Get Internet Protocol (IP) address of host.

Reimplemented from TSystem.

Definition at line 4688 of file TWinNTSystem.cxx.

◆ GetLibraries()

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

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 4307 of file TWinNTSystem.cxx.

◆ GetLinkedLibraries()

const char * TWinNTSystem::GetLinkedLibraries ( )
overrideprivatevirtual

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 4153 of file TWinNTSystem.cxx.

◆ GetMemInfo()

Int_t TWinNTSystem::GetMemInfo ( MemInfo_t info) const
overridevirtual

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 6144 of file TWinNTSystem.cxx.

◆ GetNbGroups()

Bool_t TWinNTSystem::GetNbGroups ( )
private

Definition at line 3256 of file TWinNTSystem.cxx.

◆ GetPathInfo()

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

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 2643 of file TWinNTSystem.cxx.

◆ GetPeerName()

TInetAddress TWinNTSystem::GetPeerName ( int  sock)
overridevirtual

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

Reimplemented from TSystem.

Definition at line 4743 of file TWinNTSystem.cxx.

◆ GetPid()

int TWinNTSystem::GetPid ( )
overridevirtual

Get process id.

Reimplemented from TSystem.

Definition at line 3897 of file TWinNTSystem.cxx.

◆ GetProcess()

HANDLE TWinNTSystem::GetProcess ( )

Get current process handle.

Definition at line 3905 of file TWinNTSystem.cxx.

◆ GetProcInfo()

Int_t TWinNTSystem::GetProcInfo ( ProcInfo_t info) const
overridevirtual

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 6155 of file TWinNTSystem.cxx.

◆ GetRealTime()

Double_t TWinNTSystem::GetRealTime ( )

Definition at line 4487 of file TWinNTSystem.cxx.

◆ GetServiceByName()

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

Get port # of internet service.

Reimplemented from TSystem.

Definition at line 4659 of file TWinNTSystem.cxx.

◆ GetServiceByPort()

char * TWinNTSystem::GetServiceByPort ( int  port)
overridevirtual

Get name of internet service.

Reimplemented from TSystem.

Definition at line 4673 of file TWinNTSystem.cxx.

◆ GetSockName()

TInetAddress TWinNTSystem::GetSockName ( int  sock)
overridevirtual

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

Reimplemented from TSystem.

Definition at line 4776 of file TWinNTSystem.cxx.

◆ GetSockOpt()

int TWinNTSystem::GetSockOpt ( int  sock,
int  opt,
int val 
)
overridevirtual

Get socket option.

Reimplemented from TSystem.

Definition at line 5113 of file TWinNTSystem.cxx.

◆ GetSysInfo()

Int_t TWinNTSystem::GetSysInfo ( SysInfo_t info) const
overridevirtual

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 6121 of file TWinNTSystem.cxx.

◆ GetUid()

Int_t TWinNTSystem::GetUid ( const char *  user = nullptr)
overridevirtual

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

Reimplemented from TSystem.

Definition at line 3575 of file TWinNTSystem.cxx.

◆ GetUserInfo() [1/2]

UserGroup_t * TWinNTSystem::GetUserInfo ( const char *  user = nullptr)
overridevirtual

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 3774 of file TWinNTSystem.cxx.

◆ GetUserInfo() [2/2]

UserGroup_t * TWinNTSystem::GetUserInfo ( Int_t  uid)
overridevirtual

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 3712 of file TWinNTSystem.cxx.

◆ GetVolumes()

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

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 2322 of file TWinNTSystem.cxx.

◆ GetWorkingDirectory() [1/2]

std::string TWinNTSystem::GetWorkingDirectory ( ) const
overridevirtual

Return the working directory for the default drive.

Reimplemented from TSystem.

Definition at line 2149 of file TWinNTSystem.cxx.

◆ GetWorkingDirectory() [2/2]

char * TWinNTSystem::GetWorkingDirectory ( char  driveletter) const
private

Return working directory for the selected drive (helper function).

The caller must free the return value.

Definition at line 2183 of file TWinNTSystem.cxx.

◆ HandleConsoleEvent()

Bool_t TWinNTSystem::HandleConsoleEvent ( )

Definition at line 965 of file TWinNTSystem.cxx.

◆ HomeDirectory()

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

Return the user's home directory.

Reimplemented from TSystem.

Definition at line 2204 of file TWinNTSystem.cxx.

◆ HostName()

const char * TWinNTSystem::HostName ( )
overridevirtual

Return the system's host name.

Reimplemented from TSystem.

Definition at line 1282 of file TWinNTSystem.cxx.

◆ IgnoreSignal()

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

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

Reimplemented from TSystem.

Definition at line 1442 of file TWinNTSystem.cxx.

◆ Init()

Bool_t TWinNTSystem::Init ( )
overridevirtual

Initialize WinNT system interface.

Reimplemented from TSystem.

Definition at line 1076 of file TWinNTSystem.cxx.

◆ InitUsersGroups()

Bool_t TWinNTSystem::InitUsersGroups ( )
private

Collect local users and groups accounts information.

Definition at line 3162 of file TWinNTSystem.cxx.

◆ IsA()

TClass * TWinNTSystem::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TSystem.

Definition at line 254 of file TWinNTSystem.h.

◆ IsAbsoluteFileName()

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

Return true if dir is an absolute pathname.

Reimplemented from TSystem.

Definition at line 2500 of file TWinNTSystem.cxx.

◆ IsPathLocal()

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

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 2584 of file TWinNTSystem.cxx.

◆ Link()

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

Create a link from file1 to file2.

Reimplemented from TSystem.

Definition at line 2768 of file TWinNTSystem.cxx.

◆ Load()

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

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 4141 of file TWinNTSystem.cxx.

◆ LookupSID()

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 3310 of file TWinNTSystem.cxx.

◆ MakeDirectory()

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

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 1913 of file TWinNTSystem.cxx.

◆ mkdir()

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

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 1878 of file TWinNTSystem.cxx.

◆ NotifyApplicationCreated()

void TWinNTSystem::NotifyApplicationCreated ( )
overridevirtual

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

Reimplemented from TSystem.

Definition at line 1322 of file TWinNTSystem.cxx.

◆ Now()

TTime TWinNTSystem::Now ( )
overridevirtual

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

Reimplemented from TSystem.

Definition at line 4553 of file TWinNTSystem.cxx.

◆ OpenConnection()

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

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 5366 of file TWinNTSystem.cxx.

◆ OpenDirectory()

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

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

Reimplemented from TSystem.

Definition at line 2061 of file TWinNTSystem.cxx.

◆ OpenPipe()

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

Open a pipe.

Reimplemented from TSystem.

Definition at line 3881 of file TWinNTSystem.cxx.

◆ PrependPathName()

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

Concatenate a directory and a file name.

Reimplemented from TSystem.

Definition at line 2596 of file TWinNTSystem.cxx.

◆ ProcessEvents()

Bool_t TWinNTSystem::ProcessEvents ( )
overridevirtual

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

Reimplemented from TSystem.

Definition at line 1612 of file TWinNTSystem.cxx.

◆ RecvBuf()

int TWinNTSystem::RecvBuf ( int  sock,
void *  buf,
int  length 
)
overridevirtual

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 4920 of file TWinNTSystem.cxx.

◆ RecvRaw()

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

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 4972 of file TWinNTSystem.cxx.

◆ RedirectOutput()

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

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 3969 of file TWinNTSystem.cxx.

◆ RemoveFileHandler()

TFileHandler * TWinNTSystem::RemoveFileHandler ( TFileHandler h)
overridevirtual

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 1355 of file TWinNTSystem.cxx.

◆ RemoveSignalHandler()

TSignalHandler * TWinNTSystem::RemoveSignalHandler ( TSignalHandler h)
overridevirtual

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 1399 of file TWinNTSystem.cxx.

◆ RemoveTimer()

TTimer * TWinNTSystem::RemoveTimer ( TTimer ti)
overridevirtual

Remove timer from list of system timers.

Reimplemented from TSystem.

Definition at line 4431 of file TWinNTSystem.cxx.

◆ Rename()

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

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

Reimplemented from TSystem.

Definition at line 2630 of file TWinNTSystem.cxx.

◆ ResetSignal()

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

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 1425 of file TWinNTSystem.cxx.

◆ ResetSignals()

void TWinNTSystem::ResetSignals ( )
overridevirtual

Reset signals handlers to previous behaviour.

Reimplemented from TSystem.

Definition at line 1433 of file TWinNTSystem.cxx.

◆ Select() [1/2]

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

Select on the file descriptor related to file handler h.

The timeout to is in millisec.

Reimplemented from TSystem.

Definition at line 4628 of file TWinNTSystem.cxx.

◆ Select() [2/2]

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

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

Reimplemented from TSystem.

Definition at line 4591 of file TWinNTSystem.cxx.

◆ SendBuf()

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

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 4945 of file TWinNTSystem.cxx.

◆ SendRaw()

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

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 5010 of file TWinNTSystem.cxx.

◆ SetDynamicPath()

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

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 4100 of file TWinNTSystem.cxx.

◆ Setenv()

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

Set environment variable.

Reimplemented from TSystem.

Definition at line 3847 of file TWinNTSystem.cxx.

◆ SetFPEMask()

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

Set which conditions trigger a floating point exception.

Return the previous set of conditions.

Reimplemented from TSystem.

Definition at line 1591 of file TWinNTSystem.cxx.

◆ SetGUIThreadMsgHandler()

void TWinNTSystem::SetGUIThreadMsgHandler ( ThreadMsgFunc_t  func)

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

Definition at line 1314 of file TWinNTSystem.cxx.

◆ SetNonBlock()

int TWinNTSystem::SetNonBlock ( int  fd)

Make descriptor fd non-blocking.

Definition at line 2921 of file TWinNTSystem.cxx.

◆ SetProgname()

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

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 1192 of file TWinNTSystem.cxx.

◆ SetSockOpt()

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

Set socket option.

Reimplemented from TSystem.

Definition at line 5043 of file TWinNTSystem.cxx.

◆ Sleep()

void TWinNTSystem::Sleep ( UInt_t  milliSec)
overridevirtual

Sleep milliSec milli seconds.

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

Reimplemented from TSystem.

Definition at line 4583 of file TWinNTSystem.cxx.

◆ StackTrace()

void TWinNTSystem::StackTrace ( )
overridevirtual

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 1455 of file TWinNTSystem.cxx.

◆ Streamer()

void TWinNTSystem::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TSystem.

◆ StreamerNVirtual()

void TWinNTSystem::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 254 of file TWinNTSystem.h.

◆ Symlink()

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

Create a symlink from file1 to file2.

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

Reimplemented from TSystem.

Definition at line 2826 of file TWinNTSystem.cxx.

◆ TempDirectory()

const char * TWinNTSystem::TempDirectory ( ) const
overridevirtual

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

Reimplemented from TSystem.

Definition at line 2257 of file TWinNTSystem.cxx.

◆ TempFileName()

FILE * TWinNTSystem::TempFileName ( TString base,
const char *  dir = nullptr,
const char *  suffix = nullptr 
)
overridevirtual

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. Optionally one can provide suffix append to the final name - like extension ".txt" or ".html". 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 2281 of file TWinNTSystem.cxx.

◆ ThreadStub()

static void TWinNTSystem::ThreadStub ( void *  Parameter)
inlinestaticprivate

Definition at line 88 of file TWinNTSystem.h.

◆ TimerThread()

void TWinNTSystem::TimerThread ( )
private

Special Thread to check asynchronous timers.

Definition at line 4442 of file TWinNTSystem.cxx.

◆ Umask()

int TWinNTSystem::Umask ( Int_t  mask)
overridevirtual

Set the process file creation mode mask.

Reimplemented from TSystem.

Definition at line 3081 of file TWinNTSystem.cxx.

◆ UnixPathName()

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

Convert a pathname to a unix pathname.

E.g. from \user\root 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 2536 of file TWinNTSystem.cxx.

◆ Unlink()

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

Unlink, i.e.

remove, a file or directory.

If the file is currently open by the current or another process Windows does not allow the file to be deleted and the operation is a no-op.

Reimplemented from TSystem.

Definition at line 2899 of file TWinNTSystem.cxx.

◆ Utime()

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

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 3090 of file TWinNTSystem.cxx.

◆ WinNTUdpConnect()

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 5317 of file TWinNTSystem.cxx.

◆ WinNTUnixConnect() [1/2]

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

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

Definition at line 5287 of file TWinNTSystem.cxx.

◆ WinNTUnixConnect() [2/2]

int TWinNTSystem::WinNTUnixConnect ( int  port)
staticprotected

Connect to a Unix domain socket.

Definition at line 5256 of file TWinNTSystem.cxx.

◆ WorkingDirectory() [1/2]

const char * TWinNTSystem::WorkingDirectory ( )
overridevirtual

Return the working directory for the default drive.

Reimplemented from TSystem.

Definition at line 2141 of file TWinNTSystem.cxx.

◆ WorkingDirectory() [2/2]

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 2164 of file TWinNTSystem.cxx.

Member Data Documentation

◆ fActUser

int TWinNTSystem::fActUser {-1}
private

Definition at line 68 of file TWinNTSystem.h.

◆ fDirNameBuffer

std::string TWinNTSystem::fDirNameBuffer
private

Definition at line 74 of file TWinNTSystem.h.

◆ fGroups

struct group* TWinNTSystem::fGroups {nullptr}
private

Definition at line 64 of file TWinNTSystem.h.

◆ fGroupsInitDone

Bool_t TWinNTSystem::fGroupsInitDone {kFALSE}
private

Definition at line 69 of file TWinNTSystem.h.

◆ fGUIThreadHandle

void* TWinNTSystem::fGUIThreadHandle {nullptr}
private

Definition at line 72 of file TWinNTSystem.h.

◆ fGUIThreadId

ULong_t TWinNTSystem::fGUIThreadId {0}
private

Definition at line 73 of file TWinNTSystem.h.

◆ fhProcess

HANDLE TWinNTSystem::fhProcess
private

Definition at line 71 of file TWinNTSystem.h.

◆ fNbGroups

int TWinNTSystem::fNbGroups {0}
private

Definition at line 67 of file TWinNTSystem.h.

◆ fNbUsers

int TWinNTSystem::fNbUsers {0}
private

Definition at line 66 of file TWinNTSystem.h.

◆ fPasswords

struct passwd* TWinNTSystem::fPasswords {nullptr}
private

Definition at line 65 of file TWinNTSystem.h.

  • core/winnt/inc/TWinNTSystem.h
  • core/winnt/src/TWinNTSystem.cxx