2 #ifndef ACE_CONFIG_UNIXWARE_UDK_H
3 #define ACE_CONFIG_UNIXWARE_UDK_H
5 // $Id: config-unixware-7.1.0.udk.h 82267 2008-07-08 16:39:19Z jtc $
7 // Configuration for the unixware UDK compiler. derived from the unixware/g++ config
8 // which was itself derived from an autoconfig run.
10 /* ACE configuration header file */
12 #define ACE_TEMPLATES_REQUIRE_SOURCE
18 #define ACE_LACKS_PLACEMENT_OPERATOR_DELETE
20 /* Define if you have the strftime function. */
21 #define HAVE_STRFTIME 1
23 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
24 #define HAVE_SYS_WAIT_H 1
26 /* Define if you have the ANSI C header files. */
27 #define STDC_HEADERS 1
29 /* Define if lex declares yytext as a char * by default, not a char[]. */
30 #define YYTEXT_POINTER 1
32 /* Define _REENTRANT if reentrant functions should be used. */
37 #define ACE_HAS_NEW_NO_H 1
38 #define ACE_HAS_STDEXCEPT_NO_H 1
41 * TODO: These two next #defines have an #undef before them, in
42 * case the variable being defined already had a value.
43 * The #undefs are being picked up by configure, and are commented out!
45 #define ACE_THREAD_MIN_PRIORITY 0
46 #if defined (ACE_THREAD_MIN_PRIORITY)
47 /* # undef PTHREAD_MIN_PRIORITY */
48 # define PTHREAD_MIN_PRIORITY ACE_THREAD_MIN_PRIORITY
49 #endif /* #if defined (ACE_THREAD_MIN_PRIORITY) */
51 #define ACE_THREAD_MAX_PRIORITY 99
52 #if defined (ACE_THREAD_MAX_PRIORITY)
53 /* # undef PTHREAD_MAX_PRIORITY */
54 # define PTHREAD_MAX_PRIORITY ACE_THREAD_MAX_PRIORITY
55 #endif /* #if defined (ACE_THREAD_MAX_PRIORITY) */
59 /* UnixWare specific configuration parameters */
61 /* #undef UNIXWARE_2_0 */
62 /* #undef UNIXWARE_2_1 */
64 /* Specify sizes of given built-in types. If a size isn't defined here,
65 then ace/Basic_Types.h will attempt to deduce the size. */
66 /* #undef ACE_SIZEOF_CHAR */
67 #define ACE_SIZEOF_SHORT 2
68 #define ACE_SIZEOF_INT 4
69 #define ACE_SIZEOF_LONG 4
70 #define ACE_SIZEOF_LONG_LONG 8
71 #define ACE_SIZEOF_VOID_P 4
72 #define ACE_SIZEOF_FLOAT 4
73 #define ACE_SIZEOF_DOUBLE 8
74 #define ACE_SIZEOF_LONG_DOUBLE 12
76 /* Enable ACE inlining */
77 #define __ACE_INLINE__ 1
79 /* Platform supports Asynchronous IO calls */
80 /* #define ACE_HAS_AIO_CALLS */
82 /* Specify this if you don't want threads to inherit parent thread's
83 ACE_Log_Msg properties. */
84 /* #undef ACE_THREADS_DONT_INHERIT_LOG_MSG */
86 /* OS has priocntl (2) */
87 #define ACE_HAS_PRIOCNTL 1
89 /* Platform has pread() and pwrite() support */
90 #define ACE_HAS_P_READ_WRITE 1
92 /* Compiler/platform correctly calls init()/fini() for shared libraries */
93 #define ACE_HAS_AUTOMATIC_INIT_FINI 1
95 /* Compiler handles explicit calling of template destructor correctly.
96 See "ace/OS.h" for details. */
97 /* Staller: already defined by config-g++-common.h
98 #define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR 1
101 /* Platform doesn't cast MAP_FAILED to a (void *). */
102 /* #undef ACE_HAS_BROKEN_MAP_FAILED */
103 /* Staller: oh yes, let's do this! */
104 #define ACE_HAS_BROKEN_MAP_FAILED
107 /* Prototypes for both signal() and struct sigaction are consistent. */
108 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES 1
110 /* Compiler/platform has correctly prototyped header files */
111 #define ACE_HAS_CPLUSPLUS_HEADERS
113 /* Platform supports operations on directories via struct dirent,
115 #define ACE_HAS_DIRENT
117 /* Compiler supports C++ exception handling */
118 # if !defined (ACE_HAS_EXCEPTIONS)
119 #define ACE_HAS_EXCEPTIONS
122 /* Platform supports getpagesize() call (otherwise, ACE_PAGE_SIZE must be
123 defined, except on Win32) */
124 #define ACE_HAS_GETPAGESIZE
126 /* Platform supports the getrusage() system call. */
127 #define ACE_HAS_GETRUSAGE
129 /* Platform has a getrusage () prototype in sys/resource.h that differs from
130 the one in ace/OS.i. */
131 #define ACE_HAS_GETRUSAGE_PROTOTYPE
133 /* The GPERF utility is compiled for this platform */
134 #define ACE_HAS_GPERF
136 /* Optimize ACE_Handle_Set::count_bits for select() operations (common case) */
137 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT 1
139 /* Compiler/platform supports SunOS high resolution timers */
140 /* #undef ACE_HAS_HI_RES_TIMER */
142 /* Compiler/platform supports idtype_t. */
143 #define ACE_HAS_IDTYPE_T
145 /* Inline all the static class OS methods to remove call overhead */
146 /* Note: This gets defined by OS.h if __ACE_INLINE__ is defined */
147 /* #undef ACE_HAS_INLINED_OSCALLS */
149 /* Platform supports IP multicast */
150 #define ACE_HAS_IP_MULTICAST
152 /* Platform supports thr_keydelete (e.g,. UNIXWARE) */
153 #define ACE_HAS_THR_KEYDELETE
155 /* Platform calls thr_minstack() rather than thr_min_stack() (e.g., Tandem). */
156 #define ACE_HAS_THR_MINSTACK
158 /* Some files, such as ace/streams.h, want to include new style C++ stream
159 headers. These headers are iomanip, ios, iostream, istream, ostream,
160 fstream and streambuf. If _all_ of these headers aren't available, then
161 assume that only iostream.h and fstream.h are available. */
162 /* #define ACE_USES_OLD_IOSTREAMS */
164 /* Platform supports recvmsg and sendmsg */
167 /* Platform's select() uses non-const timeval* (only found on Linux right
169 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
171 /* Uses ctime_r & asctime_r with only two parameters vs. three. */
172 #define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
175 /* Platform is an Intel Pentium microprocessor. */
176 /* There is a problem with the gethrtime() because of (apparently) a problem
177 with the inline assembly instruction. Hopefully there is a way to resolve
178 that with an improvement to the assembler
180 #ifdef ACE_HAS_PENTIUM
181 //#undef ACE_HAS_PENTIUM
182 #endif /* ACE_HAS_PENTIUM */
185 /* Platform contains <poll.h> */
188 /* Platform supports POSIX O_NONBLOCK semantics */
189 #define ACE_HAS_POSIX_NONBLOCK
191 /* Platform supports the POSIX struct timespec type */
192 #define ACE_HAS_POSIX_TIME
194 /* Platform supports the /proc file system and defines tid_t
196 #define ACE_HAS_PROC_FS
198 /* Platform supports POSIX Threads */
199 #define ACE_HAS_PTHREADS
201 /* pthread.h declares an enum with PTHREAD_PROCESS_PRIVATE and
202 PTHREAD_PROCESS_SHARED values */
203 #define ACE_HAS_PTHREAD_PROCESS_ENUM
205 /* Platform will recurse infinitely on thread exits from TSS cleanup routines
207 #define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
209 /* Platform supports reentrant functions (i.e., all the POSIX *_r
211 #define ACE_HAS_REENTRANT_FUNCTIONS
213 /* Platform has support for multi-byte character support compliant with the
214 XPG4 Worldwide Portability Interface wide-character classification. */
215 #define ACE_HAS_XPG4_MULTIBYTE_CHAR
217 /* Platform does not support reentrant netdb functions (getprotobyname_r,
218 getprotobynumber_r, gethostbyaddr_r, gethostbyname_r, getservbyname_r). */
219 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
221 /* Platform supports the POSIX regular expression library */
222 #define ACE_HAS_REGEX
224 /* Platform has special header for select(). */
225 #define ACE_HAS_SELECT_H
227 /* Platform has a function to set t_errno (e.g., Tandem). */
228 #define ACE_HAS_SET_T_ERRNO
230 /* Platform supports SVR4 extended signals */
231 #define ACE_HAS_SIGINFO_T
233 /* Platform/compiler has the sigwait(2) prototype */
234 #define ACE_HAS_SIGWAIT
236 /* Compiler/platform defines the sig_atomic_t typedef */
237 #define ACE_HAS_SIG_ATOMIC_T
239 /* Platform supports new BSD inet_addr len field. */
240 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
242 /* OS/compiler uses size_t * rather than int * for socket lengths */
243 #define ACE_HAS_SIZET_SOCKET_LEN
245 /* Compiler/platform provides the sys/sockio.h file */
246 #define ACE_HAS_SYS_SOCKIO_H
248 /* Compiler supports the ssize_t typedef */
249 #define ACE_HAS_SSIZE_T
251 /* Platform supports UNIX International Threads */
252 #define ACE_HAS_STHREADS
254 /* Platform has thr_yield() */
255 #define ACE_HAS_THR_YIELD
257 /* Platform/compiler supports Standard C++ Library */
258 /* It seems that UDK provides std-like declarations for only portions
261 #define ACE_HAS_STANDARD_CPP_LIBRARY 0
263 /* Compiler/platform supports struct strbuf */
264 #define ACE_HAS_STRBUF_T
266 /* Platform supports STREAMS */
267 #define ACE_HAS_STREAMS
269 /* Platform supports STREAM pipes */
270 #define ACE_HAS_STREAM_PIPES
272 /* Compiler/platform supports strerror () */
273 #define ACE_HAS_STRERROR
275 /* Platform/Compiler supports a String class (e.g., GNU or Win32). */
276 #define ACE_HAS_STRING_CLASS
278 /* Platform has <strings.h> (which contains bzero() prototype) */
279 #define ACE_HAS_STRINGS
281 /* Platform/compiler supports void * as second parameter to gettimeofday(). */
282 #define ACE_HAS_VOIDPTR_GETTIMEOFDAY
284 /* Compiler/platform supports SVR4 dynamic linking semantics */
285 #define ACE_HAS_SVR4_DYNAMIC_LINKING
287 /* Compiler/platform supports SVR4 TLI (in particular, T_GETNAME stuff)... */
288 #define ACE_HAS_SVR4_TLI
290 /* Compiler/platform contains the <sys/syscall.h> file. */
291 #define ACE_HAS_SYS_SYSCALL_H
293 /* Platform supports system configuration information */
294 #define ACE_HAS_SYS_SYSTEMINFO_H
295 #define ACE_HAS_SYSINFO 1
297 /* Platform supports System V IPC (most versions of UNIX, but not Win32) */
298 #define ACE_HAS_SYSV_IPC 1
300 /* Platform provides <sys/filio.h> header */
301 #define ACE_HAS_SYS_FILIO_H 1
303 /* Platform provides <sys/xti.h> header */
304 #define ACE_HAS_SYS_XTI_H 1
306 /* Compiler implements templates that support typedefs inside of classes used
307 as formal arguments to a template class. */
308 #define ACE_HAS_TEMPLATE_TYPEDEFS 1
310 /* Platform has POSIX terminal interface. */
311 #define ACE_HAS_TERMIOS 1
313 /* Platform supports threads */
314 #define ACE_HAS_THREADS 1
316 /* Compiler/platform has thread-specific storage */
317 #define ACE_HAS_THREAD_SPECIFIC_STORAGE 1
319 /* Platform supports TLI timod STREAMS module */
320 #define ACE_HAS_TIMOD_H 1
322 /* Platform supports TLI tiuser header */
323 #define ACE_HAS_TIUSER_H 1
325 /* Platform supports TLI. Also see ACE_TLI_TCP_DEVICE. */
326 #define ACE_HAS_TLI 1
328 /* Platform provides TLI function prototypes */
329 #define ACE_HAS_TLI_PROTOTYPES 1
331 /* Platform supports ualarm() */
332 #define ACE_HAS_UALARM 1
334 /* Platform supports ucontext_t (which is used in the extended signal API). */
335 #define ACE_HAS_UCONTEXT_T 1
337 /* Platform has <utime.h> header file */
338 #define ACE_HAS_UTIME 1
340 /* Prints out console message in ACE_NOTSUP. Useful for tracking down origin
342 /* #undef ACE_HAS_VERBOSE_NOTSUP */
344 /* Platform requires void * for mmap(). */
345 #define ACE_HAS_VOIDPTR_MMAP 1
347 /* Platform has XTI (X/Open-standardized superset of TLI). Implies
348 ACE_HAS_TLI but uses a different header file. */
349 #define ACE_HAS_XTI 1
351 /* Platform can not build ace/IOStream{,_T}.cpp. This does not necessarily
352 mean that the platform does not support iostreams. */
353 #define ACE_LACKS_ACE_IOSTREAM 1
355 /* Platform does not have u_longlong_t typedef */
356 #define ACE_LACKS_U_LONGLONG_T 1
358 /* Platform lacks madvise() (e.g., Linux) */
359 #define ACE_LACKS_MADVISE 1
361 /* Platform lacks pri_t (e.g., Tandem NonStop UNIX). */
362 #define ACE_LACKS_PRI_T 1
364 /* Platform lacks pthread_thr_sigsetmask (e.g., MVS, HP/UX, and OSF/1 3.2) */
365 #define ACE_LACKS_PTHREAD_THR_SIGSETMASK 1
367 /* Platfrom lack pthread_yield() support. */
368 #define ACE_LACKS_PTHREAD_YIELD 1
370 /* Platform lacks readers/writer locks. */
371 #define ACE_LACKS_RWLOCK_T 1
373 /* MIT pthreads platform lacks the timedwait prototypes */
374 #define ACE_LACKS_TIMEDWAIT_PROTOTYPES 1
376 /* Platform does not define timepec_t as a typedef for struct timespec. */
377 #define ACE_LACKS_TIMESPEC_T 1
379 /* Compile using multi-thread libraries */
380 #define ACE_MT_SAFE 1
382 /* Platform needs to #include <sched.h> to get thread scheduling defs. */
383 #define ACE_NEEDS_SCHED_H 1
385 /* The OS/platform supports the poll() event demultiplexor */
386 #define ACE_USE_POLL 1
388 /* Platform has its standard c++ library in the namespace std. */
389 #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
391 /* The number of bytes in a double. */
392 #define SIZEOF_DOUBLE 8
394 /* The number of bytes in a float. */
395 #define SIZEOF_FLOAT 4
397 /* The number of bytes in a int. */
400 /* The number of bytes in a long. */
401 #define SIZEOF_LONG 4
403 /* The number of bytes in a long double. */
404 #define SIZEOF_LONG_DOUBLE 12
406 /* The number of bytes in a long long. */
407 #define SIZEOF_LONG_LONG 8
409 /* The number of bytes in a short. */
410 #define SIZEOF_SHORT 2
412 /* The number of bytes in a signed char. */
413 #define SIZEOF_SIGNED_CHAR 1
415 /* The number of bytes in a void *. */
416 #define SIZEOF_VOID_P 4
418 /* Define if you have the execv function. */
421 /* Define if you have the execve function. */
422 #define HAVE_EXECVE 1
424 /* Define if you have the execvp function. */
425 #define HAVE_EXECVP 1
427 /* Define if you have the <dirent.h> header file. */
428 #define HAVE_DIRENT_H 1
430 /* Define if you have the <fstream> header file. */
431 #define HAVE_FSTREAM 1
433 /* Define if you have the <iomanip> header file. */
434 #define HAVE_IOMANIP 1
436 /* Define if you have the <iostream> header file. */
437 #define HAVE_IOSTREAM 1
439 /* Define if you have the <pwd.h> header file. */
442 /* Name of package */
443 #define PACKAGE "ace"
445 /* Version number of package */
446 #define VERSION "4.6.37"
448 /* Added by Staller */
449 #define ENUM_BOOLEAN // See file /usr/local/lib/gcc-lib/i486-pc-sysv5/egcs-2.91.60/include/sys/types.h
451 #define ACE_DEFAULT_SELECT_REACTOR_SIZE 256 // this is like in linux config fileto avoid another error
453 #define howmany(x, y) (((x)+((y)-1))/(y))
454 #define ACE_HAS_BROKEN_T_ERROR // let disappear a nasty warning from OS.i
455 #if !defined (__USLC__)
459 #define __IOCTL_VERSIONED__ // By Carlo!
460 #endif /* ACE_UNIXWARE_UDK_H */