root/src/noit_config.h.in

Revision 60f61acb95b034095cb82701e6786a3139e97cb6, 7.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 1 month ago)

Support Illumos privileges.

  • 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 CAP_SUPPORTED
40 #undef CAP_PLATFORM
41
42 #undef DTRACE_ENABLED
43 #ifndef DTRACE_ENABLED
44 #define DTRACE_PROBES_DISABLED 1
45 #endif
46 #undef MODULEEXT
47 #undef MODULES_DIR
48 #undef DEFAULT_EVENTER
49 #undef ETC_DIR
50
51 #undef HAVE_FCNTL_H
52 #undef HAVE_UNISTD_H
53 #undef HAVE_SYS_TYPES_H
54 #undef HAVE_SYS_WAIT_H
55 #undef HAVE_TERM_H
56 #undef HAVE_TERMIO_H
57 #undef HAVE_TERMIOS_H
58 #undef TPUTS_TAKES_CHAR
59 #undef TGOTO_TAKES_CHAR
60 #undef HAVE_SYS_IOCTL_COMPAT_H
61 #undef HAVE_SYS_IOCTL_H
62 #undef HAVE_SYS_FILIO_H
63 #undef HAVE_STROPTS_H
64 #undef HAVE_SYS_STREAM_H
65 #undef HAVE_PRIV_H
66 #undef HAVE_UTIL_H
67 #undef HAVE_BSD_LIBUTIL_H
68 #undef HAVE_LIBUTIL_H
69 #undef HAVE_CURSES_H
70 #undef HAVE_DIRENT_H
71 #undef HAVE_PWD_H
72 #undef HAVE_PTY_H
73 #undef HAVE_ERRNO_H
74 #undef HAVE_STRING_H
75 #undef HAVE_STDLIB_H
76 #undef HAVE_SYS_PARAM_H
77 #undef HAVE_SEMAPHORE_H
78 #undef HAVE_ALLOCA_H
79 #undef HAVE_TIME_H
80 #undef HAVE_SYS_STAT_H
81 #undef HAVE_SYS_RESOURCE_H
82 #undef HAVE_SYS_CDEFS_H
83 #undef HAVE_LIBKERN_OSATOMIC_H
84 #undef HAVE_NETINET_IN_SYSTM_H
85 #undef HAVE_POSIX_READDIR_R
86 #undef HAVE_MYSQL_H
87 #undef HAVE_MYSQL_MYSQL_H
88 #undef HAVE_INT64_T
89 #undef HAVE_INTXX_T
90 #undef HAVE_LONG_LONG_INT
91 #undef HAVE_UINTXX_T
92 #undef HAVE_U_INT
93 #undef HAVE_U_INT64_T
94 #undef HAVE_U_INTXX_T
95 #undef HAVE_SIG_T
96 #undef HAVE_UUID_UNPARSE_LOWER
97 #define IFS_CH '/'
98 #undef WORKING_SEM_INIT
99 #undef HAVE_GCRYPT_H
100
101 #undef HAVE_FDWALK
102 #undef HAVE_GETPWNAM_R
103 #undef HAVE_GETPWNAM_R_POSIX
104 #undef HAVE_GETGRNAM_R
105 #undef HAVE_GETGRNAM_R_POSIX
106
107 #ifdef HAVE_STRING_H
108 #include <string.h>
109 #endif
110 #ifdef HAVE_STDLIB_H
111 #include <stdlib.h>
112 #endif
113 #ifdef HAVE_SYS_PARAM_H
114 #include <sys/param.h>
115 #endif
116 #ifdef HAVE_SYS_TYPES_H
117 #include <sys/types.h>
118 #endif
119 #ifdef HAVE_SYS_STAT_H
120 #include <sys/stat.h>
121 #endif
122 #ifdef HAVE_SYS_RESOURCE_H
123 #include <sys/resource.h>
124 #endif
125 #ifdef HAVE_ALLOCA_H
126 #include <alloca.h>
127 #endif
128
129 #undef HAVE_ISSETUGID
130 #undef HAVE_STRLCPY
131 #undef HAVE_STRLCAT
132 #undef HAVE_STRNSTRN
133 #undef HAVE_OPENPTY
134 #undef HAVE_DECL_OPENPTY
135 #undef HAVE_INET_PTON
136 #undef HAVE_INET_NTOP
137 #undef HAVE_GETOPT
138 #undef HAVE_POLL
139 #undef HAVE_VASPRINTF
140 #undef HAVE_SETPPRIV
141
142 /* Kernel kqueue() support */
143 #undef HAVE_KQUEUE
144 /* Kernel epoll_create() support */
145 #undef HAVE_EPOLL
146 /* Kernel port_create() support */
147 #undef HAVE_PORTS
148
149 /* The number of bytes in a char.  */
150 #undef SIZEOF_CHAR
151
152 /* The number of bytes in a int.  */
153 #undef SIZEOF_INT
154
155 /* The number of bytes in a size_t.  */
156 #undef SIZEOF_SIZE_T
157
158
159 /* The number of bytes in a long int.  */
160 #undef SIZEOF_LONG_INT
161
162 /* The number of bytes in a long long int.  */
163 #undef SIZEOF_LONG_LONG_INT
164
165 /* The number of bytes in a short int.  */
166 #undef SIZEOF_SHORT_INT
167
168 /* The number of bytes in a void *.  */
169 #undef SIZEOF_VOID_P
170
171 /* The number of bytes in a void * (workaround for OpenBSD). */
172 #undef SIZEOF_VOID__
173 #if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__)
174 #  define SIZEOF_VOID_P SIZEOF_VOID__
175 #endif
176
177 #ifndef HAVE_U_INT
178 #define HAVE_U_INT
179 typedef unsigned int u_int;
180 #endif
181
182 #undef HAVE_INTXX_T
183 #ifndef HAVE_INTXX_T
184 #if (SIZEOF_CHAR == 1)
185 typedef char int8_t;
186 #else
187 #error "8 bit int type not found."
188 #endif
189 #if (SIZEOF_SHORT_INT == 2)
190 typedef short int int16_t;
191 #else
192 #ifdef _CRAY
193 typedef long int16_t;
194 #else
195 #warning "16 bit int type not found."
196 #endif /* _CRAY */
197 #endif
198 #if (SIZEOF_INT == 4)
199 typedef int int32_t;
200 #else
201 #ifdef _CRAY
202 typedef long int32_t;
203 #else
204 #error "32 bit int type not found."
205 #endif /* _CRAY */
206 #endif
207 #endif
208
209 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
210 #ifndef HAVE_U_INTXX_T
211 #ifdef HAVE_UINTXX_T
212 typedef uint8_t u_int8_t;
213 typedef uint16_t u_int16_t;
214 typedef uint32_t u_int32_t;
215 #define HAVE_U_INTXX_T 1
216 #else
217 #if (SIZEOF_CHAR == 1)
218 typedef unsigned char u_int8_t;
219 #else
220 #error "8 bit int type not found."
221 #endif
222 #if (SIZEOF_SHORT_INT == 2)
223 typedef unsigned short int u_int16_t;
224 #else
225 #ifdef _CRAY
226 typedef unsigned long u_int16_t;
227 #else
228 #warning "16 bit int type not found."
229 #endif
230 #endif
231 #if (SIZEOF_INT == 4)
232 typedef unsigned int u_int32_t;
233 #else
234 #ifdef _CRAY
235 typedef unsigned long u_int32_t;
236 #else
237 #error "32 bit int type not found."
238 #endif
239 #endif
240 #endif
241 #endif
242
243 /* 64-bit types */
244 #ifndef HAVE_INT64_T
245 #if (SIZEOF_LONG_INT == 8)
246 typedef long int int64_t;
247 #define HAVE_INT64_T 1
248 #else
249 #if (SIZEOF_LONG_LONG_INT == 8)
250 typedef long long int int64_t;
251 #define HAVE_INT64_T 1
252 #define HAVE_LONG_LONG_INT
253 #endif
254 #endif
255 #endif
256 #ifndef HAVE_U_INT64_T
257 #if (SIZEOF_LONG_INT == 8)
258 typedef unsigned long int u_int64_t;
259 #define HAVE_U_INT64_T 1
260 #else
261 #if (SIZEOF_LONG_LONG_INT == 8)
262 typedef unsigned long long int u_int64_t;
263 #define HAVE_U_INT64_T 1
264 #endif
265 #endif
266 #endif
267
268 /* BIND, Kerberos and Berkeley DB use __BIT_TYPES_DEFINED__ to protect
269  * against multiple redefinitions of these types (u_int{8,16,32,64}_t)
270  * and so shall we.
271  */
272 #ifndef __BIT_TYPES_DEFINED__
273 #define __BIT_TYPES_DEFINED__
274 #endif
275
276 #if (SIZEOF_VOID_P == 8)
277 typedef u_int64_t vpsized_uint;
278 typedef int64_t vpsized_int;
279 #elif (SIZEOF_VOID_P == 4)
280 typedef u_int32_t vpsized_uint;
281 typedef int32_t vpsized_int;
282 #else
283 #error Unsupported size of void ptr
284 #endif
285
286 #ifndef PATH_MAX
287 #define PATH_MAX MAXPATHLEN
288 #endif
289
290 typedef enum { noit_false = 0, noit_true } noit_boolean;
291
292 #undef UNAME_V
293 #undef UNAME_R
294 #undef UNAME_S
295 #undef UNAME_M
296 #undef UNAME_N
297 #undef UNAME_P
298
299 #undef HAVE_SSLV2_SERVER
300 #undef HAVE_SSLV2_CLIENT
301 #undef HAVE_SSLV3_SERVER
302 #undef HAVE_SSLV3_CLIENT
303 #undef HAVE_TLSV1_SERVER
304 #undef HAVE_TLSV1_CLIENT
305 #undef HAVE_TLSV1_1_SERVER
306 #undef HAVE_TLSV1_1_CLIENT
307 #undef HAVE_TLSV1_2_SERVER
308 #undef HAVE_TLSV1_2_CLIENT
309
310 #endif
Note: See TracBrowser for help on using the browser.