root/src/noit_config.h.in

Revision 4c963d7e24928576cb0e4a600c35e964b4ba5cca, 5.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

write the eventer... checks are working, but the telnet console is not, refs #32

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, 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 MODULEEXT
40 #undef MODULES_DIR
41 #undef DEFAULT_EVENTER
42 #undef ETC_DIR
43
44 #undef HAVE_FCNTL_H
45 #undef HAVE_UNISTD_H
46 #undef HAVE_SYS_TYPES_H
47 #undef HAVE_TERM_H
48 #undef HAVE_TERMIO_H
49 #undef HAVE_TERMIOS_H
50 #undef HAVE_SYS_IOCTL_COMPAT_H
51 #undef HAVE_SYS_FILIO_H
52 #undef HAVE_STROPTS_H
53 #undef HAVE_SYS_STREAM_H
54 #undef HAVE_UTIL_H
55 #undef HAVE_CURSES_H
56 #undef HAVE_DIRENT_H
57 #undef HAVE_PWD_H
58 #undef HAVE_ERRNO_H
59 #undef HAVE_STRING_H
60 #undef HAVE_STDLIB_H
61 #undef HAVE_SYS_PARAM_H
62 #undef HAVE_SEMAPHORE_H
63 #undef HAVE_ALLOCA_H
64 #undef HAVE_TIME_H
65 #undef HAVE_SYS_STAT_H
66 #undef HAVE_SYS_RESOURCE_H
67 #undef HAVE_SYS_CDEFS_H
68 #undef HAVE_LIBKERN_OSATOMIC_H
69 #undef HAVE_NETINET_IN_SYSTM_H
70 #undef HAVE_INT64_T
71 #undef HAVE_INTXX_T
72 #undef HAVE_LONG_LONG_INT
73 #undef HAVE_UINTXX_T
74 #undef HAVE_U_INT
75 #undef HAVE_U_INT64_T
76 #undef HAVE_U_INTXX_T
77 #undef HAVE_UUID_UNPARSE_LOWER
78 #define IFS_CH '/'
79 #undef BROKEN_SEM_INIT
80
81 #ifdef HAVE_STRING_H
82 #include <string.h>
83 #endif
84 #ifdef HAVE_STDLIB_H
85 #include <stdlib.h>
86 #endif
87 #ifdef HAVE_SYS_PARAM_H
88 #include <sys/param.h>
89 #endif
90 #ifdef HAVE_SYS_TYPES_H
91 #include <sys/types.h>
92 #endif
93 #ifdef HAVE_SYS_STAT_H
94 #include <sys/stat.h>
95 #endif
96 #ifdef HAVE_SYS_RESOURCE_H
97 #include <sys/resource.h>
98 #endif
99
100 #undef HAVE_ISSETUGID
101 #undef HAVE_STRLCPY
102 #undef HAVE_STRNSTRN
103 #undef HAVE_OPENPTY
104
105 /* Kernel kqueue() support */
106 #undef HAVE_KQUEUE
107 /* Kernel epoll_create() support */
108 #undef HAVE_EPOLL
109 /* Kernel port_create() support */
110 #undef HAVE_PORTS
111
112 /* The number of bytes in a char.  */
113 #undef SIZEOF_CHAR
114
115 /* The number of bytes in a int.  */
116 #undef SIZEOF_INT
117
118 /* The number of bytes in a size_t.  */
119 #undef SIZEOF_SIZE_T
120
121
122 /* The number of bytes in a long int.  */
123 #undef SIZEOF_LONG_INT
124
125 /* The number of bytes in a long long int.  */
126 #undef SIZEOF_LONG_LONG_INT
127
128 /* The number of bytes in a short int.  */
129 #undef SIZEOF_SHORT_INT
130
131 /* The number of bytes in a void *.  */
132 #undef SIZEOF_VOID_P
133
134 #ifndef HAVE_U_INT
135 typedef unsigned int u_int;
136 #endif
137
138 #undef HAVE_INTXX_T
139 #ifndef HAVE_INTXX_T
140 #if (SIZEOF_CHAR == 1)
141 typedef char int8_t;
142 #else
143 #error "8 bit int type not found."
144 #endif
145 #if (SIZEOF_SHORT_INT == 2)
146 typedef short int int16_t;
147 #else
148 #ifdef _CRAY
149 typedef long int16_t;
150 #else
151 #warning "16 bit int type not found."
152 #endif /* _CRAY */
153 #endif
154 #if (SIZEOF_INT == 4)
155 typedef int int32_t;
156 #else
157 #ifdef _CRAY
158 typedef long int32_t;
159 #else
160 #error "32 bit int type not found."
161 #endif /* _CRAY */
162 #endif
163 #endif
164
165 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
166 #ifndef HAVE_U_INTXX_T
167 #ifdef HAVE_UINTXX_T
168 typedef uint8_t u_int8_t;
169 typedef uint16_t u_int16_t;
170 typedef uint32_t u_int32_t;
171 #define HAVE_U_INTXX_T 1
172 #else
173 #if (SIZEOF_CHAR == 1)
174 typedef unsigned char u_int8_t;
175 #else
176 #error "8 bit int type not found."
177 #endif
178 #if (SIZEOF_SHORT_INT == 2)
179 typedef unsigned short int u_int16_t;
180 #else
181 #ifdef _CRAY
182 typedef unsigned long u_int16_t;
183 #else
184 #warning "16 bit int type not found."
185 #endif
186 #endif
187 #if (SIZEOF_INT == 4)
188 typedef unsigned int u_int32_t;
189 #else
190 #ifdef _CRAY
191 typedef unsigned long u_int32_t;
192 #else
193 #error "32 bit int type not found."
194 #endif
195 #endif
196 #endif
197 #endif
198
199 /* 64-bit types */
200 #ifndef HAVE_INT64_T
201 #if (SIZEOF_LONG_INT == 8)
202 typedef long int int64_t;
203 #define HAVE_INT64_T 1
204 #else
205 #if (SIZEOF_LONG_LONG_INT == 8)
206 typedef long long int int64_t;
207 #define HAVE_INT64_T 1
208 #define HAVE_LONG_LONG_INT
209 #endif
210 #endif
211 #endif
212 #ifndef HAVE_U_INT64_T
213 #if (SIZEOF_LONG_INT == 8)
214 typedef unsigned long int u_int64_t;
215 #define HAVE_U_INT64_T 1
216 #else
217 #if (SIZEOF_LONG_LONG_INT == 8)
218 typedef unsigned long long int u_int64_t;
219 #define HAVE_U_INT64_T 1
220 #endif
221 #endif
222 #endif
223
224 #if (SIZEOF_VOID_P == 8)
225 typedef u_int64_t vpsized_uint;
226 typedef int64_t vpsized_int;
227 #elif (SIZEOF_VOID_P == 4)
228 typedef u_int32_t vpsized_uint;
229 typedef int32_t vpsized_int;
230 #else
231 #error Unsupported size of void ptr
232 #endif
233
234 #ifndef PATH_MAX
235 #define PATH_MAX MAXPATHLEN
236 #endif
237
238 #endif
Note: See TracBrowser for help on using the browser.