#include <TWinNTSystem.h>
Inheritance diagram for TWinNTSystem:
Public Types | |
typedef Bool_t(*) | ThreadMsgFunc_t (MSG *) |
Public Member Functions | |
TWinNTSystem () | |
virtual | ~TWinNTSystem () |
HANDLE | GetProcess () |
Bool_t | HandleConsoleEvent () |
Bool_t | Init () |
const char * | BaseName (const char *name) |
void | SetProgname (const char *name) |
const char * | GetError () |
const char * | HostName () |
void * | GetGUIThreadHandle () const |
ULong_t | GetGUIThreadId () const |
void | SetGUIThreadMsgHandler (ThreadMsgFunc_t func) |
void | NotifyApplicationCreated () |
Bool_t | ProcessEvents () |
void | DispatchOneEvent (Bool_t pendingOnly=kFALSE) |
void | ExitLoop () |
Int_t | Select (TList *active, Long_t timeout) |
Int_t | Select (TFileHandler *fh, Long_t timeout) |
void | AddSignalHandler (TSignalHandler *sh) |
TSignalHandler * | RemoveSignalHandler (TSignalHandler *sh) |
void | ResetSignal (ESignals sig, Bool_t reset=kTRUE) |
void | IgnoreSignal (ESignals sig, Bool_t ignore=kTRUE) |
void | AddFileHandler (TFileHandler *fh) |
TFileHandler * | RemoveFileHandler (TFileHandler *fh) |
void | StackTrace () |
Int_t | GetFPEMask () |
Int_t | SetFPEMask (Int_t mask=kDefaultMask) |
int | Exec (const char *shellcmd) |
FILE * | OpenPipe (const char *shellcmd, const char *mode) |
int | ClosePipe (FILE *pipe) |
void | Exit (int code, Bool_t mode=kTRUE) |
void | Abort (int code=0) |
int | GetPid () |
const char * | Getenv (const char *name) |
void | Setenv (const char *name, const char *value) |
int | mkdir (const char *name, Bool_t recursive=kFALSE) |
int | MakeDirectory (const char *name) |
Bool_t | ChangeDirectory (const char *path) |
const char * | GetDirEntry (void *dirp) |
const char * | DirName (const char *pathname) |
void | FreeDirectory (void *dirp) |
void * | OpenDirectory (const char *name) |
const char * | WorkingDirectory (char driveletter) |
const char * | WorkingDirectory () |
const char * | HomeDirectory (const char *userName=0) |
const char * | TempDirectory () const |
FILE * | TempFileName (TString &base, const char *dir=0) |
Int_t | GetUid (const char *user=0) |
Int_t | GetGid (const char *group=0) |
Int_t | GetEffectiveUid () |
Int_t | GetEffectiveGid () |
UserGroup_t * | GetUserInfo (Int_t uid) |
UserGroup_t * | GetUserInfo (const char *user=0) |
UserGroup_t * | GetGroupInfo (Int_t gid) |
UserGroup_t * | GetGroupInfo (const char *group=0) |
const char | DriveName (const char *pathname="/") |
const char * | PrependPathName (const char *dir, TString &name) |
Bool_t | ExpandPathName (TString &patbuf) |
char * | ExpandPathName (const char *path) |
Bool_t | AccessPathName (const char *path, EAccessMode mode=kFileExists) |
Bool_t | IsPathLocal (const char *path) |
Bool_t | IsAbsoluteFileName (const char *dir) |
int | CopyFile (const char *from, const char *to, Bool_t overwrite=kFALSE) |
int | Rename (const char *from, const char *to) |
int | Link (const char *from, const char *to) |
int | Symlink (const char *from, const char *to) |
int | Unlink (const char *name) |
int | SetNonBlock (int fd) |
int | GetPathInfo (const char *path, FileStat_t &buf) |
int | GetFsInfo (const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree) |
int | Chmod (const char *file, UInt_t mode) |
int | Umask (Int_t mask) |
int | Utime (const char *file, Long_t modtime, Long_t actime) |
const char * | UnixPathName (const char *unixpathname) |
const char * | FindFile (const char *search, TString &file, EAccessMode mode=kFileExists) |
TList * | GetVolumes (Option_t *opt="") const |
Int_t | RedirectOutput (const char *name, const char *mode="a", RedirectHandle_t *h=0) |
void | AddDynamicPath (const char *dir) |
const char * | GetDynamicPath () |
void | SetDynamicPath (const char *path) |
char * | DynamicPathName (const char *lib, Bool_t quiet=kFALSE) |
int | Load (const char *module, const char *entry="", Bool_t system=kFALSE) |
const char * | GetLibraries (const char *regexp="", const char *option="", Bool_t isRegexp=kTRUE) |
TTime | Now () |
void | AddTimer (TTimer *ti) |
TTimer * | RemoveTimer (TTimer *ti) |
void | Sleep (UInt_t milliSec) |
Double_t | GetRealTime () |
Double_t | GetCPUTime () |
int | ConnectService (const char *servername, int port, int tcpwindowsize) |
TInetAddress | GetHostByName (const char *server) |
TInetAddress | GetPeerName (int sock) |
TInetAddress | GetSockName (int sock) |
int | GetServiceByName (const char *service) |
char * | GetServiceByPort (int port) |
int | OpenConnection (const char *server, int port, int tcpwindowsize=-1) |
int | AnnounceTcpService (int port, Bool_t reuse, int backlog, int tcpwindowsize=-1) |
int | AnnounceUnixService (int port, int backlog) |
int | AnnounceUnixService (const char *sockpath, int backlog) |
int | AcceptConnection (int sock) |
void | CloseConnection (int sock, Bool_t force=kFALSE) |
int | RecvRaw (int sock, void *buffer, int length, int flag) |
int | SendRaw (int sock, const void *buffer, int length, int flag) |
int | RecvBuf (int sock, void *buffer, int length) |
int | SendBuf (int sock, const void *buffer, int length) |
int | SetSockOpt (int sock, int opt, int val) |
int | GetSockOpt (int sock, int opt, int *val) |
Int_t | GetSysInfo (SysInfo_t *info) const |
Int_t | GetCpuInfo (CpuInfo_t *info, Int_t sampleTime=1000) const |
Int_t | GetMemInfo (MemInfo_t *info) const |
Int_t | GetProcInfo (ProcInfo_t *info) const |
Static Public Member Functions | |
static int | WinNTUnixConnect (int port) |
static int | WinNTUnixConnect (const char *path) |
Private Member Functions | |
Bool_t | DispatchTimers (Bool_t mode) |
Bool_t | CheckDescriptors () |
Bool_t | CheckSignals (Bool_t sync) |
Bool_t | CountMembers (const char *lpszGroupName) |
const char * | GetLinkedLibraries () |
Bool_t | GetNbGroups () |
Long_t | LookupSID (const char *lpszAccountName, int what, int &groupIdx, int &memberIdx) |
Bool_t | CollectMembers (const char *lpszGroupName, int &groupIdx, int &memberIdx) |
Bool_t | CollectGroups () |
Bool_t | InitUsersGroups () |
void | DoBeep (Int_t freq=-1, Int_t duration=-1) const |
void | TimerThread () |
Static Private Member Functions | |
static void | ThreadStub (void *Parameter) |
Private Attributes | |
group * | fGroups |
passwd * | fPasswords |
int | fNbUsers |
int | fNbGroups |
int | fActUser |
Bool_t | fGroupsInitDone |
Bool_t | fFirstFile |
HANDLE | fhProcess |
void * | fGUIThreadHandle |
ULong_t | fGUIThreadId |
char * | fDirNameBuffer |
WIN32_FIND_DATA | fFindFileData |
Definition at line 69 of file TWinNTSystem.h.
typedef Bool_t(*) TWinNTSystem::ThreadMsgFunc_t(MSG *) |
Definition at line 72 of file TWinNTSystem.h.
TWinNTSystem::TWinNTSystem | ( | ) |
Definition at line 956 of file TWinNTSystem.cxx.
References buf, TObject::Error(), TSystem::fBeepDuration, TSystem::fBeepFreq, fDirNameBuffer, fhProcess, gEnv, TEnv::GetValue(), Setenv(), and UpdateRegistry().
TWinNTSystem::~TWinNTSystem | ( | ) | [virtual] |
Definition at line 1003 of file TWinNTSystem.cxx.
References fDirNameBuffer, gGlobalEvent, gTimerThreadHandle, and NULL.
Definition at line 4092 of file TWinNTSystem.cxx.
References TSystem::fInsideNotify, TSystem::fTimers, kFALSE, kTRUE, TOrdCollectionIter::Next(), Now(), and t.
Referenced by DispatchOneEvent(), and TimerThread().
Bool_t TWinNTSystem::CheckDescriptors | ( | ) | [private] |
Definition at line 1725 of file TWinNTSystem.cxx.
References TFdSet::Clr(), TSystem::fFileHandler, TSystem::fNfd, TSystem::fReadready, TSystem::fWriteready, TFileHandler::GetFd(), TFdSet::IsSet(), kFALSE, kTRUE, TOrdCollectionIter::Next(), read, TFileHandler::ReadNotify(), and TFileHandler::WriteNotify().
Referenced by DispatchOneEvent().
Definition at line 1696 of file TWinNTSystem.cxx.
References TFdSet::Clr(), TSystem::fSigcnt, TSystem::fSignalHandler, TSystem::fSignals, TSignalHandler::GetSignal(), TFdSet::IsSet(), TSignalHandler::IsSync(), kFALSE, kTRUE, and TSignalHandler::Notify().
Referenced by DispatchOneEvent().
Bool_t TWinNTSystem::CountMembers | ( | const char * | lpszGroupName | ) | [private] |
Definition at line 2975 of file TWinNTSystem.cxx.
References DWORD, FALSE, fNbUsers, RooFit::Index(), NULL, p2NetApiBufferFree, p2NetLocalGroupGetMembers, and TRUE.
Referenced by GetNbGroups().
const char * TWinNTSystem::GetLinkedLibraries | ( | ) | [private, virtual] |
Reimplemented from TSystem.
Definition at line 3854 of file TWinNTSystem.cxx.
References TApplication::Argv(), DWORD, DynamicPathName(), TString::EndsWith(), gApplication, Getenv(), getenv(), gSystem, HANDLE, INVALID_HANDLE_VALUE, isin, TString::IsNull(), kExecutePermission, kFALSE, kTRUE, and TSystem::Which().
Bool_t TWinNTSystem::GetNbGroups | ( | ) | [private] |
Definition at line 3033 of file TWinNTSystem.cxx.
References CountMembers(), DWORD, FALSE, fNbGroups, i, RooFit::Index(), NULL, p2NetApiBufferFree, p2NetLocalGroupEnum, and TRUE.
Referenced by InitUsersGroups().
Long_t TWinNTSystem::LookupSID | ( | const char * | lpszAccountName, | |
int | what, | |||
int & | groupIdx, | |||
int & | memberIdx | |||
) | [private] |
Definition at line 3081 of file TWinNTSystem.cxx.
References DWORD, FALSE, fGroups, fPasswords, group::gr_gid, j, MAX_NAME_STRING, MAX_SID_SIZE, NULL, passwd::pw_gid, passwd::pw_group, passwd::pw_uid, SID_GROUP, and SID_MEMBER.
Referenced by CollectGroups(), and CollectMembers().
Bool_t TWinNTSystem::CollectMembers | ( | const char * | lpszGroupName, | |
int & | groupIdx, | |||
int & | memberIdx | |||
) | [private] |
Definition at line 3156 of file TWinNTSystem.cxx.
References DWORD, fActUser, FALSE, fGroups, fPasswords, getenv(), group::gr_mem, i, if(), RooFit::Index(), length, LookupSID(), NULL, p2NetApiBufferFree, p2NetLocalGroupGetMembers, p2NetUserGetInfo, putenv, passwd::pw_dir, passwd::pw_gecos, passwd::pw_name, passwd::pw_passwd, passwd::pw_shell, SID_MEMBER, and TRUE.
Referenced by CollectGroups().
Bool_t TWinNTSystem::CollectGroups | ( | ) | [private] |
Definition at line 3291 of file TWinNTSystem.cxx.
References CollectMembers(), DWORD, FALSE, fGroups, group::gr_name, group::gr_passwd, i, RooFit::Index(), LookupSID(), NULL, p2NetApiBufferFree, p2NetLocalGroupEnum, SID_GROUP, and TRUE.
Referenced by InitUsersGroups().
Bool_t TWinNTSystem::InitUsersGroups | ( | ) | [private] |
Definition at line 2940 of file TWinNTSystem.cxx.
References calloc(), CollectGroups(), fActUser, fGroups, fGroupsInitDone, fNbGroups, fNbUsers, fPasswords, gEnv, GetNbGroups(), TEnv::GetValue(), group::gr_mem, i, kFALSE, kTRUE, p2NetApiBufferFree, p2NetLocalGroupEnum, p2NetLocalGroupGetMembers, and p2NetUserGetInfo.
Referenced by GetEffectiveGid(), GetEffectiveUid(), GetGid(), GetGroupInfo(), GetUid(), and GetUserInfo().
Reimplemented from TSystem.
Definition at line 1254 of file TWinNTSystem.cxx.
References TSystem::Beep().
static void TWinNTSystem::ThreadStub | ( | void * | Parameter | ) | [inline, static, private] |
void TWinNTSystem::TimerThread | ( | ) | [private] |
Definition at line 4080 of file TWinNTSystem.cxx.
References DispatchTimers(), TSystem::fInsideNotify, kFALSE, kItimerResolution, and Sleep().
HANDLE TWinNTSystem::GetProcess | ( | ) |
Bool_t TWinNTSystem::HandleConsoleEvent | ( | ) |
Definition at line 936 of file TWinNTSystem.cxx.
References TSignalHandler::GetSignal(), kFALSE, kSigInterrupt, kTRUE, TSignalHandler::Notify(), s, and Throw().
Bool_t TWinNTSystem::Init | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1036 of file TWinNTSystem.cxx.
References dir(), DirName(), ExceptionFilter(), FALSE, fFirstFile, fGroupsInitDone, fGUIThreadHandle, fGUIThreadId, TSystem::fNfd, TSystem::fReadmask, TSystem::fReadready, TSystem::fSigcnt, TSystem::fSignals, TSystem::fWritemask, TSystem::fWriteready, Getenv(), gGlobalEvent, gRootDir, gTimerThreadHandle, GUIThreadMessageProcessingLoop(), TSystem::Init(), kFALSE, kTRUE, NULL, SetConsoleWindowName(), StrDup(), ThreadStub(), and TRUE.
const char * TWinNTSystem::BaseName | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1115 of file TWinNTSystem.cxx.
References TObject::Error(), and max.
Referenced by SetProgname().
void TWinNTSystem::SetProgname | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1159 of file TWinNTSystem.cxx.
References AccessPathName(), BaseName(), d, DirName(), RootCsg::dot(), DriveName(), FALSE, Form(), Getenv(), gProgName, gProgPath, IsAbsoluteFileName(), NeedSplash(), StrDup(), strlcat(), strlcpy(), TSystem::Which(), and WorkingDirectory().
const char * TWinNTSystem::GetError | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1223 of file TWinNTSystem.cxx.
References TSystem::fLastErrorString, Form(), TSystem::GetErrno(), sys_errlist, and sys_nerr.
Referenced by AccessPathName(), and Rename().
const char * TWinNTSystem::HostName | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1237 of file TWinNTSystem.cxx.
References DWORD, TSystem::fHostname, and getenv().
void* TWinNTSystem::GetGUIThreadHandle | ( | ) | const [inline] |
ULong_t TWinNTSystem::GetGUIThreadId | ( | ) | const [inline] |
void TWinNTSystem::SetGUIThreadMsgHandler | ( | ThreadMsgFunc_t | func | ) |
void TWinNTSystem::NotifyApplicationCreated | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1277 of file TWinNTSystem.cxx.
References fGUIThreadId, RooFitShortHand::L(), and NULL.
Bool_t TWinNTSystem::ProcessEvents | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1538 of file TWinNTSystem.cxx.
References TSystem::ProcessEvents().
Reimplemented from TSystem.
Definition at line 1546 of file TWinNTSystem.cxx.
References CheckDescriptors(), CheckSignals(), TFdSet::Clr(), DispatchTimers(), TSystem::fFileHandler, TSystem::fNfd, TSystem::fReadmask, TSystem::fReadready, TSystem::fSigcnt, TSystem::fSignalHandler, TSystem::fSignals, TSystem::fTimers, TSystem::fWritemask, TSystem::fWriteready, gApplication, TROOT::GetApplication(), TFdSet::GetBits(), TFdSet::GetCount(), TFdSet::GetFd(), TCollection::GetSize(), gGlobalEvent, gROOT, gSplash, gVirtualX, gXDisplay, TApplication::HandleTermInput(), i, TROOT::IsBatch(), TROOT::IsLineProcessing(), TFdSet::IsSet(), kFALSE, kItimerResolution, kTRUE, TSystem::NextTimeOut(), TFileHandler::Notify(), TObject::SysError(), t, WinNTSelect(), and TFdSet::Zero().
void TWinNTSystem::ExitLoop | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1687 of file TWinNTSystem.cxx.
References TSystem::ExitLoop().
Reimplemented from TSystem.
Definition at line 4229 of file TWinNTSystem.cxx.
References h, TFdSet::IsSet(), TIter::Reset(), TFdSet::Set(), and WinNTSelect().
Int_t TWinNTSystem::Select | ( | TFileHandler * | fh, | |
Long_t | timeout | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4264 of file TWinNTSystem.cxx.
References h, TFdSet::IsSet(), TFdSet::Set(), and WinNTSelect().
void TWinNTSystem::AddSignalHandler | ( | TSignalHandler * | sh | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1325 of file TWinNTSystem.cxx.
References TSystem::AddSignalHandler(), ConsoleSigHandler(), h, kSigInterrupt, SigHandler(), TRUE, and WinNTSignal().
TSignalHandler * TWinNTSystem::RemoveSignalHandler | ( | TSignalHandler * | sh | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1341 of file TWinNTSystem.cxx.
References ConsoleSigHandler(), FALSE, h, kSigInterrupt, and TSystem::RemoveSignalHandler().
void TWinNTSystem::AddFileHandler | ( | TFileHandler * | fh | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1289 of file TWinNTSystem.cxx.
References TSystem::AddFileHandler(), TSystem::fReadmask, TSystem::fWritemask, h, and TFdSet::Set().
TFileHandler * TWinNTSystem::RemoveFileHandler | ( | TFileHandler * | fh | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1309 of file TWinNTSystem.cxx.
References TFdSet::Clr(), TSystem::fReadmask, TSystem::fWritemask, h, and TSystem::RemoveFileHandler().
void TWinNTSystem::StackTrace | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1376 of file TWinNTSystem.cxx.
References _StackWalk64, _SymCleanup, _SymFunctionTableAccess64, _SymGetModuleBase64, DWORD, FALSE, fflush(), fgXcptContext, gEnv, GetFunctionName(), GetModuleName(), TEnv::GetValue(), HANDLE, InitImagehlpFunctions(), INVALID_HANDLE_VALUE, kFALSE, kTRUE, LPSTACKFRAME64, LPVOID, NULL, PFUNCTION_TABLE_ACCESS_ROUTINE, PGET_MODULE_BASE_ROUTINE, PREAD_PROCESS_MEMORY_ROUTINE, and void.
Int_t TWinNTSystem::GetFPEMask | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1499 of file TWinNTSystem.cxx.
References kDivByZero, kInexact, kInvalid, kOverflow, kUnderflow, and mask.
Referenced by SetFPEMask().
Reimplemented from TSystem.
Definition at line 1516 of file TWinNTSystem.cxx.
References GetFPEMask(), kDivByZero, kInexact, kInvalid, kOverflow, and kUnderflow.
int TWinNTSystem::Exec | ( | const char * | shellcmd | ) | [virtual] |
FILE * TWinNTSystem::OpenPipe | ( | const char * | shellcmd, | |
const char * | mode | |||
) | [virtual] |
int TWinNTSystem::ClosePipe | ( | FILE * | pipe | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3685 of file TWinNTSystem.cxx.
References TCollection::Delete(), TROOT::GetListOfBrowsers(), TROOT::GetListOfFiles(), TROOT::GetListOfMappedFiles(), TROOT::GetListOfSockets(), gROOT, and gVirtualX.
void TWinNTSystem::Abort | ( | int | code = 0 |
) | [virtual] |
int TWinNTSystem::GetPid | ( | ) | [virtual] |
const char * TWinNTSystem::Getenv | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3627 of file TWinNTSystem.cxx.
References env, getenv(), gRootDir, and HomeDirectory().
Referenced by GetLinkedLibraries(), Init(), and SetProgname().
void TWinNTSystem::Setenv | ( | const char * | name, | |
const char * | value | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3619 of file TWinNTSystem.cxx.
References Form().
Referenced by TWinNTSystem().
Reimplemented from TSystem.
Definition at line 1769 of file TWinNTSystem.cxx.
References AccessPathName(), DirName(), DriveName(), IsAbsoluteFileName(), kFileExists, kTRUE, TString::Length(), MakeDirectory(), and TString::Prepend().
int TWinNTSystem::MakeDirectory | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1805 of file TWinNTSystem.cxx.
References TSystem::FindHelper(), TSystem::MakeDirectory(), mkdir, and TSystem::StripOffProto().
Referenced by mkdir().
Bool_t TWinNTSystem::ChangeDirectory | ( | const char * | path | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1870 of file TWinNTSystem.cxx.
References chdir, and TSystem::fWdpath.
const char * TWinNTSystem::GetDirEntry | ( | void * | dirp | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1844 of file TWinNTSystem.cxx.
References fFindFileData, fFirstFile, TSystem::FindHelper(), TSystem::GetDirEntry(), HANDLE, and kFALSE.
const char * TWinNTSystem::DirName | ( | const char * | pathname | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2232 of file TWinNTSystem.cxx.
References fDirNameBuffer, len, max, and ptr.
Referenced by Init(), mkdir(), and SetProgname().
void TWinNTSystem::FreeDirectory | ( | void * | dirp | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1828 of file TWinNTSystem.cxx.
References TSystem::FindHelper(), and TSystem::FreeDirectory().
void * TWinNTSystem::OpenDirectory | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 1945 of file TWinNTSystem.cxx.
References dir(), entry, fFindFileData, fFirstFile, TSystem::FindHelper(), gSystem, HANDLE, INVALID_HANDLE_VALUE, IsShortcut(), kTRUE, TSystem::OpenDirectory(), PathIsRoot(), PathIsUNC(), ResolveShortCut(), TSystem::StripOffProto(), strlcat(), and strlcpy().
const char * TWinNTSystem::WorkingDirectory | ( | char | driveletter | ) |
Definition at line 2031 of file TWinNTSystem.cxx.
References free(), TSystem::fWdpath, kMAXPATHLEN, and TObject::Warning().
const char * TWinNTSystem::WorkingDirectory | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2023 of file TWinNTSystem.cxx.
Referenced by DriveName(), and SetProgname().
const char * TWinNTSystem::HomeDirectory | ( | const char * | userName = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2057 of file TWinNTSystem.cxx.
References getenv(), h, kMAXPATHLEN, strlcat(), and strlcpy().
Referenced by Getenv().
const char * TWinNTSystem::TempDirectory | ( | ) | const [virtual] |
Reimplemented from TSystem.
Definition at line 2090 of file TWinNTSystem.cxx.
References dir(), TSystem::Getenv(), and gSystem.
Referenced by TempFileName().
FILE * TWinNTSystem::TempFileName | ( | TString & | base, | |
const char * | dir = 0 | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2107 of file TWinNTSystem.cxx.
References TString::Data(), fopen, fp, TObject::SysError(), and TempDirectory().
Int_t TWinNTSystem::GetUid | ( | const char * | user = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3346 of file TWinNTSystem.cxx.
References DWORD, fActUser, fGroupsInitDone, fNbUsers, fPasswords, gEnv, TEnv::GetValue(), i, InitUsersGroups(), length, name, passwd::pw_name, passwd::pw_uid, and TSystem::pwd().
Referenced by GetUserInfo().
Int_t TWinNTSystem::GetGid | ( | const char * | group = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3414 of file TWinNTSystem.cxx.
References DWORD, fActUser, fGroups, fGroupsInitDone, fNbGroups, fPasswords, gEnv, TEnv::GetValue(), group::gr_gid, group::gr_name, i, InitUsersGroups(), length, name, and passwd::pw_gid.
Referenced by GetGroupInfo().
Int_t TWinNTSystem::GetEffectiveUid | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3386 of file TWinNTSystem.cxx.
References DWORD, fActUser, fGroupsInitDone, fPasswords, gEnv, TEnv::GetValue(), InitUsersGroups(), length, name, and passwd::pw_uid.
Int_t TWinNTSystem::GetEffectiveGid | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3454 of file TWinNTSystem.cxx.
References DWORD, fActUser, fGroupsInitDone, fPasswords, gEnv, TEnv::GetValue(), InitUsersGroups(), length, name, and passwd::pw_gid.
UserGroup_t * TWinNTSystem::GetUserInfo | ( | Int_t | uid | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3482 of file TWinNTSystem.cxx.
References DWORD, fActUser, UserGroup_t::fGid, UserGroup_t::fGroup, fGroupsInitDone, fNbUsers, UserGroup_t::fPasswd, fPasswords, UserGroup_t::fRealName, UserGroup_t::fShell, UserGroup_t::fUid, UserGroup_t::fUser, gEnv, TEnv::GetValue(), i, InitUsersGroups(), length, name, passwd::pw_uid, and TSystem::pwd().
Referenced by GetUserInfo().
UserGroup_t * TWinNTSystem::GetUserInfo | ( | const char * | user = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3543 of file TWinNTSystem.cxx.
References GetUid(), and GetUserInfo().
UserGroup_t * TWinNTSystem::GetGroupInfo | ( | Int_t | gid | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3553 of file TWinNTSystem.cxx.
References DWORD, fGroups, fGroupsInitDone, fNbGroups, gEnv, TEnv::GetValue(), gr, group::gr_gid, group::gr_name, i, InitUsersGroups(), length, and name.
Referenced by GetGroupInfo().
UserGroup_t * TWinNTSystem::GetGroupInfo | ( | const char * | group = 0 |
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3605 of file TWinNTSystem.cxx.
References GetGid(), and GetGroupInfo().
const char TWinNTSystem::DriveName | ( | const char * | pathname = "/" |
) |
Definition at line 2276 of file TWinNTSystem.cxx.
References WorkingDirectory().
Referenced by mkdir(), and SetProgname().
const char * TWinNTSystem::PrependPathName | ( | const char * | dir, | |
TString & | name | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2738 of file TWinNTSystem.cxx.
References TString::Data(), TSystem::ExpandFileName(), TString::Index(), k, kFALSE, kNPOS, kTRUE, p, TString::Replace(), TString::ReplaceAll(), shellMeta, and x1.
Referenced by ExpandPathName().
char * TWinNTSystem::ExpandPathName | ( | const char * | path | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2829 of file TWinNTSystem.cxx.
References TString::Data(), ExpandPathName(), IsShortcut(), ResolveShortCut(), StrDup(), and strlcpy().
Bool_t TWinNTSystem::AccessPathName | ( | const char * | path, | |
EAccessMode | mode = kFileExists | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2364 of file TWinNTSystem.cxx.
References TSystem::AccessPathName(), TSystem::FindHelper(), TSystem::fLastErrorString, GetError(), kExecutePermission, kFALSE, kReadPermission, kTRUE, and TSystem::StripOffProto().
Referenced by CopyFile(), FindFile(), mkdir(), SetProgname(), and Utime().
Bool_t TWinNTSystem::IsPathLocal | ( | const char * | path | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2385 of file TWinNTSystem.cxx.
References TSystem::FindHelper(), and TSystem::IsPathLocal().
Bool_t TWinNTSystem::IsAbsoluteFileName | ( | const char * | dir | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2312 of file TWinNTSystem.cxx.
References kFALSE.
Referenced by FindFile(), mkdir(), and SetProgname().
int TWinNTSystem::CopyFile | ( | const char * | from, | |
const char * | to, | |||
Bool_t | overwrite = kFALSE | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2416 of file TWinNTSystem.cxx.
References AccessPathName(), kFALSE, and kReadPermission.
int TWinNTSystem::Rename | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2432 of file TWinNTSystem.cxx.
References TSystem::fLastErrorString, GetError(), and rename.
int TWinNTSystem::Link | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
int TWinNTSystem::Symlink | ( | const char * | from, | |
const char * | to | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2626 of file TWinNTSystem.cxx.
References TString::Append(), TString::Data(), DWORD, TString::EndsWith(), LPVOID, NULL, TRUE, and void.
int TWinNTSystem::Unlink | ( | const char * | name | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2697 of file TWinNTSystem.cxx.
References TSystem::FindHelper(), and TSystem::Unlink().
int TWinNTSystem::SetNonBlock | ( | int | fd | ) |
int TWinNTSystem::GetPathInfo | ( | const char * | path, | |
FileStat_t & | buf | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2442 of file TWinNTSystem.cxx.
References buf, TSystem::FindHelper(), TSystem::GetPathInfo(), IsShortcut(), l, StrDup(), and TSystem::StripOffProto().
Referenced by GetLibraries().
int TWinNTSystem::GetFsInfo | ( | const char * | path, | |
Long_t * | id, | |||
Long_t * | bsize, | |||
Long_t * | blocks, | |||
Long_t * | bfree | |||
) | [virtual] |
int TWinNTSystem::Chmod | ( | const char * | file, | |
UInt_t | mode | |||
) | [virtual] |
int TWinNTSystem::Umask | ( | Int_t | mask | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 2867 of file TWinNTSystem.cxx.
References AccessPathName(), TObject::Error(), and kWritePermission.
const char * TWinNTSystem::UnixPathName | ( | const char * | unixpathname | ) | [virtual] |
const char * TWinNTSystem::FindFile | ( | const char * | search, | |
TString & | file, | |||
EAccessMode | mode = kFileExists | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 2885 of file TWinNTSystem.cxx.
References access, AccessPathName(), TString::Data(), TSystem::ExpandPathName(), gEnv, TEnv::GetValue(), gSystem, i, infile, IsAbsoluteFileName(), kExecutePermission, kMAXPATHLEN, kReadPermission, TString::Length(), name, NULL, Printf(), and stat.
Reimplemented from TSystem.
Definition at line 2131 of file TWinNTSystem.cxx.
References TString::Data(), TString::Form(), Form(), NULL, p, TNamed::TNamed(), and type.
Int_t TWinNTSystem::RedirectOutput | ( | const char * | name, | |
const char * | mode = "a" , |
|||
RedirectHandle_t * | h = 0 | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3716 of file TWinNTSystem.cxx.
References RedirectHandle_t::fFile, fflush(), RedirectHandle_t::fReadOffSet, FileStat_t::fSize, TSystem::GetPathInfo(), gSystem, h, m, RedirectHandle_t::Reset(), and TObject::SysError().
void TWinNTSystem::AddDynamicPath | ( | const char * | dir | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3783 of file TWinNTSystem.cxx.
References TString::Append(), DynamicPath(), and kFALSE.
const char * TWinNTSystem::GetDynamicPath | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3796 of file TWinNTSystem.cxx.
References DynamicPath(), and kFALSE.
Referenced by DynamicPathName().
void TWinNTSystem::SetDynamicPath | ( | const char * | path | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 3804 of file TWinNTSystem.cxx.
References DynamicPath(), and kTRUE.
Reimplemented from TSystem.
Definition at line 3817 of file TWinNTSystem.cxx.
References TObject::Error(), Form(), GetDynamicPath(), gSystem, kReadPermission, len, name, and TSystem::Which().
Referenced by GetLinkedLibraries().
int TWinNTSystem::Load | ( | const char * | module, | |
const char * | entry = "" , |
|||
Bool_t | system = kFALSE | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 3842 of file TWinNTSystem.cxx.
References TSystem::Load().
const char * TWinNTSystem::GetLibraries | ( | const char * | regexp = "" , |
|
const char * | option = "" , |
|||
Bool_t | isRegexp = kTRUE | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4000 of file TWinNTSystem.cxx.
References TString::Append(), TString::First(), TSystem::fListLibs, TSystem::GetLibraries(), GetPathInfo(), TString::Index(), TString::IsNull(), kNPOS, TString::Length(), TString::ReplaceAll(), s, and start.
TTime TWinNTSystem::Now | ( | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4191 of file TWinNTSystem.cxx.
References TObject::SysError().
Referenced by DispatchTimers().
void TWinNTSystem::AddTimer | ( | TTimer * | ti | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4061 of file TWinNTSystem.cxx.
References TSystem::AddTimer().
Reimplemented from TSystem.
Definition at line 4069 of file TWinNTSystem.cxx.
References TSystem::RemoveTimer(), and t.
void TWinNTSystem::Sleep | ( | UInt_t | milliSec | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4219 of file TWinNTSystem.cxx.
Referenced by TimerThread().
Double_t TWinNTSystem::GetRealTime | ( | ) |
Double_t TWinNTSystem::GetCPUTime | ( | ) |
Definition at line 4139 of file TWinNTSystem.cxx.
References DWORD, TObject::Error(), GetRealTime(), gTicks, HANDLE, int, and TRUE.
int TWinNTSystem::ConnectService | ( | const char * | servername, | |
int | port, | |||
int | tcpwindowsize | |||
) |
Definition at line 4835 of file TWinNTSystem.cxx.
References TSystem::AccessPathName(), TSystem::GetHostByName(), gSystem, kProtocolName, kRecvBuffer, kSendBuffer, TSystem::SetSockOpt(), TObject::SysError(), and WinNTUnixConnect().
Referenced by OpenConnection().
TInetAddress TWinNTSystem::GetHostByName | ( | const char * | server | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4324 of file TWinNTSystem.cxx.
References a, TObject::Error(), gDebug, i, and type.
TInetAddress TWinNTSystem::GetPeerName | ( | int | sock | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4379 of file TWinNTSystem.cxx.
References len, and TObject::SysError().
TInetAddress TWinNTSystem::GetSockName | ( | int | sock | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4412 of file TWinNTSystem.cxx.
References len, and TObject::SysError().
int TWinNTSystem::GetServiceByName | ( | const char * | service | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4295 of file TWinNTSystem.cxx.
References TObject::Error(), and kProtocolName.
char * TWinNTSystem::GetServiceByPort | ( | int | port | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 4310 of file TWinNTSystem.cxx.
References Form(), and kProtocolName.
int TWinNTSystem::OpenConnection | ( | const char * | server, | |
int | port, | |||
int | tcpwindowsize = -1 | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4949 of file TWinNTSystem.cxx.
References ConnectService().
int TWinNTSystem::AnnounceTcpService | ( | int | port, | |
Bool_t | reuse, | |||
int | backlog, | |||
int | tcpwindowsize = -1 | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4962 of file TWinNTSystem.cxx.
References TObject::Error(), gSystem, kProtocolName, kRecvBuffer, kReuseAddr, kSendBuffer, TSystem::SetSockOpt(), and TObject::SysError().
int TWinNTSystem::AnnounceUnixService | ( | int | port, | |
int | backlog | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4445 of file TWinNTSystem.cxx.
References TObject::SysError().
int TWinNTSystem::AnnounceUnixService | ( | const char * | sockpath, | |
int | backlog | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4479 of file TWinNTSystem.cxx.
References fclose(), fopen, fp, fprintf(), len, TString::ReplaceAll(), and TObject::SysError().
int TWinNTSystem::AcceptConnection | ( | int | sock | ) | [virtual] |
Reimplemented from TSystem.
Definition at line 5047 of file TWinNTSystem.cxx.
References TSystem::ResetErrno(), and TObject::SysError().
Reimplemented from TSystem.
Definition at line 4536 of file TWinNTSystem.cxx.
References TSystem::ResetErrno().
int TWinNTSystem::RecvRaw | ( | int | sock, | |
void * | buffer, | |||
int | length, | |||
int | flag | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4601 of file TWinNTSystem.cxx.
References TObject::Error(), flag, TSystem::kDefault, kDontBlock, kOob, kPeek, n, and WinNTRecv().
int TWinNTSystem::SendRaw | ( | int | sock, | |
const void * | buffer, | |||
int | length, | |||
int | flag | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4643 of file TWinNTSystem.cxx.
References TObject::Error(), flag, TSystem::GetErrno(), TSystem::kDefault, kDontBlock, kOob, kPeek, n, and WinNTSend().
int TWinNTSystem::RecvBuf | ( | int | sock, | |
void * | buffer, | |||
int | length | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4554 of file TWinNTSystem.cxx.
References TObject::Error(), and WinNTRecv().
int TWinNTSystem::SendBuf | ( | int | sock, | |
const void * | buffer, | |||
int | length | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4580 of file TWinNTSystem.cxx.
References TObject::Error(), and WinNTSend().
int TWinNTSystem::SetSockOpt | ( | int | sock, | |
int | opt, | |||
int | val | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4679 of file TWinNTSystem.cxx.
References TObject::Error(), kAtMark, kBytesToRead, kKeepAlive, kNoBlock, kNoDelay, kOobInline, kProcessGroup, kRecvBuffer, kReuseAddr, kSendBuffer, TObject::SysError(), and val.
int TWinNTSystem::GetSockOpt | ( | int | sock, | |
int | opt, | |||
int * | val | |||
) | [virtual] |
Reimplemented from TSystem.
Definition at line 4749 of file TWinNTSystem.cxx.
References TObject::Error(), kAtMark, kBytesToRead, kKeepAlive, kNoBlock, kNoDelay, kOobInline, kProcessGroup, kRecvBuffer, kReuseAddr, kSendBuffer, and TObject::SysError().
int TWinNTSystem::WinNTUnixConnect | ( | int | port | ) | [static] |
Definition at line 4888 of file TWinNTSystem.cxx.
References close, TSystem::GetErrno(), TSystem::ResetErrno(), and TObject::SysError().
Referenced by ConnectService(), and WinNTUnixConnect().
int TWinNTSystem::WinNTUnixConnect | ( | const char * | path | ) | [static] |
Definition at line 4919 of file TWinNTSystem.cxx.
References TString::Data(), fclose(), fopen, fp, XrdMonCtrCollector::port, TString::ReplaceAll(), TObject::SysError(), and WinNTUnixConnect().
Reimplemented from TSystem.
Definition at line 5667 of file TWinNTSystem.cxx.
References GetWinNTSysInfo(), and info.
Reimplemented from TSystem.
Definition at line 5679 of file TWinNTSystem.cxx.
References GetWinNTCpuInfo(), and info.
Reimplemented from TSystem.
Definition at line 5691 of file TWinNTSystem.cxx.
References GetWinNTMemInfo(), and info.
Int_t TWinNTSystem::GetProcInfo | ( | ProcInfo_t * | info | ) | const [virtual] |
Reimplemented from TSystem.
Definition at line 5702 of file TWinNTSystem.cxx.
References GetWinNTProcInfo(), and info.
struct group* TWinNTSystem::fGroups [private] |
Definition at line 75 of file TWinNTSystem.h.
Referenced by CollectGroups(), CollectMembers(), GetGid(), GetGroupInfo(), InitUsersGroups(), and LookupSID().
struct passwd* TWinNTSystem::fPasswords [private] |
Definition at line 76 of file TWinNTSystem.h.
Referenced by CollectMembers(), GetEffectiveGid(), GetEffectiveUid(), GetGid(), GetUid(), GetUserInfo(), InitUsersGroups(), and LookupSID().
int TWinNTSystem::fNbUsers [private] |
Definition at line 77 of file TWinNTSystem.h.
Referenced by CountMembers(), GetUid(), GetUserInfo(), and InitUsersGroups().
int TWinNTSystem::fNbGroups [private] |
Definition at line 78 of file TWinNTSystem.h.
Referenced by GetGid(), GetGroupInfo(), GetNbGroups(), and InitUsersGroups().
int TWinNTSystem::fActUser [private] |
Definition at line 79 of file TWinNTSystem.h.
Referenced by CollectMembers(), GetEffectiveGid(), GetEffectiveUid(), GetGid(), GetUid(), GetUserInfo(), and InitUsersGroups().
Bool_t TWinNTSystem::fGroupsInitDone [private] |
Definition at line 80 of file TWinNTSystem.h.
Referenced by GetEffectiveGid(), GetEffectiveUid(), GetGid(), GetGroupInfo(), GetUid(), GetUserInfo(), Init(), and InitUsersGroups().
Bool_t TWinNTSystem::fFirstFile [private] |
Definition at line 81 of file TWinNTSystem.h.
Referenced by GetDirEntry(), Init(), and OpenDirectory().
HANDLE TWinNTSystem::fhProcess [private] |
void* TWinNTSystem::fGUIThreadHandle [private] |
ULong_t TWinNTSystem::fGUIThreadId [private] |
Definition at line 85 of file TWinNTSystem.h.
Referenced by GetGUIThreadId(), Init(), and NotifyApplicationCreated().
char* TWinNTSystem::fDirNameBuffer [private] |
Definition at line 86 of file TWinNTSystem.h.
Referenced by DirName(), TWinNTSystem(), and ~TWinNTSystem().
WIN32_FIND_DATA TWinNTSystem::fFindFileData [private] |