13 #ifndef ROOT_TWinNTSystem 14 #define ROOT_TWinNTSystem 29 #if !defined(__CINT__) 34 struct WIN32_FIND_DATA;
35 typedef void* HIMAGELIST;
42 #define MAX_SID_SIZE 1024 44 #define MAX_NAME_STRING 1024 72 typedef Bool_t (*ThreadMsgFunc_t)(MSG*);
92 Bool_t CountMembers(
const char *lpszGroupName);
93 const char *GetLinkedLibraries();
95 Long_t LookupSID (
const char *lpszAccountName,
int what,
int &groupIdx,
int &memberIdx);
96 Bool_t CollectMembers(
const char *lpszGroupName,
int &groupIdx,
int &memberIdx);
99 void DoBeep(
Int_t freq=-1,
Int_t duration=-1)
const;
105 static int WinNTUnixConnect(
int port);
106 static int WinNTUnixConnect(
const char *path);
107 static int WinNTUdpConnect(
const char *hostname,
int port);
115 Bool_t HandleConsoleEvent();
119 const char *BaseName(
const char *
name);
120 void SetProgname(
const char *name);
121 const char *GetError();
122 const char *HostName();
125 void SetGUIThreadMsgHandler(ThreadMsgFunc_t
func);
126 void NotifyApplicationCreated();
152 int Exec(
const char *shellcmd);
153 FILE *OpenPipe(
const char *shellcmd,
const char *mode);
154 int ClosePipe(FILE *pipe);
156 void Abort(
int code = 0);
160 const char *Getenv(
const char *name);
161 void Setenv(
const char *name,
const char *
value);
165 int MakeDirectory(
const char *name);
166 Bool_t ChangeDirectory(
const char *path);
167 const char *GetDirEntry(
void *dirp);
168 const char *DirName(
const char *pathname);
169 void FreeDirectory(
void *dirp);
170 void *OpenDirectory(
const char *name);
171 const char *WorkingDirectory(
char driveletter);
172 const char *WorkingDirectory();
173 const char *HomeDirectory(
const char *userName=0);
174 const char *TempDirectory()
const;
175 FILE *TempFileName(
TString &base,
const char *dir = 0);
178 Int_t GetUid(
const char *user = 0);
180 Int_t GetEffectiveUid();
181 Int_t GetEffectiveGid();
188 const char DriveName(
const char *pathname=
"/");
189 const char *PrependPathName(
const char *dir,
TString& name);
191 char *ExpandPathName(
const char *path);
193 Bool_t IsPathLocal(
const char *path);
194 Bool_t IsAbsoluteFileName(
const char *dir);
195 int CopyFile(
const char *from,
const char *to,
Bool_t overwrite =
kFALSE);
196 int Rename(
const char *from,
const char *to);
197 int Link(
const char *from,
const char *to);
198 int Symlink(
const char *from,
const char *to);
199 int Unlink(
const char *name);
200 int SetNonBlock(
int fd);
201 int GetPathInfo(
const char *path,
FileStat_t &buf);
204 int Chmod(
const char *file,
UInt_t mode);
205 int Umask(
Int_t mask);
206 int Utime(
const char *file,
Long_t modtime,
Long_t actime);
207 const char *UnixPathName(
const char *unixpathname);
215 void AddDynamicPath(
const char *dir);
216 const char *GetDynamicPath();
217 void SetDynamicPath(
const char *path);
220 const char *GetLibraries(
const char *regexp =
"",
221 const char *option =
"",
226 void AddTimer(
TTimer *ti);
228 void Sleep(
UInt_t milliSec);
233 int ConnectService(
const char *servername,
int port,
int tcpwindowsize,
const char *protocol =
"tcp");
237 int GetServiceByName(
const char *service);
238 char *GetServiceByPort(
int port);
239 int OpenConnection(
const char *server,
int port,
int tcpwindowsize = -1,
const char *protocol =
"tcp");
240 int AnnounceTcpService(
int port,
Bool_t reuse,
int backlog,
int tcpwindowsize = -1);
241 int AnnounceUdpService(
int port,
int backlog);
242 int AnnounceUnixService(
int port,
int backlog);
243 int AnnounceUnixService(
const char *sockpath,
int backlog);
244 int AcceptConnection(
int sock);
246 int RecvRaw(
int sock,
void *buffer,
int length,
int flag);
247 int SendRaw(
int sock,
const void *buffer,
int length,
int flag);
248 int RecvBuf(
int sock,
void *buffer,
int length);
249 int SendBuf(
int sock,
const void *buffer,
int length);
250 int SetSockOpt(
int sock,
int opt,
int val);
251 int GetSockOpt(
int sock,
int opt,
int *val);
WIN32_FIND_DATA fFindFileData
void * GetGUIThreadHandle() const
RooCmdArg Link(const char *state, RooAbsData &data)
This class represents an Internet Protocol (IP) address.
static void ThreadStub(void *Parameter)
Basic time type with millisecond precision.
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
R__EXTERN ULong_t gConsoleWindow
Double_t length(const TVector2 &v)
struct passwd * fPasswords
Handles synchronous and a-synchronous timer events.
RooCmdArg Rename(const char *suffix)
double func(double *x, double *p)
Abstract base class defining a generic interface to the underlying Operating System.
ULong_t GetGUIThreadId() const