Made charm++ to compile and run with Solaris 2.6.
[charm.git] / src / arch / origin2000 / conv-mach.h
1 /***************************************************************************
2  * RCS INFORMATION:
3  *
4  *   $RCSfile$
5  *   $Author$       $Locker$        $State$
6  *   $Revision$     $Date$
7  *
8  ***************************************************************************
9  *
10  * $Log$
11  * Revision 1.7  1998-01-13 17:03:37  milind
12  * Made charm++ to compile and run with Solaris 2.6.
13  * In particular, changed INTBITS to CINTBITS, and handled EALREADY.
14  *
15  * Revision 1.6  1997/12/22 21:58:06  jyelon
16  * Changed LDB initialization scheme.
17  *
18  * Revision 1.5  1997/08/06 20:35:58  jyelon
19  * Fixed bugs.
20  *
21  * Revision 1.4  1997/07/28 19:01:08  jyelon
22  * *** empty log message ***
23  *
24  * Revision 1.3  1997/07/26 16:42:03  jyelon
25  * *** empty log message ***
26  *
27  * Revision 1.2  1997/07/07 22:13:50  milind
28  * Made threads to work.
29  *
30  * Revision 1.1  1997/03/28 17:38:23  milind
31  * Added Origin2000 version.
32  *
33  * Revision 1.2  1997/03/25 23:09:09  milind
34  * Got threads to work on 64-bit irix. Had to add JB_TWEAKING_ORIGIN flag to
35  * all the conv-mach.h files. Also, _PAGESZ was undefined on irix. Added
36  * code to memory.c to make it a static variable.
37  *
38  * Revision 1.1  1997/03/19 21:45:27  milind
39  * net-irix-64 bit bersion. Not tested yet.
40  *
41  * Revision 1.3  1997/02/13 09:31:45  jyelon
42  * Updated for new main/ConverseInit structure.
43  *
44  * Revision 1.2  1997/02/08 14:10:19  jyelon
45  * Correcting bugs in network version.
46  *
47  * Revision 1.1  1997/01/28 16:26:42  milind
48  * Added net-irix version. Had to fix the charm++ translator for that.
49  * Also, threads are currently not supported on net-irix.
50  * Added a test program to measure scheduling overhead for both
51  * normal as well as threaded entry methods.
52  *
53  * Revision 2.28  1997/01/17 15:50:26  jyelon
54  * Minor adjustments to deal with recent changes to Common code.
55  *
56  * Revision 2.27  1996/11/23 02:25:39  milind
57  * Fixed several subtle bugs in the converse runtime for convex
58  * exemplar.
59  *
60  * Revision 2.26  1996/11/08 22:22:59  brunner
61  * Put _main in for HP-UX CC compilation.  It is ignored according to the
62  * CMK_USE_HP_MAIN_FIX flag.
63  *
64  * Revision 2.25  1996/10/24 19:40:26  milind
65  * Added CMK_IS_HETERO to all the net-all versions.
66  *
67  * Revision 2.24  1996/08/08 20:16:53  jyelon
68  * *** empty log message ***
69  *
70  * Revision 2.23  1996/07/16 17:23:37  jyelon
71  * Renamed a flag.
72  *
73  * Revision 2.22  1996/07/16 05:20:41  milind
74  * Added CMK_VECTOR_SEND
75  *
76  * Revision 2.21  1996/07/15  20:58:27  jyelon
77  * Flags now use #if, not #ifdef.  Also cleaned up a lot.
78  *
79  *
80  **************************************************************************/
81
82 #ifndef _CONV_MACH_H
83 #define _CONV_MACH_H
84
85 #define CMK_ASYNC_NOT_NEEDED                               1
86 #define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
87 #define CMK_ASYNC_USE_FIOASYNC_AND_SIOCSPGRP               0
88 #define CMK_ASYNC_USE_FIOSSAIOSTAT_AND_FIOSSAIOOWN         0
89 #define CMK_ASYNC_USE_F_SETFL_AND_F_SETOWN                 0
90
91 #define CMK_CMIDELIVERS_USE_COMMON_CODE                    1
92 #define CMK_CMIDELIVERS_USE_SPECIAL_CODE                   0
93
94 #define CMK_CMIPRINTF_IS_A_BUILTIN                         0
95 #define CMK_CMIPRINTF_IS_JUST_PRINTF                       1
96
97 #define CMK_COMMHANDLE_IS_AN_INTEGER                       0
98 #define CMK_COMMHANDLE_IS_A_POINTER                        1
99
100 #define CMK_CSDEXITSCHEDULER_IS_A_FUNCTION                 0
101 #define CMK_CSDEXITSCHEDULER_SET_CSDSTOPFLAG               1
102
103 #define CMK_DEFAULT_MAIN_USES_COMMON_CODE                  1
104
105 #define CMK_FIX_HP_CONNECT_BUG                             0
106
107 #define CMK_GETPAGESIZE_AVAILABLE                          1
108
109 #define CMK_IS_HETERO                                      0
110
111 #define CMK_MACHINE_NAME                                   "origin2000"
112
113 #define CMK_MALLOC_USE_GNU_MALLOC                          0
114 #define CMK_MALLOC_USE_OS_BUILTIN                          1
115
116 #define CMK_MEMORY_PAGESIZE                                8192
117 #define CMK_MEMORY_PROTECTABLE                             0
118
119 #define CMK_MSG_HEADER_SIZE_BYTES                          4
120 #define CMK_MSG_HEADER_BLANK_SPACE                         0
121
122 #define CMK_PREPROCESSOR_CANNOT_DO_CONCATENATION           0
123 #define CMK_PREPROCESSOR_USES_ANSI_STANDARD_CONCATENATION  1
124
125 #define CMK_PROTOTYPES_FAIL                                0
126 #define CMK_PROTOTYPES_WORK                                1
127
128 #define CMK_RSH_IS_A_COMMAND                               0
129 #define CMK_RSH_NOT_NEEDED                                 1
130 #define CMK_RSH_USE_REMSH                                  0
131
132 #define CMK_SHARED_VARS_EXEMPLAR                           0
133 #define CMK_SHARED_VARS_UNAVAILABLE                        1
134 #define CMK_SHARED_VARS_UNIPROCESSOR                       0
135 #define CMK_SHARED_VARS_SUN_THREADS                        0
136
137 #define CMK_SIGHOLD_IS_A_BUILTIN                           0
138 #define CMK_SIGHOLD_NOT_NEEDED                             1
139 #define CMK_SIGHOLD_USE_SIGMASK                            0
140
141 #define CMK_SIGNAL_NOT_NEEDED                              1
142 #define CMK_SIGNAL_USE_SIGACTION                           0
143 #define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              0
144
145 #define CMK_SIZE_T                                         unsigned long
146
147 #define CMK_STATIC_PROTO_FAILS                             0
148 #define CMK_STATIC_PROTO_WORKS                             1
149
150 #define CMK_STRERROR_IS_A_BUILTIN                          1
151 #define CMK_STRERROR_USE_SYS_ERRLIST                       0
152
153 #define CMK_STRINGS_USE_OWN_DECLARATIONS                   0
154 #define CMK_STRINGS_USE_STRINGS_H                          0
155 #define CMK_STRINGS_USE_STRING_H                           1
156
157 #define CMK_SYNCHRONIZE_ON_TCP_CLOSE                       0
158
159 #define CMK_THREADS_REQUIRE_NO_CPV                         0
160
161 #define CMK_THREADS_UNAVAILABLE                            0
162 #define CMK_THREADS_USE_ALLOCA                             0
163 #define CMK_THREADS_USE_JB_TWEAKING                        0
164 #define CMK_THREADS_USE_JB_TWEAKING_EXEMPLAR               0
165 #define CMK_THREADS_USE_JB_TWEAKING_ORIGIN                 1
166
167 #define CMK_TIMER_USE_GETRUSAGE                            0
168 #define CMK_TIMER_USE_SPECIAL                              0
169 #define CMK_TIMER_USE_TIMES                                1
170
171 #define CMK_VECTOR_SEND_USES_COMMON_CODE                   1
172 #define CMK_VECTOR_SEND_USES_SPECIAL_CODE                  0
173
174 #define CMK_WAIT_NOT_NEEDED                                0
175 #define CMK_WAIT_USES_SYS_WAIT_H                           1
176 #define CMK_WAIT_USES_WAITFLAGS_H                          0
177
178 #define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
179 #define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
180
181 #define CMK_USE_HP_MAIN_FIX                                0
182 #define CMK_DONT_USE_HP_MAIN_FIX                           1
183
184 #endif
185