root/src/noit_config.h.in

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

epoll eventer implementation

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