00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _UT_SysClone_h_
00026 #define _UT_SysClone_h_
00027
00028 #include "UT_API.h"
00029 #include <SYS/SYS_Math.h>
00030
00031 #if defined(GAMEOS)
00032 #include "UT_GameOsUtil.h"
00033 #endif
00034
00035 #ifdef WIN32
00036 #include "UT_NTUtil.h"
00037 #include "UT_NTGetOpt.h"
00038 #elif defined(MBSD)
00039 #include "UT_MBSDUtil.h"
00040
00041 static inline int
00042 UTaccess(const char *path, int mode)
00043 {
00044 return access(path, mode);
00045 }
00046 #else
00047 #include <unistd.h>
00048
00049
00050 static inline int
00051 UTaccess(const char *path, int mode)
00052 {
00053 return access(path, mode);
00054 }
00055
00056 static inline void UTclearHostnameCache()
00057 {
00058
00059 }
00060
00061 static inline int
00062 UTgethostname(char *host, int len)
00063 {
00064 return gethostname(host, len);
00065 }
00066 #endif
00067
00068 class UT_String;
00069
00070 UT_API extern int UTgethostname(UT_String &host);
00071
00072 #if defined(MBSD)
00073 #include "UT_MBSDUtil.h"
00074 #endif
00075
00076 #if defined(LINUX)
00077 #include "UT_LinuxUtil.h"
00078 #endif
00079
00080 #if defined(SOLARIS)
00081 #include "UT_SolarisUtil.h"
00082 #endif
00083
00084 #include "UT_DirUtil.h"
00085 #include "UT_NTStreamUtil.h"
00086
00087 #endif // _UT_SysClone_h_