root/src/noit_config.h.in

Revision 9bfe1c2d8a658e59c3518c84d0ecb0e22117e3fc, 6.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 2 months ago)

to help with debugging expose system info over capabilities

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2009, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __NOIT_CONFIG_H
34 #define __NOIT_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef DTRACE_ENABLED
40 #ifndef DTRACE_ENABLED
41 #define DTRACE_PROBES_DISABLED 1
42 #endif
43 #undef MODULEEXT
44 #undef MODULES_DIR
45 #undef DEFAULT_EVENTER
46 #undef ETC_DIR
47
48 #undef HAVE_FCNTL_H
49 #undef HAVE_UNISTD_H
50 #undef HAVE_SYS_TYPES_H
51 #undef HAVE_SYS_WAIT_H
52 #undef HAVE_TERM_H
53 #undef HAVE_TERMIO_H
54 #undef HAVE_TERMIOS_H
55 #undef TPUTS_TAKES_CHAR
56 #undef TGOTO_TAKES_CHAR
57 #undef HAVE_SYS_IOCTL_COMPAT_H
58 #undef HAVE_SYS_IOCTL_H
59 #undef HAVE_SYS_FILIO_H
60 #undef HAVE_STROPTS_H
61 #undef HAVE_SYS_STREAM_H
62 #undef HAVE_UTIL_H
63 #undef HAVE_BSD_LIBUTIL_H
64 #undef HAVE_LIBUTIL_H
65 #undef HAVE_CURSES_H
66 #undef HAVE_DIRENT_H
67 #undef HAVE_PWD_H
68 #undef HAVE_PTY_H
69 #undef HAVE_ERRNO_H
70 #undef HAVE_STRING_H
71 #undef HAVE_STDLIB_H
72 #undef HAVE_SYS_PARAM_H
73 #undef HAVE_SEMAPHORE_H
74 #undef HAVE_ALLOCA_H
75 #undef HAVE_TIME_H
76 #undef HAVE_SYS_STAT_H
77 #undef HAVE_SYS_RESOURCE_H
78 #undef HAVE_SYS_CDEFS_H
79 #undef HAVE_LIBKERN_OSATOMIC_H
80 #undef HAVE_NETINET_IN_SYSTM_H
81 #undef HAVE_POSIX_READDIR_R
82 #undef HAVE_MYSQL_H
83 #undef HAVE_MYSQL_MYSQL_H
84 #undef HAVE_INT64_T
85 #undef HAVE_INTXX_T
86 #undef HAVE_LONG_LONG_INT
87 #undef HAVE_UINTXX_T
88 #undef HAVE_U_INT
89 #undef HAVE_U_INT64_T
90 #undef HAVE_U_INTXX_T
91 #undef HAVE_SIG_T
92 #undef HAVE_UUID_UNPARSE_LOWER
93 #define IFS_CH '/'
94 #undef WORKING_SEM_INIT
95 #undef HAVE_GCRYPT_H
96
97 #undef HAVE_GETPWNAM_R
98 #undef HAVE_GETPWNAM_R_POSIX
99 #undef HAVE_GETGRNAM_R
100 #undef HAVE_GETGRNAM_R_POSIX
101
102 #ifdef HAVE_STRING_H
103 #include <string.h>
104 #endif
105 #ifdef HAVE_STDLIB_H
106 #include <stdlib.h>
107 #endif
108 #ifdef HAVE_SYS_PARAM_H
109 #include <sys/param.h>
110 #endif
111 #ifdef HAVE_SYS_TYPES_H
112 #include <sys/types.h>
113 #endif
114 #ifdef HAVE_SYS_STAT_H
115 #include <sys/stat.h>
116 #endif
117 #ifdef HAVE_SYS_RESOURCE_H
118 #include <sys/resource.h>
119 #endif
120 #ifdef HAVE_ALLOCA_H
121 #include <alloca.h>
122 #endif
123
124 #undef HAVE_ISSETUGID
125 #undef HAVE_STRLCPY
126 #undef HAVE_STRNSTRN
127 #undef HAVE_OPENPTY
128 #undef HAVE_DECL_OPENPTY
129 #undef HAVE_INET_PTON
130 #undef HAVE_INET_NTOP
131 #undef HAVE_GETOPT
132 #undef HAVE_POLL
133 #undef HAVE_VASPRINTF
134
135 /* Kernel kqueue() support */
136 #undef HAVE_KQUEUE
137 /* Kernel epoll_create() support */
138 #undef HAVE_EPOLL
139 /* Kernel port_create() support */
140 #undef HAVE_PORTS
141
142 /* The number of bytes in a char.  */
143 #undef SIZEOF_CHAR
144
145 /* The number of bytes in a int.  */
146 #undef SIZEOF_INT
147
148 /* The number of bytes in a size_t.  */
149 #undef SIZEOF_SIZE_T
150
151
152 /* The number of bytes in a long int.  */
153 #undef SIZEOF_LONG_INT
154
155 /* The number of bytes in a long long int.  */
156 #undef SIZEOF_LONG_LONG_INT
157
158 /* The number of bytes in a short int.  */
159 #undef SIZEOF_SHORT_INT
160
161 /* The number of bytes in a void *.  */
162 #undef SIZEOF_VOID_P
163
164 /* The number of bytes in a void * (workaround for OpenBSD). */
165 #undef SIZEOF_VOID__
166 #if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__)
167 #  define SIZEOF_VOID_P SIZEOF_VOID__
168 #endif
169
170 #ifndef HAVE_U_INT
171 #define HAVE_U_INT
172 typedef unsigned int u_int;
173 #endif
174
175 #undef HAVE_INTXX_T
176 #ifndef HAVE_INTXX_T
177 #if (SIZEOF_CHAR == 1)
178 typedef char int8_t;
179 #else
180 #error "8 bit int type not found."
181 #endif
182 #if (SIZEOF_SHORT_INT == 2)
183 typedef short int int16_t;
184 #else
185 #ifdef _CRAY
186 typedef long int16_t;
187 #else
188 #warning "16 bit int type not found."
189 #endif /* _CRAY */
190 #endif
191 #if (SIZEOF_INT == 4)
192 typedef int int32_t;
193 #else
194 #ifdef _CRAY
195 typedef long int32_t;
196 #else
197 #error "32 bit int type not found."
198 #endif /* _CRAY */
199 #endif
200 #endif
201
202 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
203 #ifndef HAVE_U_INTXX_T
204 #ifdef HAVE_UINTXX_T
205 typedef uint8_t u_int8_t;
206 typedef uint16_t u_int16_t;
207 typedef uint32_t u_int32_t;
208 #define HAVE_U_INTXX_T 1
209 #else
210 #if (SIZEOF_CHAR == 1)
211 typedef unsigned char u_int8_t;
212 #else
213 #error "8 bit int type not found."
214 #endif
215 #if (SIZEOF_SHORT_INT == 2)
216 typedef unsigned short int u_int16_t;
217 #else
218 #ifdef _CRAY
219 typedef unsigned long u_int16_t;
220 #else
221 #warning "16 bit int type not found."
222 #endif
223 #endif
224 #if (SIZEOF_INT == 4)
225 typedef unsigned int u_int32_t;
226 #else
227 #ifdef _CRAY
228 typedef unsigned long u_int32_t;
229 #else
230 #error "32 bit int type not found."
231 #endif
232 #endif
233 #endif
234 #endif
235
236 /* 64-bit types */
237 #ifndef HAVE_INT64_T
238 #if (SIZEOF_LONG_INT == 8)
239 typedef long int int64_t;
240 #define HAVE_INT64_T 1
241 #else
242 #if (SIZEOF_LONG_LONG_INT == 8)
243 typedef long long int int64_t;
244 #define HAVE_INT64_T 1
245 #define HAVE_LONG_LONG_INT
246 #endif
247 #endif
248 #endif
249 #ifndef HAVE_U_INT64_T
250 #if (SIZEOF_LONG_INT == 8)
251 typedef unsigned long int u_int64_t;
252 #define HAVE_U_INT64_T 1
253 #else
254 #if (SIZEOF_LONG_LONG_INT == 8)
255 typedef unsigned long long int u_int64_t;
256 #define HAVE_U_INT64_T 1
257 #endif
258 #endif
259 #endif
260
261 /* BIND, Kerberos and Berkeley DB use __BIT_TYPES_DEFINED__ to protect
262  * against multiple redefinitions of these types (u_int{8,16,32,64}_t)
263  * and so shall we.
264  */
265 #ifndef __BIT_TYPES_DEFINED__
266 #define __BIT_TYPES_DEFINED__
267 #endif
268
269 #if (SIZEOF_VOID_P == 8)
270 typedef u_int64_t vpsized_uint;
271 typedef int64_t vpsized_int;
272 #elif (SIZEOF_VOID_P == 4)
273 typedef u_int32_t vpsized_uint;
274 typedef int32_t vpsized_int;
275 #else
276 #error Unsupported size of void ptr
277 #endif
278
279 #ifndef PATH_MAX
280 #define PATH_MAX MAXPATHLEN
281 #endif
282
283 typedef enum { noit_false = 0, noit_true } noit_boolean;
284
285 #undef UNAME_V
286 #undef UNAME_R
287 #undef UNAME_S
288 #undef UNAME_M
289 #undef UNAME_N
290 #undef UNAME_P
291
292 #endif
Note: See TracBrowser for help on using the browser.