~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to ace/config-qnx-rtp.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// config-qnx-rtp.h,v 1.11 2003/12/22 22:50:34 shuston Exp
2
 
 
3
 
// The following configuration file is designed to work for QNX RTP
4
 
// GNU C++ and the POSIX (pthread) threads package. You can get QNX
5
 
// RTP at http://get.qnx.com
6
 
 
7
 
#ifndef ACE_CONFIG_H
8
 
#define ACE_CONFIG_H
9
 
#include /**/ "ace/pre.h"
10
 
 
11
 
#define _POSIX_C_SOURCE 199506
12
 
#define _QNX_SOURCE
13
 
 
14
 
// These constants are in i386-nto/include/limits.h, but egcs
15
 
// picks up its own limits.h instead:
16
 
#define _POSIX_NAME_MAX     14      /*  Max bytes in a filename             */
17
 
#define _POSIX_PATH_MAX     256     /*  Num. bytes in pathname (excl. NULL) */
18
 
 
19
 
// gcc can do inline
20
 
#if __GNUC__ > 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ >= 8)
21
 
# if !defined (__ACE_INLINE__)
22
 
#   define __ACE_INLINE__
23
 
# endif /* ! __ACE_INLINE__ */
24
 
#endif
25
 
 
26
 
#if defined(__OPTIMIZE__)
27
 
# if defined(__X86__)
28
 
    // string.h can't be used by ACE with __OPTIMIZE__.
29
 
#   undef __OPTIMIZE__
30
 
#   include <string.h>
31
 
#   define __OPTIMIZE__
32
 
# endif /* __X86__ */
33
 
#endif /* __OPTIMIZE__ */
34
 
 
35
 
#include "ace/config-g++-common.h"
36
 
 
37
 
// The following defines the Neutrino compiler.
38
 
// gcc should know to call g++ as necessary
39
 
#ifdef __GNUC__
40
 
# define ACE_CC_NAME "gcc"
41
 
#else
42
 
# define ACE_CC_NAME "QNX-RTP compiler ??"
43
 
#endif
44
 
 
45
 
// /usr/nto/include/float.h defines
46
 
//  FLT_MAX_EXP 127
47
 
//  DBL_MAX_EXP 1023
48
 
//  ace expects 128 & 1024 respectively
49
 
//  to set the following macros in ace/Basic_Types.h
50
 
//  These macros are:
51
 
#define ACE_SIZEOF_DOUBLE   8
52
 
#define ACE_SIZEOF_FLOAT    4
53
 
 
54
 
/////////////////////////////////////////////////////////////////
55
 
//    Definition of the features that are available.
56
 
//
57
 
//                ACE_HAS Section
58
 
/////////////////////////////////////////////////////////////////
59
 
 
60
 
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
61
 
#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
62
 
// Although ACE does have alloca() on this compiler/platform combination, it is
63
 
// disabled by default since it can be dangerous.  Uncomment the following line
64
 
// if you ACE to use it.
65
 
//#define ACE_HAS_ALLOCA
66
 
#define ACE_HAS_ALLOCA_H
67
 
#define ACE_HAS_AUTOMATIC_INIT_FINI
68
 
#define ACE_HAS_CLOCK_GETTIME
69
 
#define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
70
 
#define ACE_HAS_DIRENT
71
 
#define ACE_HAS_GETPAGESIZE
72
 
// Enable gperf, this is a hosted configuration.
73
 
#define ACE_HAS_GPERF
74
 
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
75
 
//#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
76
 
#define ACE_HAS_INLINED_OSCALLS
77
 
#define ACE_HAS_IP_MULTICAST
78
 
#define ACE_HAS_MSG
79
 
#define ACE_HAS_MT_SAFE_MKTIME
80
 
#define ACE_HAS_MUTEX_TIMEOUTS
81
 
#define ACE_HAS_NONCONST_SELECT_TIMEVAL
82
 
#define ACE_HAS_POSIX_SEM
83
 
#define ACE_HAS_POSIX_TIME
84
 
#define ACE_HAS_PTHREADS
85
 
#define ACE_HAS_PTHREADS_STD
86
 
#define ACE_HAS_PTHREAD_SIGMASK
87
 
#define ACE_HAS_P_READ_WRITE
88
 
#define ACE_HAS_REENTRANT_FUNCTIONS
89
 
#define ACE_HAS_SELECT_H
90
 
#define ACE_HAS_SIGINFO_T
91
 
#define ACE_HAS_SIGISMEMBER_BUG
92
 
#define ACE_HAS_SIGWAIT
93
 
#define ACE_HAS_SIG_ATOMIC_T
94
 
#define ACE_HAS_SIG_MACROS
95
 
#define ACE_HAS_SIN_LEN
96
 
// #define ACE_HAS_SIZET_SOCKET_LEN
97
 
#define ACE_HAS_SOCKLEN_T
98
 
#define ACE_HAS_SSIZE_T
99
 
#define ACE_HAS_STRERROR
100
 
#define ACE_HAS_STRINGS
101
 
#define ACE_HAS_SVR4_GETTIMEOFDAY
102
 
#define ACE_HAS_TERM_IOCTLS
103
 
#define ACE_HAS_THREADS
104
 
#define ACE_HAS_THREAD_SPECIFIC_STORAGE
105
 
#define ACE_HAS_THR_C_DEST
106
 
#define ACE_HAS_THR_C_FUNC
107
 
#define ACE_HAS_TIMEZONE_GETTIMEOFDAY
108
 
#define ACE_HAS_UALARM
109
 
#define ACE_HAS_UCONTEXT_T
110
 
#define ACE_HAS_VOIDPTR_MMAP
111
 
#define ACE_HAS_VOIDPTR_SOCKOPT
112
 
 
113
 
/////////////////////////////////////////////////////////////////
114
 
//    Definition of the features that are not available.
115
 
//
116
 
//                ACE_LACKS Section
117
 
/////////////////////////////////////////////////////////////////
118
 
#define ACE_LACKS_CMSG_DATA_MEMBER
119
 
#define ACE_LACKS_CONDATTR_PSHARED
120
 
#define ACE_LACKS_CONST_TIMESPEC_PTR
121
 
#define ACE_LACKS_LINEBUFFERED_STREAMBUF
122
 
#define ACE_LACKS_MADVISE
123
 
#define ACE_LACKS_MSGBUF_T
124
 
#define ACE_LACKS_MUTEXATTR_PSHARED
125
 
#define ACE_LACKS_NAMED_POSIX_SEM
126
 
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
127
 
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
128
 
#define ACE_LACKS_PTHREAD_THR_SIGSETMASK
129
 
#define ACE_LACKS_RPC_H
130
 
#define ACE_LACKS_RTTI
131
 
#define ACE_LACKS_RWLOCK_T
132
 
#define ACE_LACKS_SBRK
133
 
#define ACE_LACKS_SEEKDIR
134
 
#define ACE_LACKS_SOCKET_BUFSIZ
135
 
#define ACE_LACKS_SOCKETPAIR     // Even if the QNX RTP docs says that socket pair are
136
 
                                 // available, there is actually no implementation of
137
 
                                 // soket-pairs.
138
 
#define ACE_LACKS_STREAM_MODULES
139
 
#define ACE_LACKS_STRRECVFD
140
 
#define ACE_LACKS_SYSCALL
141
 
#define ACE_LACKS_SYSTIME_H
142
 
#define ACE_LACKS_SYSV_MSG_H
143
 
#define ACE_LACKS_SYSV_SHMEM
144
 
//#define ACE_LACKS_TCP_NODELAY  // Based on the  QNX RTP documentation, this option seems to
145
 
                                 // to be supported.
146
 
#define ACE_LACKS_TELLDIR
147
 
#define ACE_LACKS_TIMESPEC_T
148
 
#define ACE_LACKS_TRUNCATE
149
 
#define ACE_LACKS_T_ERRNO
150
 
#define ACE_LACKS_UALARM_PROTOTYPE
151
 
#define ACE_LACKS_UCONTEXT_H
152
 
#define ACE_LACKS_UNIX_DOMAIN_SOCKETS
153
 
#define ACE_LACKS_U_LONGLONG_T
154
 
 
155
 
#define ACE_LACKS_RLIMIT         // QNX rlimit syscalls don't work properly with ACE.
156
 
 
157
 
#define ACE_MT_SAFE 1
158
 
#define ACE_NEEDS_FUNC_DEFINITIONS
159
 
#define ACE_NEEDS_HUGE_THREAD_STACKSIZE 64000
160
 
#define ACE_TEMPLATES_REQUIRE_SOURCE
161
 
#define ACE_THR_PRI_FIFO_DEF 10
162
 
#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
163
 
#define ACE_HAS_SIGTIMEDWAIT
164
 
#define ACE_HAS_SIGSUSPEND
165
 
 
166
 
#define ACE_HAS_BROKEN_PREALLOCATED_OBJECTS_AFTER_FORK 1
167
 
 
168
 
#define ACE_SIZEOF_WCHAR 4
169
 
 
170
 
// Not really, but the prototype returns wchar_t instead of wchar_t *
171
 
#define ACE_LACKS_WCSSTR
172
 
 
173
 
// No prototypes
174
 
#define ACE_LACKS_ITOW
175
 
#define ACE_LACKS_WCSICMP
176
 
#define ACE_LACKS_WCSNICMP
177
 
#define ACE_LACKS_WCSDUP
178
 
 
179
 
// And these have prototypes but no implementation
180
 
#define ACE_LACKS_WCSLEN
181
 
#define ACE_LACKS_WCSNCMP
182
 
#define ACE_LACKS_WCSCPY
183
 
#define ACE_LACKS_WCSNCPY
184
 
#define ACE_LACKS_TOWLOWER
185
 
#define ACE_LACKS_WCSCMP
186
 
#define ACE_LACKS_WCSCAT
187
 
#define ACE_LACKS_WCSNCAT
188
 
#define ACE_LACKS_WCSSPN
189
 
#define ACE_LACKS_WCSCHR
190
 
#define ACE_LACKS_WCSPBRK
191
 
#define ACE_LACKS_WCSRCHR
192
 
 
193
 
#if !defined (ACE_NTRACE)
194
 
# define ACE_NTRACE 1
195
 
#endif /* ACE_NTRACE */
196
 
 
197
 
#define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
198
 
#define ACE_LACKS_ACE_IOSTREAM
199
 
 
200
 
#include /**/ "ace/post.h"
201
 
#endif /* ACE_CONFIG_H */