-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
404 lines (230 loc) · 5.68 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
/* config.h. Generated from config.h.in by configure. */
/* PennMUSH config.h. Autogenerated by ./configure */
#ifndef __CONFIG_H
#define __CONFIG_H
/* Headers */
/* <arpa/inet.h> What needs this? */
#define I_ARPA_INET 1
/* <arpa/nameser.h> What needs this? */
#define I_ARPA_NAMESER 1
#define I_FCNTL 1
/* #undef I_FLOATINGPOINT */
#define I_LIBINTL 1
/* Get rid of this */
#define I_MALLOC 1
#define I_NETDB 1
#define I_NETINET_IN 1
#define I_NETINET_TCP 1
#define I_SYS_ERRNO 1
#define I_SYS_FILE 1
/* #undef I_SYS_IN */
#define I_SYS_MMAN 1
/* #undef I_SYS_PAGE */
#define I_SYS_PARAM 1
#define I_SYS_SOCKET 1
#define I_SYS_STAT 1
#define I_SYS_TIME 1
#define TIME_WITH_SYS_TIME 1
#define I_SYS_TYPES 1
#define HAVE_UNISTD_H 1
#ifdef HAVE_UNISTD_H
#define I_UNISTD
#endif
#define HAVE_SYS_WAIT_H 1
/* #undef HAVE_IEEEFP_H */
#define HAVE_SYS_UN_H 1
#define HAVE_SYS_RESOURCE_H 1
/* #undef HAVE_SYS_EVENT_H */
#define HAVE_SYS_UIO_H 1
#define HAVE_POLL_H 1
#define HAVE_SYS_EPOLL_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_INOTIFY_H 1
/* #undef HAVE_FAM_H */
/* #undef HAVE_LIBFAM */
#define HAVE_ZLIB_H 1
#define HAVE_LIBZ 1
/* C99ish headers. The first two are really really nice to have. */
#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDBOOL_H 1
/* Libraries */
#define HAVE_MYSQL 1
/* #undef HAVE_POSTGRESQL */
/* #undef HAVE_SQLITE3 */
#define HAVE_SSL 1
#ifdef HAVE_SSL
#define HAS_OPENSSL
#endif
#define HAVE_PCRE 1
/* Types */
#define HAVE__BOOL 1
/* #undef ssize_t */
/* Should be in <sys/socket.h> */
/* #undef socklen_t */
/* #undef pid_t */
/* All of these are in <stdint.h> if present. Otherwise autoconf
guesses. */
/* #undef uint8_t */
/* #undef uint16_t */
/* #undef int32_t */
/* #undef uint32_t */
/* #undef int64_t */
/* #undef uint64_t */
/* Type of the largest int type */
/* #undef intmax_t */
/* #undef uintmax_t */
/* 4 */
#define SIZEOF_INT 4
/* 4 or 8 */
#define SIZEOF_LONG 4
/* 0 if no 64-bit type (We shouldn't be seeing that case) or 8. See below. */
#define SIZEOF_INT64_T 8
/* 8 on most modern CPUs Penn will be used on. They either have 64-bit
* words (amd64, sparc64, powerpc64) or support an extended 64-bit type (i386,
* powerpc32) */
#define SIZEOF_INTMAX_T 8
#define SIZEOF_TIME_T 4
/* 4 or 8 */
#define SIZEOF_VOID_P 4
/* Taken from autoconf manual */
#if HAVE_STDBOOL_H
# include <stdbool.h>
#else
# if ! HAVE__BOOL
# ifdef __cplusplus
typedef bool _Bool;
# else
# define _Bool signed char
# endif
# endif
# define bool _Bool
# define false 0
# define true 1
# define __bool_true_false_are_defined 1
#endif
/* Functions */
#define HAS_BINDTEXTDOMAIN 1
#define HAVE_CBRT 1
#define HAVE_LOG2 1
#define HAVE_ROUND 1
#define HAS_CRYPT 1
/* #undef HAVE_FPSETMASK */
/* #undef HAVE_FPSETROUND */
#define HAVE_ISNORMAL 1
#define HAS_GAI_STRERROR 1
#define HAS_GETADDRINFO 1
#define HAS_GETDATE 1
#define HAS_GETHOSTBYNAME2 1
#define HAS_GETNAMEINFO 1
#define HAS_GETPAGESIZE 1
#define HAS_GETRLIMIT 1
#define HAS_GETRUSAGE 1
#define HAVE_GETTEXT 1
#define HAS_INET_PTON 1
#define HAS_ITIMER 1
#define HAS_SETLOCALE 1
#define HAVE_FORK 1
#define HAVE_SETPGRP 1
#define HAVE_SETSID 1
#define HAVE_SETPGID 1
#define SETPGRP_VOID 1
#define HAVE_GETUID 1
#define HAVE_GETEUID 1
#define HAVE_SETEUID 1
#define HAVE_GETPRIORITY 1
#define HAVE_SETPRIORITY 1
#define HAVE_SIGACTION 1
#define HAVE_SIGPROCMASK 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_STRCASECMP 1
#define HAVE_STRNCASECMP 1
/* Various Windows (And maybe others?) string functions start with _str */
/* #undef HAVE__STRICMP */
/* #undef HAVE__STRNICMP */
/* #undef HAVE__STRICOLL */
/* #undef HAVE__STRNCOLL */
/* #undef HAVE__STRNICOLL */
/* #undef HAVE__SNPRINTF */
/* #undef HAVE__VSNPRINTF */
/* #undef HAVE__VSNPRINTF_S */
#define HAVE_VASPRINTF 1
#define HAVE_STRCHRNUL 1
#define HAVE_STRDUP 1
#define HAVE_STRCOLL 1
#define HAVE_STRXFRM 1
#define HAS_SYSCONF 1
#define HAS_TEXTDOMAIN 1
#define HAS_VSNPRINTF 1
#define HAVE_WAITPID 1
/* #undef HAVE_WAIT3 */
/* #undef HAVE_WAIT */
/* #undef UNION_WAIT */
#define HAVE_IMAXDIV_T 1
#define HAVE_IMAXDIV 1
#define HAVE_GETPID 1
#define HAVE_GETPPID 1
#define HAVE_PSELECT 1
#define HAVE_POLL 1
#define HAVE_PPOLL 1
/* #undef HAVE_POLLTS */
/* #undef HAVE_KQUEUE */
#define HAVE_EPOLL_CTL 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_WRITEV 1
#define HAVE_FCNTL 1
#define HAVE_INOTIFY_INIT 1
#ifdef HAVE_INOTIFY_INIT
#define HAVE_INOTIFY
#endif
#define HAVE_PREAD 1
#define HAVE_PWRITE 1
#define HAVE_POSIX_FADVISE 1
#define HAVE_POSIX_FALLOCATE 1
/* Variables and defines */
#define HAVE_H_ERRNO 1
#define HAVE_SIGCHLD 1
#define HAVE_SIGCLD 1
/* Files */
#define HAS_DEV_URANDOM 1
/* Misc. */
#define HAVE_SOCKADDR_IN6 1
/* #undef FORCE_IPV4 */
/* #undef DONT_TRANSLATE */
#define INFO_SLAVE 1
#define HAVE_UPTIME 1
/* Path to uptime */
#define UPTIME "/usr/bin/uptime"
#define HAVE_SENDMAIL 1
/* Path to sendmail */
#define SENDMAIL ""
#define HAVE_ED 1
#define ED_PATH " -s"
#define HAVE_SAFE_TOUPPER 1
/* Optional language features */
#define restrict __restrict
/* #undef inline */
#ifdef _MSC_VER
#define WIN32_CDECL __cdecl
#else
#define WIN32_CDECL
#endif
#define HAVE___ATTRIBUTE__ 1
#ifndef HAVE___ATTRIBUTE__
#define __attribute__(x)
#endif
#define GCC_MALLOC_CALL __attribute__((__malloc__))
/* Turn on SSE2 stuff automatically if supported (IE, x86-64 or x86 with the right -march switch) */
/* #undef HAVE_SSE2 */
#ifdef __SSE2__
#define HAVE_SSE2
#endif
/* #undef HAVE_SSE3 */
#ifdef __SSE3__
#define HAVE_SSE3
#endif
/* #undef HAVE_ALTIVEC */
/* TODO: Change in source */
#define RESTRICT restrict
#endif /* __CONFIG_H */