2
* $Id: db_config.h,v 1.12 2001/07/06 20:40:46 bostic Exp $
6
* WORDS_BIGENDIAN is the ONLY option in this file that may be edited
9
* The user must set this according to VxWork's target arch. We use an
10
* x86 (little-endian) target.
12
/* Define if your processor stores words with the most significant byte first
13
(like Motorola and SPARC, unlike Intel and VAX). */
14
/* #undef WORDS_BIGENDIAN */
17
* The CONFIG_TEST option may be added using the Tornado project build.
18
* DO NOT modify it here.
20
/* Define if you are building a version for running the test suite. */
21
/* #undef CONFIG_TEST */
24
* The DEBUG option may be added using the Tornado project build.
25
* DO NOT modify it here.
27
/* Define if you want a debugging version. */
30
/* Define if you want a version that logs read operations. */
31
/* #undef DEBUG_ROP */
33
/* Define if you want a version that logs write operations. */
34
/* #undef DEBUG_WOP */
37
* The DIAGNOSTIC option may be added using the Tornado project build.
38
* DO NOT modify it here.
40
/* Define if you want a version with run-time diagnostic checking. */
41
/* #undef DIAGNOSTIC */
43
/* Define if you have the <dirent.h> header file, and it defines `DIR'. */
44
#define HAVE_DIRENT_H 1
46
/* Define if you have the <dlfcn.h> header file. */
47
/* #undef HAVE_DLFCN_H */
49
/* Define if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
50
#define HAVE_EXIT_SUCCESS 1
52
/* Define if fcntl/F_SETFD denies child access to file descriptors. */
53
/* #undef HAVE_FCNTL_F_SETFD */
55
/* Define if allocated filesystem blocks are not zeroed. */
56
#define HAVE_FILESYSTEM_NOTZERO 1
58
/* Define if you have the `getcwd' function. */
61
/* Define if you have the `getopt' function. */
62
/* #undef HAVE_GETOPT */
64
/* Define if you have the `getuid' function. */
65
/* #undef HAVE_GETUID */
67
/* Define if you have the <inttypes.h> header file. */
68
/* #undef HAVE_INTTYPES_H */
70
/* Define if you have the `nsl' library (-lnsl). */
71
/* #undef HAVE_LIBNSL */
73
/* Define if you have the `memcmp' function. */
76
/* Define if you have the `memcpy' function. */
79
/* Define if you have the `memmove' function. */
80
#define HAVE_MEMMOVE 1
82
/* Define if you have the <memory.h> header file. */
83
#define HAVE_MEMORY_H 1
85
/* Define if you have the `mlock' function. */
86
/* #undef HAVE_MLOCK */
88
/* Define if you have the `mmap' function. */
89
/* #undef HAVE_MMAP */
91
/* Define if you have the `munlock' function. */
92
/* #undef HAVE_MUNLOCK */
94
/* Define if you have the `munmap' function. */
95
/* #undef HAVE_MUNMAP */
97
/* Define to use the GCC compiler and 68K assembly language mutexes. */
98
/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
100
/* Define to use the AIX _check_lock mutexes. */
101
/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
103
/* Define to use the GCC compiler and Alpha assembly language mutexes. */
104
/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
106
/* Define to use the GCC compiler and PaRisc assembly language mutexes. */
107
/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
109
/* Define to use the msem_XXX mutexes on HP-UX. */
110
/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
112
/* Define to use the GCC compiler and IA64 assembly language mutexes. */
113
/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
115
/* Define to use the msem_XXX mutexes on systems other than HP-UX. */
116
/* #undef HAVE_MUTEX_MSEM_INIT */
118
/* Define to use the GCC compiler and PowerPC assembly language mutexes. */
119
/* #undef HAVE_MUTEX_PPC_GCC_ASSEMBLY */
121
/* Define to use POSIX 1003.1 pthread_XXX mutexes. */
122
/* #undef HAVE_MUTEX_PTHREADS */
124
/* Define to use Reliant UNIX initspin mutexes. */
125
/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
127
/* Define to use the SCO compiler and x86 assembly language mutexes. */
128
/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
130
/* Define to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
131
/* #undef HAVE_MUTEX_SEMA_INIT */
133
/* Define to use the SGI XXX_lock mutexes. */
134
/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
136
/* Define to use the Solaris _lock_XXX mutexes. */
137
/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
139
/* Define to use the Solaris lwp threads mutexes. */
140
/* #undef HAVE_MUTEX_SOLARIS_LWP */
142
/* Define to use the GCC compiler and Sparc assembly language mutexes. */
143
/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
145
/* Define if fast mutexes available. */
146
#define HAVE_MUTEX_THREADS 1
148
/* Define to use the UNIX International mutexes. */
149
/* #undef HAVE_MUTEX_UI_THREADS */
151
/* Define to use the UTS compiler and assembly language mutexes. */
152
/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
154
/* Define to use VMS mutexes. */
155
/* #undef HAVE_MUTEX_VMS */
157
/* Define to use VxWorks mutexes. */
158
#define HAVE_MUTEX_VXWORKS 1
160
/* Define to use Windows mutexes. */
161
/* #undef HAVE_MUTEX_WIN32 */
163
/* Define to use the GCC compiler and x86 assembly language mutexes. */
164
/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
166
/* Define if you have the <ndir.h> header file, and it defines `DIR'. */
167
/* #undef HAVE_NDIR_H */
169
/* Define if you have the `pread' function. */
170
/* #undef HAVE_PREAD */
172
/* Define if you have the `pstat_getdynamic' function. */
173
/* #undef HAVE_PSTAT_GETDYNAMIC */
175
/* Define if you have the `pwrite' function. */
176
/* #undef HAVE_PWRITE */
178
/* Define if building on QNX. */
179
/* #undef HAVE_QNX */
181
/* Define if you have the `qsort' function. */
184
/* Define if you have the `raise' function. */
188
* The HAVE_RPC option may be added using the Tornado project build.
189
* DO NOT modify it here.
191
/* Define if building RPC client/server. */
192
/* #undef HAVE_RPC */
194
/* Define if you have the `sched_yield' function. */
195
#define HAVE_SCHED_YIELD 1
197
/* Define if you have the `select' function. */
198
#define HAVE_SELECT 1
200
/* Define if you have the `shmget' function. */
201
/* #undef HAVE_SHMGET */
203
/* Define if you have the `snprintf' function. */
204
/* #undef HAVE_SNPRINTF */
206
/* Define if you have the <stdlib.h> header file. */
207
#define HAVE_STDLIB_H 1
209
/* Define if you have the `strcasecmp' function. */
210
/* #undef HAVE_STRCASECMP */
212
/* Define if you have the `strerror' function. */
213
#define HAVE_STRERROR 1
215
/* Define if you have the <strings.h> header file. */
216
#define HAVE_STRINGS_H 1
218
/* Define if you have the <string.h> header file. */
219
#define HAVE_STRING_H 1
221
/* Define if you have the `strtoul' function. */
222
#define HAVE_STRTOUL 1
224
/* Define if `st_blksize' is member of `struct stat'. */
225
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
227
/* Define if you have the `sysconf' function. */
228
/* #undef HAVE_SYSCONF */
230
/* Define if you have the <sys/dir.h> header file, and it defines `DIR'. */
231
/* #undef HAVE_SYS_DIR_H */
233
/* Define if you have the <sys/ndir.h> header file, and it defines `DIR'. */
234
/* #undef HAVE_SYS_NDIR_H */
236
/* Define if you have the <sys/select.h> header file. */
237
/* #undef HAVE_SYS_SELECT_H */
239
/* Define if you have the <sys/time.h> header file. */
240
/* #undef HAVE_SYS_TIME_H */
242
/* Define if you have the <unistd.h> header file. */
243
#define HAVE_UNISTD_H 1
245
/* Define if you have the `vsnprintf' function. */
246
/* #undef HAVE_VSNPRINTF */
248
/* Define if building VxWorks. */
249
#define HAVE_VXWORKS 1
251
/* Define if you have the `yield' function. */
252
/* #undef HAVE_YIELD */
254
/* Define if you have the `_fstati64' function. */
255
/* #undef HAVE__FSTATI64 */
257
/* Define if your sprintf returns a pointer, not a length. */
258
/* #undef SPRINTF_RET_CHARPNT */
260
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
261
/* #undef STAT_MACROS_BROKEN */
263
/* Define if you have the ANSI C header files. */
264
#define STDC_HEADERS 1
266
/* Define if you can safely include both <sys/time.h> and <time.h>. */
267
/* #undef TIME_WITH_SYS_TIME */
269
/* Define to mask harmless unitialized memory read/writes. */
272
/* Number of bits in a file offset, on hosts where this is settable. */
273
/* #undef _FILE_OFFSET_BITS */
275
/* Define for large files, on AIX-style hosts. */
276
/* #undef _LARGE_FILES */
278
/* Define to empty if `const' does not conform to ANSI C. */
281
/* Define to `int' if <sys/types.h> does not define. */
284
/* Define to `long' if <sys/types.h> does not define. */
287
/* Define to `int' if <sys/types.h> does not define. */
290
/* Define to `unsigned' if <sys/types.h> does not define. */
294
* Exit success/failure macros.
296
#ifndef HAVE_EXIT_SUCCESS
297
#define EXIT_FAILURE 1
298
#define EXIT_SUCCESS 0
302
* Don't step on the namespace. Other libraries may have their own
303
* implementations of these functions, we don't want to use their
304
* implementations or force them to use ours based on the load order.
307
#define getcwd __db_Cgetcwd
310
#define memcmp __db_Cmemcmp
313
#define memcpy __db_Cmemcpy
316
#define memmove __db_Cmemmove
319
#define raise __db_Craise
321
#ifndef HAVE_SNPRINTF
322
#define snprintf __db_Csnprintf
324
#ifndef HAVE_STRCASECMP
325
#define strcasecmp __db_Cstrcasecmp
327
#ifndef HAVE_STRERROR
328
#define strerror __db_Cstrerror
330
#ifndef HAVE_VSNPRINTF
331
#define vsnprintf __db_Cvsnprintf
336
* The following is not part of the automatic configuration setup, but
337
* provides the information necessary to build Berkeley DB on VxWorks.
340
* VxWorks has getpid, but under a different name.
342
#define getpid() taskIdSelf()