HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_SysClone.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_SysClone.h ( UT Library, C++)
7  *
8  * COMMENTS: Functions and defines for WinNT or Linux to make it look
9  * like IRIX. The difference between this file and UT_SysSpecific
10  * is that this one simply replaces SGI system calls with
11  * custom calls of the same name, while SysSpecific is a true
12  * wrapper that hides even the system call name under a "UT"-
13  * prefixed name.
14  *
15  */
16 
17 #ifndef _UT_SysClone_h_
18 #define _UT_SysClone_h_
19 
20 #include "UT_API.h"
21 #include <SYS/SYS_Math.h>
22 
23 #if defined(GAMEOS)
24  #include "UT_GameOsUtil.h"
25 #endif
26 
27 #ifdef WIN32
28  #include "UT_NTUtil.h"
29  #include "UT_NTGetOpt.h"
30 #elif defined(MBSD)
31  #include "UT_MBSDUtil.h"
32 #else
33  #include <unistd.h>
34 
35  static inline void UTclearHostnameCache()
36  {
37  // Nothing to do here since we don't cache the hostname
38  }
39 
40  static inline int
41  UTgethostname(char *host, int len)
42  {
43  return gethostname(host, len);
44  }
45 #endif
46 
47 class UT_String;
48 
49 UT_API extern int UTgethostname(UT_String &host);
50 
51 #if defined(MBSD)
52  #include "UT_MBSDUtil.h"
53 #endif
54 
55 #if defined(LINUX)
56  #include "UT_LinuxUtil.h"
57 #endif
58 
59 #include "UT_Access.h"
60 #include "UT_DirUtil.h"
61 #include "UT_NTStreamUtil.h"
62 
63 #endif // _UT_SysClone_h_
#define UT_API
Definition: UT_API.h:12
UT_API int UTgethostname(UT_String &host)