Codemesh Runtime v3 C++ API Reference  3.9.205
xmog-config-sunos.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #include <string.h>
7 #include <stdlib.h>
8 #include <stddef.h>
9 
10 
11 #if defined(__GNUC__)
12 # include "xmog-config-sunos-gcc.h"
13 #endif
14 
15 #if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
16 # include "xmog-config-sunos-CC.h"
17 #endif
18 
19 
20 // the return type of the function type that is passed to thread spawn factory
21 typedef void * XMOG_THREAD_FUNC_RETURN;
22 // the macro declaring a variable of thread func return type
23 #define XMOG_THREAD_FUNC_RETURN_DECL(x) void * x = NULL;
24 // the macro declaring a thread func return statement
25 #define XMOG_THREAD_FUNC_RETURN_STMT(x) return (void*)(x);
26 
27 
28 // it seems SunOS compilers don't understand __cdecl
29 #define XMOG_CALLING_CONVENTION
30 
31 
32 #define XMOG_ATEXIT_MODIFIER
33 
34 
35 // the method we use for tolower
36 #define XMOG_TOLOWER ACE_OS::ace_tolower
37 
38 #define XMOG_OS_CODE "sunos"
39 
40 
41 
42 #define XMOG_FILE_SEPARATOR '/'
43 #define XMOG_FILE_SEPARATOR_STR "/"
44 #define XMOG_PATH_SEPARATOR ':'
45 #define XMOG_PATH_SEPARATOR_STR ":"
46 #define LINE_SEP "\n"
47 #define ENV_SEARCH_PATH "LD_LIBRARY_PATH"
48 #define JVM_NAME "libjvm.so"
49 #if defined(__sparc__) || defined(__sparc) || defined(sparc)
50 # if defined(__LP64) || defined(_LP64) || defined(LP64) || defined(__LP64__)
51 # define XMOG_JVM_ARCH "sparcv9"
52 # else
53 # define XMOG_JVM_ARCH "sparc"
54 # endif
55 #elif defined(__i386__) || defined(i386) || defined(__i386) || defined(_M_IX86)
56 # if defined(__LP64) || defined(_LP64) || defined(LP64) || defined(__LP64__)
57 # define XMOG_JVM_ARCH "amd64"
58 # else
59 # define XMOG_JVM_ARCH "i386"
60 # endif
61 #elif defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
62 # if defined(__LP64) || defined(_LP64) || defined(LP64) || defined(__LP64__)
63 # define XMOG_JVM_ARCH "amd64"
64 # else
65 # define XMOG_JVM_ARCH "i386"
66 # endif
67 #else
68 # define XMOG_JVM_ARCH ""
69 #endif
70 #if defined(__LP64) || defined(_LP64) || defined(LP64) || defined(__LP64__)
71 # define XMOG_NEW_DIFF_TYPE jlong
72 #else
73 # define XMOG_NEW_DIFF_TYPE jint
74 #endif
75 

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.