root/src/noit_config.h.in

Revision 7ab9795e96359cb90db2acb8b38293dcefd34e62, 6.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

define disabled if we aren't enabled. this is dumb DTrace

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