GNU CommonC++
config.h
Go to the documentation of this file.
1 /* config.h. Generated from config.h.in by configure. */
2 /* config.h.in. Generated from configure.ac by autoheader. */
3 
4 #ifndef CCXX_CONFIG_H_
5 #define CCXX_CONFIG_H_
6 #define __DLL
7 #define __EXPORT_TEMPLATE(x)
8 /* #undef CCXX_EMPTY */
9 #define CCXX_EMPTY
10 
11 #define COMMON_64_CLEAN
12 #define COMMON_ASYNC_OVERRIDE
13 #define COMMON_OST_NAMESPACE
14 #define COMMON_THREAD_SLEEP
15 #define COMMON_NET_DEVICES
16 #define COMMON_THREAD_DEBUG
17 #define COMMON_DEADLOCK_DEBUG
18 #define COMMON_NAMED_MUTEX
19 #define COMMON_PROCESS_ATTACH
20 #define COMMON_XML_PARSING
21 #define COMMON_TIMER_SLEEP
22 
23 #if __GNUC__ > 1 && !defined(__STRICT_ANSI__) && !defined(__PEDANTIC__)
24 #define DYNAMIC_LOCAL_ARRAYS
25 #endif
26 
27 #if defined(__CYGWIN__)
28 #define _POSIX_REALTIME_SIGNALS
29 #define _POSIX_THREADS
30 #endif
31 
32 #if defined(__APPLE__) && defined(__MACH__)
33 #ifndef MACOSX
34 #define MACOSX
35 #define _P1003_1B_VISIBLE
36 #endif
37 #ifndef _PTHREADS
38 #define _PTHREADS 1
39 #endif
40 #endif
41 
42 #if defined(__FreeBSD__)
43 #ifndef __BSD_VISIBLE
44 #define __BSD_VISIBLE 1
45 #endif
46 #endif
47 
48 #ifdef _AIX
49 #ifndef _ALL_SOURCE
50 #define _ALL_SOURCE 1
51 #endif
52 #endif
53 
54 #ifdef __hpux
55 #ifndef _XOPEN_SOURCE_EXTENDED
56 #define _XOPEN_SOURCE_EXTENDED
57 #endif
58 #ifndef _INCLUDE_LONGLONG
59 #define _INCLUDE_LONGLONG
60 #endif
61 #endif
62 
63 #define CCXX_PACKING
64 #if defined(__GNUC__)
65 #define CCXX_PACKED
66 #elif !defined(__hpux) && !defined(_AIX)
67 #define CCXX_PACKED
68 #endif
69 
70 #if defined(__sun) || defined(__SUN__)
71 #define __EXTENSIONS__ 1
72 #endif
73 
74 #ifndef _REENTRANT
75 #define _REENTRANT 1
76 #endif
77 
78 #ifndef _THREAD_SAFE
79 #define _THREAD_SAFE 1
80 #endif
81 
82 #ifndef _GNU_SOURCE
83 #define _GNU_SOURCE 1
84 #endif
85 
86 #if !defined(_XOPEN_SOURCE) && !defined(__FreeBSD__) &&!defined(__OpenBSD__) && !defined(__MACH__) && !defined(__NetBSD__)
87 #define _XOPEN_SOURCE 600
88 #endif
89 
90 
91 
92 /* hack for BROKEN autoheader, since it will not predicitably order
93  macros by any obvious means. */
94 
95 #define HAVE_UNISTD_H 1
96 #define HAVE_FEATURES_H 1
97 #define HAVE_SYS_TYPES_H 1
98 
99 #ifdef HAVE_UNISTD_H
100 #include <unistd.h>
101 #endif
102 
103 #ifndef WIN32
104 #ifdef HAVE_FEATURES_H
105 #include <features.h>
106 #endif
107 #endif
108 
109 #ifdef HAVE_SYS_TYPES_H
110 #include <sys/types.h>
111 #endif
112 
113 
114 
115 #define HAVE_SYS_TIME_H 1
116 #define TIME_WITH_SYS_TIME 1
117 #if TIME_WITH_SYS_TIME
118 #include <sys/time.h>
119 #else
120 #if HAVE_SYS_TIME_H
121 #include <sys/time.h>
122 #endif
123 #endif
124 
125 
126 
127 
128 #define HAVE_SYS_TYPES_STD 1
129 #define HAVE_SYS_TYPES_64 1
130 #define HAVE_LONG_LONG 1
131 /* #undef HAVE_SYS_TYPES */
132 
133 #ifdef HAVE_SYS_TYPES_H
134 #include <sys/types.h>
135 #endif
136 
137 #ifdef HAVE_BITS_WORSIZE_H
138 #include <bits/wordtypes.h>
139 #endif
140 
141 #ifdef HAVE_SYS_TYPES_STD
142 typedef int8_t int8;
143 typedef u_int8_t uint8;
144 typedef int16_t int16;
145 typedef u_int16_t uint16;
146 typedef int32_t int32;
147 typedef u_int32_t uint32;
148 #ifdef HAVE_SYS_TYPES_64
149 #define HAVE_64_BITS
150 typedef int64_t int64;
151 typedef u_int64_t uint64;
152 #endif
153 #else
154 typedef char int8;
155 typedef unsigned char uint8;
156 typedef short int16;
157 typedef unsigned short uint16;
158 typedef int int32;
159 typedef unsigned int uint32;
160 #endif
161 
162 #ifndef HAVE_SYS_TYPES_64
163 #if defined(__WORDSIZE) || defined(__arch64__)
164 #if __WORDSIZE >= 64 || defined(__arch64__)
165 typedef long int int64;
166 typedef unsigned long int uint64;
167 #define HAVE_SYS_TYPES_64 1
168 #define HAVE_64_BITS
169 #endif
170 #endif
171 #endif
172 
173 #ifndef HAVE_SYS_TYPES_64
174 #ifdef __GNUC__
175 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
176 __extension__
177 typedef long long int int64;
178 __extension__
179 typedef unsigned long long int uint64;
180 #define HAVE_SYS_TYPES_64 1
181 #define HAVE_64_BITS
182 #endif
183 #endif
184 #endif
185 
186 #ifndef HAVE_SYS_TYPES_64
187 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
188 #define HAVE_64_BITS
189 typedef long long int64;
190 typedef unsigned long long uint64;
191 #endif
192 #endif
193 
194 
195 /* has c++ exception handling */
196 #define CCXX_EXCEPTIONS 1
197 
198 /* define gnutls */
199 /* #undef CCXX_GNUTLS */
200 
201 /* have new with init */
202 #define CCXX_HAVE_NEW_INIT 1
203 
204 /* has c++ namespaces */
205 #define CCXX_NAMESPACES 1
206 
207 /* NAT support */
208 #define CCXX_NAT 1
209 
210 /* define openssl */
211 /* #undef CCXX_OPENSSL */
212 
213 /* defines ssl */
214 /* #undef CCXX_SSL */
215 
216 /* aix fixes needed */
217 /* #undef COMMON_AIX_FIXES */
218 
219 /* enable auditing */
220 /* #undef COMMON_MEMORY_AUDIT */
221 
222 /* cygwin environment */
223 /* #undef CYGWIN_IMPORTS */
224 
225 /* primary config prefix */
226 /* #undef ETC_CONFDIR */
227 
228 /* system config prefix */
229 #define ETC_PREFIX "/etc/"
230 
231 /* Define to 1 if you have the <alloca.h> header file. */
232 #define HAVE_ALLOCA_H 1
233 
234 /* Define to 1 if you have the <arpa/inet.h> header file. */
235 #define HAVE_ARPA_INET_H 1
236 
237 /* atomic aix operations */
238 /* #undef HAVE_ATOMIC_AIX */
239 
240 /* Define to 1 if you have the <bits/atomicity.h> header file. */
241 /* #undef HAVE_BITS_ATOMICITY_H */
242 
243 /* Define to 1 if you have the <bits/wordsize.h> header file. */
244 #define HAVE_BITS_WORDSIZE_H 1
245 
246 /* have bool type */
247 #define HAVE_BOOL_TYPE 1
248 
249 /* Define to 1 if you have the <bsd/signal.h> header file. */
250 /* #undef HAVE_BSD_SIGNAL_H */
251 
252 /* Define to 1 if you have the `clock_gettime' function. */
253 /* #undef HAVE_CLOCK_GETTIME */
254 
255 /* Define to 1 if you have the <dlfcn.h> header file. */
256 #define HAVE_DLFCN_H 1
257 
258 /* have endian header */
259 #define HAVE_ENDIAN_H 1
260 
261 /* Define to 1 if you have the <errno.h> header file. */
262 #define HAVE_ERRNO_H 1
263 
264 /* Define to 1 if you have the <exception> header file. */
265 #define HAVE_EXCEPTION 1
266 
267 /* Enable extras */
268 #define HAVE_EXTRAS 1
269 
270 /* Define to 1 if you have the <fcntl.h> header file. */
271 #define HAVE_FCNTL_H 1
272 
273 /* Define to 1 if you have the <features.h> header file. */
274 #define HAVE_FEATURES_H 1
275 
276 /* has gcc atomic functions */
277 /* #undef HAVE_GCC_BITS_ATOMIC */
278 
279 /* has __gnu_cxx atomic functions */
280 /* #undef HAVE_GCC_CXX_BITS_ATOMIC */
281 
282 /* getaddrinfo interface support */
283 #define HAVE_GETADDRINFO 1
284 
285 /* reentrant getgrnam */
286 #define HAVE_GETGRNAM_R 1
287 
288 /* ipv6 host lookup */
289 #define HAVE_GETHOSTBYNAME2 1
290 
291 /* have getopt header */
292 #define HAVE_GETOPT 1
293 
294 /* Define to 1 if you have the <getopt.h> header file. */
295 #define HAVE_GETOPT_H 1
296 
297 /* Define to 1 if you have the `getopt_long' function. */
298 #define HAVE_GETOPT_LONG 1
299 
300 /* Define to 1 if you have the `getpagesize' function. */
301 #define HAVE_GETPAGESIZE 1
302 
303 /* reentrant getnam */
304 #define HAVE_GETPWNAM_R 1
305 
306 /* reentrant getuid */
307 #define HAVE_GETPWUID_R 1
308 
309 /* Define to 1 if you have the `gettimeofday' function. */
310 #define HAVE_GETTIMEOFDAY 1
311 
312 /* have hires */
313 #define HAVE_HIRES_TIMER 1
314 
315 /* has inet_aton */
316 #define HAVE_INET_ATON 1
317 
318 /* ipv6 support */
319 #define HAVE_INET_PTON 1
320 
321 /* inet sockets */
322 #define HAVE_INET_SOCKETS 1
323 
324 /* Define to 1 if you have the <inttypes.h> header file. */
325 #define HAVE_INTTYPES_H 1
326 
327 /* Define to 1 if you have the <ioctl.h> header file. */
328 /* #undef HAVE_IOCTL_H */
329 
330 /* Define to 1 if you have the <ip_compat.h> header file. */
331 /* #undef HAVE_IP_COMPAT_H */
332 
333 /* Define to 1 if you have the <ip_fil_compat.h> header file. */
334 /* #undef HAVE_IP_FIL_COMPAT_H */
335 
336 /* Define to 1 if you have the <ip_fil.h> header file. */
337 /* #undef HAVE_IP_FIL_H */
338 
339 /* Define to 1 if you have the <ip_nat.h> header file. */
340 /* #undef HAVE_IP_NAT_H */
341 
342 /* Define to 1 if you have the `malloc' library (-lmalloc). */
343 /* #undef HAVE_LIBMALLOC */
344 
345 /* Define to 1 if you have the <limits.h> header file. */
346 #define HAVE_LIMITS_H 1
347 
348 /* Define to 1 if you have the <linux/in6.h> header file. */
349 #define HAVE_LINUX_IN6_H 1
350 
351 /* Define to 1 if you have the <linux/netfilter_ipv4.h> header file. */
352 #define HAVE_LINUX_NETFILTER_IPV4_H 1
353 
354 /* Define to 1 if you have the <linux/netfilter_ipv6.h> header file. */
355 #define HAVE_LINUX_NETFILTER_IPV6_H 1
356 
357 /* reentrant localtime */
358 #define HAVE_LOCALTIME_R 1
359 
360 /* Define to 1 if you have the `lockf' function. */
361 #define HAVE_LOCKF 1
362 
363 /* have long longs */
364 #define HAVE_LONG_LONG 1
365 
366 /* Define to 1 if you have the `lstat' function. */
367 #define HAVE_LSTAT 1
368 
369 /* mach dybloader */
370 /* #undef HAVE_MACH_DYLD */
371 
372 /* Define to 1 if you have the <mach-o/dyld.h> header file. */
373 /* #undef HAVE_MACH_O_DYLD_H */
374 
375 /* Define to 1 if you have the `memmove' function. */
376 #define HAVE_MEMMOVE 1
377 
378 /* Define to 1 if you have the `mlock' function. */
379 #define HAVE_MLOCK 1
380 
381 /* Define to 1 if you have the `mlockall' function. */
382 #define HAVE_MLOCKALL 1
383 
384 /* support for plugin modules */
385 #define HAVE_MODULES 1
386 
387 /* IPF NAT support */
388 /* #undef HAVE_NAT_IPF */
389 
390 /* NetFilter NAT support */
391 #define HAVE_NAT_NETFILTER 1
392 
393 /* PF NAT support */
394 /* #undef HAVE_NAT_PF */
395 
396 /* Define to 1 if you have the <netinet6/in6.h> header file. */
397 /* #undef HAVE_NETINET6_IN6_H */
398 
399 /* Define to 1 if you have the <netinet/inet.h> header file. */
400 /* #undef HAVE_NETINET_INET_H */
401 
402 /* Define to 1 if you have the <netinet/in.h> header file. */
403 #define HAVE_NETINET_IN_H 1
404 
405 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
406 #define HAVE_NETINET_IN_SYSTM_H 1
407 
408 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
409 /* #undef HAVE_NETINET_IP_COMPAT_H */
410 
411 /* Define to 1 if you have the <netinet/ip_fil_compat.h> header file. */
412 /* #undef HAVE_NETINET_IP_FIL_COMPAT_H */
413 
414 /* Define to 1 if you have the <netinet/ip_fil.h> header file. */
415 /* #undef HAVE_NETINET_IP_FIL_H */
416 
417 /* Define to 1 if you have the <netinet/ip.h> header file. */
418 #define HAVE_NETINET_IP_H 1
419 
420 /* Define to 1 if you have the <netinet/ip_nat.h> header file. */
421 /* #undef HAVE_NETINET_IP_NAT_H */
422 
423 /* Define to 1 if you have the <net/if.h> header file. */
424 #define HAVE_NET_IF_H 1
425 
426 /* Define to 1 if you have the <net/pfvar.h> header file. */
427 /* #undef HAVE_NET_PFVAR_H */
428 
429 /* old style iostreams */
430 /* #undef HAVE_OLD_IOSTREAM */
431 
432 /* Define to 1 if you have the `poll' function. */
433 #define HAVE_POLL 1
434 
435 /* Define to 1 if you have the <poll.h> header file. */
436 #define HAVE_POLL_H 1
437 
438 /* Define to 1 if you have the `posix_memalign' function. */
439 #define HAVE_POSIX_MEMALIGN 1
440 
441 /* has pwrite */
442 #define HAVE_PREAD_PWRITE 1
443 
444 /* has stack size */
445 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
446 
447 /* has cancel */
448 #define HAVE_PTHREAD_CANCEL 1
449 
450 /* has non portable delay */
451 /* #undef HAVE_PTHREAD_DELAY_NP */
452 
453 /* posix thread header */
454 #define HAVE_PTHREAD_H 1
455 
456 /* has mach link */
457 /* #undef HAVE_PTHREAD_MACH_THREAD_NP */
458 
459 /* has non portable setkind */
460 /* #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP */
461 
462 /* has setttype */
463 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1
464 
465 /* has non portable settype */
466 /* #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP */
467 
468 /* has nanosleep */
469 #define HAVE_PTHREAD_NANOSLEEP 1
470 
471 /* Define to 1 if you have the <pthread_np.h> header file. */
472 /* #undef HAVE_PTHREAD_NP_H */
473 
474 /* has rwlock support */
475 #define HAVE_PTHREAD_RWLOCK 1
476 
477 /* has sched yield */
478 /* #undef HAVE_PTHREAD_SCHED_YIELD */
479 
480 /* has setcancel */
481 /* #undef HAVE_PTHREAD_SETCANCEL */
482 
483 /* has setcanceltype */
484 #define HAVE_PTHREAD_SETCANCELTYPE 1
485 
486 /* has suspend */
487 /* #undef HAVE_PTHREAD_SUSPEND */
488 
489 /* has yield */
490 #define HAVE_PTHREAD_YIELD 1
491 
492 /* has np yield */
493 /* #undef HAVE_PTHREAD_YIELD_NP */
494 
495 /* reentrant readdir */
496 #define HAVE_READDIR_R 1
497 
498 /* Define to 1 if you have the `realpath' function. */
499 #define HAVE_REALPATH 1
500 
501 /* Define to 1 if you have the `sched_getscheduler' function. */
502 #define HAVE_SCHED_GETSCHEDULER 1
503 
504 /* Define to 1 if you have the <sched.h> header file. */
505 #define HAVE_SCHED_H 1
506 
507 /* Define to 1 if you have the <select.h> header file. */
508 /* #undef HAVE_SELECT_H */
509 
510 /* Define to 1 if you have the <semaphore.h> header file. */
511 #define HAVE_SEMAPHORE_H 1
512 
513 /* Define to 1 if you have the `setegid' function. */
514 #define HAVE_SETEGID 1
515 
516 /* Define to 1 if you have the `setenv' function. */
517 #define HAVE_SETENV 1
518 
519 /* Define to 1 if you have the `setitimer' function. */
520 #define HAVE_SETITIMER 1
521 
522 /* Define to 1 if you have the `setpgrp' function. */
523 #define HAVE_SETPGRP 1
524 
525 /* have shload plugins */
526 /* #undef HAVE_SHL_LOAD */
527 
528 /* Define to 1 if you have the `sigaction' function. */
529 #define HAVE_SIGACTION 1
530 
531 /* Define to 1 if you have the `sigwait' function. */
532 #define HAVE_SIGWAIT 1
533 
534 /* 2 argument form */
535 #define HAVE_SIGWAIT2 1
536 
537 /* Define to 1 if you have the `snprintf' function. */
538 #define HAVE_SNPRINTF 1
539 
540 /* has socklen_t type */
541 #define HAVE_SOCKLEN_T 1
542 
543 /* Define to 1 if you have the <sstream> header file. */
544 #define HAVE_SSTREAM 1
545 
546 /* Define to 1 if you have the <ss.h> header file. */
547 /* #undef HAVE_SS_H */
548 
549 /* Define to 1 if you have the <stdint.h> header file. */
550 #define HAVE_STDINT_H 1
551 
552 /* Always define to 1, for backward compatibility. You can assume <stdlib.h>
553  exists. */
554 #define HAVE_STDLIB_H 1
555 
556 /* Define to 1 if you have the `strcasecmp' function. */
557 #define HAVE_STRCASECMP 1
558 
559 /* Define to 1 if you have the `strdup' function. */
560 #define HAVE_STRDUP 1
561 
562 /* reentrant strerror */
563 #define HAVE_STRERROR_R 1
564 
565 /* Define to 1 if you have the <strings.h> header file. */
566 #define HAVE_STRINGS_H 1
567 
568 /* Always define to 1, for backward compatibility. You can assume <string.h>
569  exists. */
570 #define HAVE_STRING_H 1
571 
572 /* reentrant strtok */
573 #define HAVE_STRTOK_R 1
574 
575 /* Define to 1 if you have the <syslog.h> header file. */
576 #define HAVE_SYSLOG_H 1
577 
578 /* Define to 1 if you have the <syslog.hposix_evlog.h> header file. */
579 /* #undef HAVE_SYSLOG_HPOSIX_EVLOG_H */
580 
581 /* Define to 1 if you have the <sys/atomic.h> header file. */
582 /* #undef HAVE_SYS_ATOMIC_H */
583 
584 /* Define to 1 if you have the <sys/atomic_op.h> header file. */
585 /* #undef HAVE_SYS_ATOMIC_OP_H */
586 
587 /* Define to 1 if you have the <sys/fcntl.h> header file. */
588 #define HAVE_SYS_FCNTL_H 1
589 
590 /* Define to 1 if you have the <sys/file.h> header file. */
591 #define HAVE_SYS_FILE_H 1
592 
593 /* Define to 1 if you have the <sys/ioctl.h> header file. */
594 #define HAVE_SYS_IOCTL_H 1
595 
596 /* solaris endian */
597 /* #undef HAVE_SYS_ISA_DEFS_H */
598 
599 /* Define to 1 if you have the <sys/libcsys.h> header file. */
600 /* #undef HAVE_SYS_LIBCSYS_H */
601 
602 /* Define to 1 if you have the <sys/param.h> header file. */
603 #define HAVE_SYS_PARAM_H 1
604 
605 /* Define to 1 if you have the <sys/poll.h> header file. */
606 #define HAVE_SYS_POLL_H 1
607 
608 /* Define to 1 if you have the <sys/sched.h> header file. */
609 /* #undef HAVE_SYS_SCHED_H */
610 
611 /* Define to 1 if you have the <sys/select.h> header file. */
612 #define HAVE_SYS_SELECT_H 1
613 
614 /* Define to 1 if you have the <sys/socket.h> header file. */
615 #define HAVE_SYS_SOCKET_H 1
616 
617 /* Define to 1 if you have the <sys/sockio.h> header file. */
618 /* #undef HAVE_SYS_SOCKIO_H */
619 
620 /* Define to 1 if you have the <sys/stat.h> header file. */
621 #define HAVE_SYS_STAT_H 1
622 
623 /* Define to 1 if you have the <sys/stream.h> header file. */
624 /* #undef HAVE_SYS_STREAM_H */
625 
626 /* Define to 1 if you have the <sys/time.h> header file. */
627 #define HAVE_SYS_TIME_H 1
628 
629 /* have 64 bit longs */
630 #define HAVE_SYS_TYPES_64 1
631 
632 /* Define to 1 if you have the <sys/types.h> header file. */
633 #define HAVE_SYS_TYPES_H 1
634 
635 /* have systypes */
636 #define HAVE_SYS_TYPES_STD 1
637 
638 /* Define to 1 if you have the <sys/un.h> header file. */
639 #define HAVE_SYS_UN_H 1
640 
641 /* Define to 1 if you have the <sys/wait.h> header file. */
642 #define HAVE_SYS_WAIT_H 1
643 
644 /* Define to 1 if you have the <thread.h> header file. */
645 /* #undef HAVE_THREAD_H */
646 
647 /* Define to 1 if you have the <unistd.h> header file. */
648 #define HAVE_UNISTD_H 1
649 
650 /* has unix domain sockets */
651 #define HAVE_UNIX_SOCKETS 1
652 
653 /* Define to 1 if you have the `wait4' function. */
654 #define HAVE_WAIT4 1
655 
656 /* Define to 1 if you have the `waitpid' function. */
657 #define HAVE_WAITPID 1
658 
659 /* Define to 1 if you have the <winsock2.h> header file. */
660 /* #undef HAVE_WINSOCK2_H */
661 
662 /* Define to 1 if you have the <winsock.h> header file. */
663 /* #undef HAVE_WINSOCK_H */
664 
665 /* has usable atomic functions */
666 /* #undef HAVE_WORKING_SYS_ATOMIC_H */
667 
668 /* have zlib header */
669 #define HAVE_ZLIB_H 1
670 
671 /* Define to the sub-directory where libtool stores uninstalled libraries. */
672 #define LT_OBJDIR ".libs/"
673 
674 /* Name of package */
675 #define CCXX_PACKAGE "commoncpp2"
676 
677 /* Define to the address where bug reports for this package should be sent. */
678 #define CCXX_PACKAGE_BUGREPORT ""
679 
680 /* Define to the full name of this package. */
681 #define CCXX_PACKAGE_NAME ""
682 
683 /* Define to the full name and version of this package. */
684 #define CCXX_PACKAGE_STRING ""
685 
686 /* Define to the one symbol short name of this package. */
687 #define CCXX_PACKAGE_TARNAME ""
688 
689 /* Define to the home page for this package. */
690 #define CCXX_PACKAGE_URL ""
691 
692 /* Define to the version of this package. */
693 #define CCXX_PACKAGE_CCXX_VERSION ""
694 
695 /* mutex type */
696 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
697 
698 /* Define as the return type of signal handlers (`int' or `void'). */
699 #define RETSIGTYPE void
700 
701 /* Always define to 1, for backward compatibility. You can assume the C90
702  standard headers exist. */
703 #define STDC_HEADERS 1
704 
705 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. This
706  macro is obsolete. */
707 #define TIME_WITH_SYS_TIME 1
708 
709 /* use monotonic */
710 #define USE_MONOTONIC_TIMER 1
711 
712 /* Enable extensions on AIX 3, Interix. */
713 #ifndef _ALL_SOURCE
714 # define _ALL_SOURCE 1
715 #endif
716 /* Enable general extensions on macOS. */
717 #ifndef _DARWIN_C_SOURCE
718 # define _DARWIN_C_SOURCE 1
719 #endif
720 /* Enable GNU extensions on systems that have them. */
721 #ifndef _GNU_SOURCE
722 # define _GNU_SOURCE 1
723 #endif
724 /* Enable threading extensions on Solaris. */
725 #ifndef _POSIX_PTHREAD_SEMANTICS
726 # define _POSIX_PTHREAD_SEMANTICS 1
727 #endif
728 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
729 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
730 # define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
731 #endif
732 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
733 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
734 # define __STDC_WANT_IEC_60559_BFP_EXT__ 1
735 #endif
736 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
737 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
738 # define __STDC_WANT_IEC_60559_DFP_EXT__ 1
739 #endif
740 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
741 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
742 # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
743 #endif
744 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
745 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
746 # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
747 #endif
748 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
749 #ifndef __STDC_WANT_LIB_EXT2__
750 # define __STDC_WANT_LIB_EXT2__ 1
751 #endif
752 /* Enable extensions specified by ISO/IEC 24747:2009. */
753 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
754 # define __STDC_WANT_MATH_SPEC_FUNCS__ 1
755 #endif
756 /* Enable extensions on HP NonStop. */
757 #ifndef _TANDEM_SOURCE
758 # define _TANDEM_SOURCE 1
759 #endif
760 /* Enable X/Open extensions if necessary. HP-UX 11.11 defines
761  mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of
762  whether compiling with -Ae or -D_HPUX_SOURCE=1. */
763 #ifndef _XOPEN_SOURCE
764 /* # undef _XOPEN_SOURCE */
765 #endif
766 /* Enable general extensions on Solaris. */
767 #ifndef __EXTENSIONS__
768 # define __EXTENSIONS__ 1
769 #endif
770 
771 
772 /* Version number of package */
773 #define CCXX_VERSION "1.8.1"
774 
775 /* bsd system using linuxthreads */
776 /* #undef WITH_LINUXTHREADS */
777 
778 /* darwin6 environment */
779 /* #undef _DARWIN6_ */
780 
781 /* Define to 1 if on MINIX. */
782 /* #undef _MINIX */
783 
784 /* Define to 1 to make NetBSD features available. MINIX 3 needs this. */
785 /* #undef _NETBSD_SOURCE */
786 
787 /* Define to 2 if the system does not provide POSIX.1 features except with
788  this defined. */
789 /* #undef _POSIX_1_SOURCE */
790 
791 /* Define to 1 if you need to in order for 'stat' and other things to work. */
792 /* #undef _POSIX_SOURCE */
793 
794 /* endian byte order */
795 /* #undef __BYTE_ORDER */
796 
797 /* Define to `__inline__' or `__inline' if that's what the C compiler
798  calls it, or to nothing if 'inline' is not supported under any name. */
799 #ifndef __cplusplus
800 /* #undef inline */
801 #endif
802 
803 /* Define to the equivalent of the C99 'restrict' keyword, or to
804  nothing if this is not supported. Do not define if restrict is
805  supported only directly. */
806 #define restrict
807 /* Work around a bug in Sun C++ 5.13: it does not support _Restrict or
808  __restrict__, even though the corresponding Sun C compiler ends up with
809  "#define restrict _Restrict" or "#define restrict __restrict__".
810  Perhaps some future version of Sun C++ will work with restrict;
811  if so, hopefully it defines __RESTRICT like Sun C does. */
812 #if defined __SUNPRO_CC && !defined __RESTRICT
813 # define _Restrict
814 # define __restrict__
815 #endif
816 
817 /* Define to empty if the keyword `volatile' does not work. Warning: valid
818  code using `volatile' can become incorrect without. Disable with care. */
819 /* #undef volatile */
820 
821 
822 
823 #ifndef HAVE_STRERROR_R
824 #define strerror_r(e, b, l) b = ::strerror(e)
825 #endif
826 
827 #ifndef HAVE_GETPWUID_R
828 #define getpwuid_r(uid, rec, buf, size, ptr) ptr = ::getpwuid(uid)
829 #define getpwnam_r(name, rec, buf, size, ptr) ptr = ::getpwnam(name)
830 #endif
831 
832 
833 
834 
835 #ifdef HAVE_POLL_H
836 #include <poll.h>
837 #else
838 #ifdef HAVE_SYS_POLL_H
839 #include <sys/poll.h>
840 #endif
841 #endif
842 
843 #if defined(HAVE_POLL) && defined(POLLRDNORM)
844 #define USE_POLL
845 #endif
846 
847 
848 
849 
850 
851 #ifdef HAVE_SYS_LIBCSYS_H
852 #include <sys/libcsys.h>
853 #endif
854 
855 #ifdef HAVE_WINSOCK2_H
856 #include <winsock2.h>
857 #else
858 #ifdef HAVE_WINSOCK_H
859 #include <winsock.h>
860 #else
861 #ifdef HAVE_SYS_SOCKET_H
862 #include <sys/socket.h>
863 #ifdef HAVE_SELECT_H
864 #include <select.h>
865 #else
866 #ifdef HAVE_SYS_SELECT_H
867 #include <sys/select.h>
868 #endif
869 #endif
870 
871 #ifdef HAVE_NETINET_IN_H
872 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
873 /* #undef _XOPEN_SOURCE_EXTENDED */
874 #endif
875 #include <netinet/in.h>
876 #ifdef __hpux
877 #define _XOPEN_SOURCE_EXTENDED
878 #endif
879 #endif
880 #ifdef HAVE_ARPA_INET_H
881 #include <arpa/inet.h>
882 #include <netdb.h>
883 #endif
884 
885 #ifdef HAVE_NETINET6_IN6_H
886 #include <netinet6/in6.h>
887 #endif
888 
889 #ifdef HAVE_LINIX_IN6_H
890 #include <linux/in6.h>
891 #endif
892 
893 #ifdef HAVE_NETINET_IN_SYSTM_H
894 #include <netinet/in_systm.h>
895 #endif
896 #ifdef HAVE_NETINET_IP_H
897 #include <netinet/ip.h>
898 #endif
899 #ifdef HAVE_SYS_UN_H
900 #include <sys/un.h>
901 #endif
902 #endif
903 #endif
904 #endif
905 
906 #ifndef HAVE_INET_ATON
907 #define inet_aton(cp, addr) (((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)
908 #endif
909 
910 #ifndef SUN_LEN
911 #ifdef SCM_RIGHTS
912 #define HAVE_UN_LEN
913 #endif
914 #ifdef __linux__
915 #define HAVE_UN_LEN
916 #endif
917 #ifdef HAVE_UN_LEN
918 #define SUN_LEN(ptr) sizeof(sockaddr_un.sun_len) + sizeof(sockaddr_un.sun_family) + sizeof(sockaddr_un.sun_path) + 1
919 #else
920 #define SUN_LEN(ptr) ((size_t)((struct sockaddr_un *)0)->sun_path) + strlen((ptr)->sun_path))
921 #endif
922 #endif
923 
924 #ifndef _OSF_SOURCE
925 #ifndef HAVE_SOCKLEN_T
926 #if defined(i386) && defined(__svr4__)
927 #define HAVE_SOCKLEN_U
928 #else
929 #if defined(__CYGWIN32__)
930 #define socklen_t int
931 #else
932 typedef int socklen_t;
933 #endif
934 #endif
935 
936 #ifdef HAVE_SOCKLEN_U
937 #if !defined(__CYGWIN32__) && !defined(__MINGW32__)
938 typedef unsigned socklen_t;
939 #else
940 typedef int socklen_t;
941 #endif
942 #endif
943 #endif
944 #endif
945 
946 #ifdef __hpux
947 #ifdef mutable
948 /* #undef mutable */
949 #endif
950 #endif
951 
952 #if defined(AF_INET6) && defined(HAVE_INET_PTON)
953 #define CCXX_IPV6
954 #endif
955 
956 #define CCXX_MULTIFAMILY_IP
957 
958 
959 
960 
961 #ifndef HAVE_BOOL_TYPE
962 typedef enum { true=1, false=0 } bool;
963 #endif
964 
965 
966 
967 
968 
969 #ifndef CCXX_EXCEPTIONS
970 /* disable HAVE_EXCEPTION */
971 #ifdef HAVE_EXCEPTION
972 #define HAVE_EXCEPTION 1
973 #endif
974 /* throw - replacement to throw an exception */
975 #define THROW(x) abort()
976 /* throw - replacement to declare an exception */
977 #define THROWS(x)
978 /* throw - for empty list */
979 #define NEW_THROWS
980 #define THROWS_EMPTY
981 /*
982  * work around dangeling if/else combinations:
983  */
984 #else
985 #define THROW(x) throw x
986 #define THROWS(x) throw(x)
987 #define NEW_THROWS throw()
988 #define THROWS_EMPTY throw()
989 #endif
990 
991 
992 
993 
994 #ifdef CCXX_NAMESPACES
995 #define USING(x) using namespace x;
996 #else
997 #define USING(x)
998 #endif
999 
1000 #ifdef __KCC
1001 #define KAI_NONSTD_IOSTREAM 1
1002 #endif
1003 
1004 
1005 
1006 
1007 #ifdef HAVE_SS_H
1008 #include <ss.h>
1009 #define COMMON_SECURE
1010 #endif
1011 
1012 #define COMMON_NAMESPACE ost
1013 #define NAMESPACE_COMMON namespace ost {
1014 #define END_NAMESPACE }
1015 
1016 #ifdef HAVE_VISIBILITY
1017 #define __EXPORT __attribute__ ((visibility("default")))
1018 #define __DLLRTL __attribute__ ((visibility("default")))
1019 #define __LOCAL __attribute__ ((visibility("hidden")))
1020 #else
1021 #define __EXPORT
1022 #define __DLLRTL
1023 #define __LOCAL
1024 #endif
1025 
1026 #ifndef ETC_PREFIX
1027 #ifdef WIN32
1028 #define ETC_PREFIX "/etc/"
1029 #endif
1030 
1031 #ifndef ETC_PREFIX
1032 #define ETC_PREFIX "/etc/"
1033 #endif
1034 #endif
1035 
1036 #endif
1037 
1038 
1039 
1040 
1041 
1042 #ifndef HAVE_FCNTL_H
1043 #ifdef HAVE_SYS_FCNTL_H
1044 #include <sys/fcntl.h>
1045 #endif
1046 #else
1047 #include <fcntl.h>
1048 #ifndef O_NDELAY
1049 #ifdef HAVE_SYS_FCNTL_H
1050 #include <sys/fcntl.h>
1051 #endif
1052 #endif
1053 #endif
1054 
1055 
1056 
1057 #if defined(HAVE_ENDIAN_H)
1058  #include <endian.h>
1059 #elif defined(HAVE_SYS_ISA_DEFS_H)
1060  #include <sys/isa_defs.h>
1061  #ifdef _LITTLE_ENDIAN
1062  #define __BYTE_ORDER 1234
1063  #else
1064  #define __BYTE_ORDER 4321
1065  #endif
1066  #if _ALIGNMENT_REQUIRED > 0
1067  #define __BYTE_ALIGNMENT _MAX_ALIGNMENT
1068  #else
1069  #define __BYTE_ALIGNMENT 1
1070  #endif
1071 #endif
1072 
1073 #ifndef __LITTLE_ENDIAN
1074 #define __LITTLE_ENDIAN 1234
1075 #define __BIG_ENDIAN 4321
1076 #endif
1077 
1078 #ifndef __BYTE_ORDER
1079 #define __BYTE_ORDER 1234
1080 #endif
1081 
1082 #ifndef __BYTE_ALIGNMENT
1083 #if defined(SPARC) || defined(sparc)
1084 #if defined(__arch64__) || defined(__sparcv9)
1085 #define __BYTE_ALIGNMENT 8
1086 #else
1087 #define __BYTE_ALIGNMENT 4
1088 #endif
1089 #endif
1090 #endif
1091 
1092 #ifndef __BYTE_ALIGNMENT
1093 #define __BYTE_ALIGNMENT 1
1094 #endif
1095 
1096 
1097 
1098 
1099 #ifdef HAVE_SIGACTION
1100 #ifdef HAVE_BSD_SIGNAL_H
1101 /* #undef HAVE_BSD_SIGNAL_H */
1102 #endif
1103 #endif
1104 
1105 /* Cause problem with Solaris... and perhaps Digital Unix?
1106  However, the autoconf test in ost_signal defines _POSIX_PTHREAD_SEMANTICS
1107  when trying to compile sigwait2. */
1108 
1109 #ifdef HAVE_SIGWAIT2
1110 #ifndef _POSIX_PTHREAD_SEMANTICS
1111 #define _POSIX_PTHREAD_SEMANTICS 1
1112 #endif
1113 #endif
1114 
1115 #ifdef HAVE_BSD_SIGNAL_H
1116 #include <bsd/signal.h>
1117 #else
1118 #include <signal.h>
1119 #endif
1120 #ifndef SA_ONESHOT
1121 #define SA_ONESHOT SA_RESETHAND
1122 #endif
1123 
1124 
1125 
1126 
1127 #include <cstring>
1128 #ifdef HAVE_STRINGS_H
1129 #ifndef _AIX
1130 #include <strings.h>
1131 #endif
1132 #endif
1133 
1134 #ifdef HAVE_ALLOCA_H
1135 #include <alloca.h>
1136 #endif
1137 
1138 #ifndef HAVE_SNPRINTF
1139 #if defined(WIN32) && defined(_MSC_VER) && _MSC_VER < 1400
1140 #define snprintf _snprintf
1141 #define vsnprintf _vsnprintf
1142 #endif
1143 #endif
1144 
1145 #ifdef HAVE_STRCASECMP
1146 #ifndef stricmp
1147 #define stricmp(x,y) strcasecmp(x,y)
1148 #endif
1149 #ifndef strnicmp
1150 #define strnicmp(x,y,n) strncasecmp(x,y,n)
1151 #endif
1152 #ifndef stristr
1153 #define stristr(x, y) strcasestr(x,y)
1154 #endif
1155 #endif
1156 
1157 
1158 
1159 
1160 #ifdef HAVE_THREAD_H
1161 #include "/usr/include/thread.h"
1162 #if defined(i386) && defined(__svr4__) && !defined(__sun)
1163 #define _THR_UNIXWARE
1164 #endif
1165 #if defined(__SVR4) && defined(__sun)
1166 #define _THR_SUNOS5
1167 #else
1168 #if defined(__SVR4__) && defined(__SUN__)
1169 #define _THR_SUNOS5
1170 #endif
1171 #endif
1172 #endif
1173 
1174 #ifdef HAVE_WORKING_SYS_ATOMIC_H
1175 #include <sys/atomic.h>
1176 #define HAVE_ATOMIC
1177 #elif defined(HAVE_ATOMIC_AIX)
1178 #include <sys/atomic_op.h>
1179 #ifndef HAVE_ATOMIC
1180 #define HAVE_ATOMIC
1181 #endif
1182 #endif
1183 
1184 #if defined(__cplusplus)
1185 #if defined(HAVE_GCC_BITS_ATOMIC) || defined(HAVE_GCC_CXX_BITS_ATOMIC)
1186 #include <bits/atomicity.h>
1187 #define HAVE_ATOMIC
1188 #endif
1189 #endif
1190 
1191 #if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REENTRANT) )
1192 
1193 #ifdef __QNX__
1194 #define __EXT_QNX
1195 #endif
1196 
1197 #include <pthread.h>
1198 
1199 #ifdef HAVE_PTHREAD_NP_H
1200 #include <pthread_np.h>
1201 #endif
1202 
1203 #ifdef HAVE_SEMAPHORE_H
1204 #include <semaphore.h>
1205 #endif
1206 #ifdef _POSIX_PRIORITY_SCHEDULING
1207 #ifdef HAVE_SCHED_H
1208 #include <sched.h>
1209 #else
1210 #ifdef HAVE_SYS_SCHED_H
1211 #include <sys/sched.h>
1212 #endif
1213 #endif
1214 #endif
1215 
1216 #define __PTHREAD_H__
1217 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
1218 #ifdef MUTEX_TYPE_COUNTING_FAST
1219 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
1220 #endif
1221 #endif
1222 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
1223 #ifdef PTHREAD_MUTEX_RECURSIVE
1224 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
1225 #endif
1226 #endif
1227 #ifndef HAVE_PTHREAD_MUTEXATTR_SETTYPE
1228 #if HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
1229 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
1230 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
1231 #endif
1232 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_getkind_np(x, y)
1233 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_setkind_np(x, y)
1234 #endif
1235 #if HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP
1236 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
1237 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
1238 #endif
1239 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_settype_np(x, y)
1240 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_gettype_np(x, y)
1241 #endif
1242 #endif
1243 
1244 #ifdef HAVE_PTHREAD_MACH_THREAD_NP
1245 #define _THR_MACH
1246 #endif
1247 
1248 #ifndef HAVE_PTHREAD_YIELD
1249 #ifdef HAVE_PTHREAD_YIELD_NP
1250 #define pthread_yield() pthread_yield_np()
1251 #define HAVE_PTHREAD_YIELD 1
1252 #endif
1253 #endif
1254 
1255 #ifndef HAVE_PTHREAD_YIELD
1256 #ifdef HAVE_PTHREAD_SCHED_YIELD
1257 #define pthread_yield() sched_yield()
1258 #define HAVE_PTHREAD_YIELD 1
1259 #endif
1260 #endif
1261 
1262 #ifndef HAVE_PTHREAD_DELAY
1263 #ifdef HAVE_PTHREAD_DELAY_NP
1264 #define HAVE_PTHREAD_DELAY
1265 #define pthread_delay(x) pthread_delay_np(x)
1266 #endif
1267 #if defined(HAVE_PTHREAD_NANOSLEEP)
1268 #ifndef HAVE_PTHREAD_DELAY
1269 #define HAVE_PTHREAD_DELAY
1270 #ifdef __FreeBSD__
1271 #ifdef __cplusplus
1272 extern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
1273 #endif
1274 #endif
1275 #define pthread_delay(x) nanosleep(x, NULL)
1276 #endif
1277 #endif
1278 #endif
1279 
1280 #ifdef HAVE_PTHREAD_ATTR_SETSTACK
1281 #ifndef PTHREAD_STACK_MIN
1282 #define PTHREAD_STACK_MIN 32768
1283 #endif
1284 #endif
1285 
1286 #ifndef HAVE_PTHREAD_CANCEL
1287 #ifdef SIGCANCEL
1288 #define CCXX_SIG_THREAD_CANCEL SIGCANCEL
1289 #else
1290 #define CCXX_SIG_THREAD_CANCEL SIGQUIT
1291 #endif
1292 #define pthread_cancel(x) pthread_kill(x, CCXX_SIG_THREAD_CANCEL)
1293 #define pthread_setcanceltype(x, y)
1294 #define pthread_setcancelstate(x, y)
1295 #endif
1296 
1297 #ifndef HAVE_PTHREAD_SETCANCELTYPE
1298 #ifdef HAVE_PTHREAD_SETCANCEL
1299 enum
1300 { PTHREAD_CANCEL_ASYNCHRONOUS = CANCEL_ON,
1301  PTHREAD_CANCEL_DEFERRED = CANCEL_OFF};
1302 enum
1303 { PTHREAD_CANCEL_ENABLE = CANCEL_ON,
1304  PTHREAD_CANCEL_DISABLE = CANCEL_OFF};
1305 #define pthread_setcancelstate(x, y) \
1306  (y == NULL) ? pthread_setcancel(x) : *y = pthread_setcancel
1307 #define pthread_setcanceltype(x, y) \
1308  (y == NULL) ? pthread_setasynccancel(x) | *y = pthread_setasynccancel(x)
1309 #else
1310 #define pthread_setcanceltype(x, y)
1311 #define pthread_setcancelstate(x, y)
1312 #endif
1313 #endif
1314 
1315 #ifdef _AIX
1316 #ifdef HAVE_PTHREAD_SUSPEND
1317 /* #undef HAVE_PTHREAD_SUSPEND */
1318 #endif
1319 #endif
1320 
1321 #endif
1322 
1323 
1324 
uint32
u_int32_t uint32
Definition: config.h:147
uint8
u_int8_t uint8
Definition: config.h:143
int16
int16_t int16
Definition: config.h:144
int64
int64_t int64
Definition: config.h:150
int32
int32_t int32
Definition: config.h:146
uint64
u_int64_t uint64
Definition: config.h:151
int8
int8_t int8
Definition: config.h:142
uint16
u_int16_t uint16
Definition: config.h:145