~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/build_vxworks/db_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: db_config.h,v 1.12 2001/07/06 20:40:46 bostic Exp $
 
3
 */
 
4
 
 
5
/* !!!
 
6
 * WORDS_BIGENDIAN is the ONLY option in this file that may be edited
 
7
 * for VxWorks.
 
8
 *
 
9
 * The user must set this according to VxWork's target arch.  We use an
 
10
 * x86 (little-endian) target.
 
11
 */
 
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 */
 
15
 
 
16
/* !!!
 
17
 * The CONFIG_TEST option may be added using the Tornado project build.
 
18
 * DO NOT modify it here.
 
19
 */
 
20
/* Define if you are building a version for running the test suite. */
 
21
/* #undef CONFIG_TEST */
 
22
 
 
23
/* !!!
 
24
 * The DEBUG option may be added using the Tornado project build.
 
25
 * DO NOT modify it here.
 
26
 */
 
27
/* Define if you want a debugging version. */
 
28
/* #undef DEBUG */
 
29
 
 
30
/* Define if you want a version that logs read operations. */
 
31
/* #undef DEBUG_ROP */
 
32
 
 
33
/* Define if you want a version that logs write operations. */
 
34
/* #undef DEBUG_WOP */
 
35
 
 
36
/* !!!
 
37
 * The DIAGNOSTIC option may be added using the Tornado project build.
 
38
 * DO NOT modify it here.
 
39
 */
 
40
/* Define if you want a version with run-time diagnostic checking. */
 
41
/* #undef DIAGNOSTIC */
 
42
 
 
43
/* Define if you have the <dirent.h> header file, and it defines `DIR'. */
 
44
#define HAVE_DIRENT_H 1
 
45
 
 
46
/* Define if you have the <dlfcn.h> header file. */
 
47
/* #undef HAVE_DLFCN_H */
 
48
 
 
49
/* Define if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
 
50
#define HAVE_EXIT_SUCCESS 1
 
51
 
 
52
/* Define if fcntl/F_SETFD denies child access to file descriptors. */
 
53
/* #undef HAVE_FCNTL_F_SETFD */
 
54
 
 
55
/* Define if allocated filesystem blocks are not zeroed. */
 
56
#define HAVE_FILESYSTEM_NOTZERO 1
 
57
 
 
58
/* Define if you have the `getcwd' function. */
 
59
#define HAVE_GETCWD 1
 
60
 
 
61
/* Define if you have the `getopt' function. */
 
62
/* #undef HAVE_GETOPT */
 
63
 
 
64
/* Define if you have the `getuid' function. */
 
65
/* #undef HAVE_GETUID */
 
66
 
 
67
/* Define if you have the <inttypes.h> header file. */
 
68
/* #undef HAVE_INTTYPES_H */
 
69
 
 
70
/* Define if you have the `nsl' library (-lnsl). */
 
71
/* #undef HAVE_LIBNSL */
 
72
 
 
73
/* Define if you have the `memcmp' function. */
 
74
#define HAVE_MEMCMP 1
 
75
 
 
76
/* Define if you have the `memcpy' function. */
 
77
#define HAVE_MEMCPY 1
 
78
 
 
79
/* Define if you have the `memmove' function. */
 
80
#define HAVE_MEMMOVE 1
 
81
 
 
82
/* Define if you have the <memory.h> header file. */
 
83
#define HAVE_MEMORY_H 1
 
84
 
 
85
/* Define if you have the `mlock' function. */
 
86
/* #undef HAVE_MLOCK */
 
87
 
 
88
/* Define if you have the `mmap' function. */
 
89
/* #undef HAVE_MMAP */
 
90
 
 
91
/* Define if you have the `munlock' function. */
 
92
/* #undef HAVE_MUNLOCK */
 
93
 
 
94
/* Define if you have the `munmap' function. */
 
95
/* #undef HAVE_MUNMAP */
 
96
 
 
97
/* Define to use the GCC compiler and 68K assembly language mutexes. */
 
98
/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
 
99
 
 
100
/* Define to use the AIX _check_lock mutexes. */
 
101
/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
 
102
 
 
103
/* Define to use the GCC compiler and Alpha assembly language mutexes. */
 
104
/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
 
105
 
 
106
/* Define to use the GCC compiler and PaRisc assembly language mutexes. */
 
107
/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
 
108
 
 
109
/* Define to use the msem_XXX mutexes on HP-UX. */
 
110
/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
 
111
 
 
112
/* Define to use the GCC compiler and IA64 assembly language mutexes. */
 
113
/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
 
114
 
 
115
/* Define to use the msem_XXX mutexes on systems other than HP-UX. */
 
116
/* #undef HAVE_MUTEX_MSEM_INIT */
 
117
 
 
118
/* Define to use the GCC compiler and PowerPC assembly language mutexes. */
 
119
/* #undef HAVE_MUTEX_PPC_GCC_ASSEMBLY */
 
120
 
 
121
/* Define to use POSIX 1003.1 pthread_XXX mutexes. */
 
122
/* #undef HAVE_MUTEX_PTHREADS */
 
123
 
 
124
/* Define to use Reliant UNIX initspin mutexes. */
 
125
/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
 
126
 
 
127
/* Define to use the SCO compiler and x86 assembly language mutexes. */
 
128
/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
 
129
 
 
130
/* Define to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
 
131
/* #undef HAVE_MUTEX_SEMA_INIT */
 
132
 
 
133
/* Define to use the SGI XXX_lock mutexes. */
 
134
/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
 
135
 
 
136
/* Define to use the Solaris _lock_XXX mutexes. */
 
137
/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
 
138
 
 
139
/* Define to use the Solaris lwp threads mutexes. */
 
140
/* #undef HAVE_MUTEX_SOLARIS_LWP */
 
141
 
 
142
/* Define to use the GCC compiler and Sparc assembly language mutexes. */
 
143
/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
 
144
 
 
145
/* Define if fast mutexes available. */
 
146
#define HAVE_MUTEX_THREADS 1
 
147
 
 
148
/* Define to use the UNIX International mutexes. */
 
149
/* #undef HAVE_MUTEX_UI_THREADS */
 
150
 
 
151
/* Define to use the UTS compiler and assembly language mutexes. */
 
152
/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
 
153
 
 
154
/* Define to use VMS mutexes. */
 
155
/* #undef HAVE_MUTEX_VMS */
 
156
 
 
157
/* Define to use VxWorks mutexes. */
 
158
#define HAVE_MUTEX_VXWORKS 1
 
159
 
 
160
/* Define to use Windows mutexes. */
 
161
/* #undef HAVE_MUTEX_WIN32 */
 
162
 
 
163
/* Define to use the GCC compiler and x86 assembly language mutexes. */
 
164
/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
 
165
 
 
166
/* Define if you have the <ndir.h> header file, and it defines `DIR'. */
 
167
/* #undef HAVE_NDIR_H */
 
168
 
 
169
/* Define if you have the `pread' function. */
 
170
/* #undef HAVE_PREAD */
 
171
 
 
172
/* Define if you have the `pstat_getdynamic' function. */
 
173
/* #undef HAVE_PSTAT_GETDYNAMIC */
 
174
 
 
175
/* Define if you have the `pwrite' function. */
 
176
/* #undef HAVE_PWRITE */
 
177
 
 
178
/* Define if building on QNX. */
 
179
/* #undef HAVE_QNX */
 
180
 
 
181
/* Define if you have the `qsort' function. */
 
182
#define HAVE_QSORT 1
 
183
 
 
184
/* Define if you have the `raise' function. */
 
185
#define HAVE_RAISE 1
 
186
 
 
187
/* !!!
 
188
 * The HAVE_RPC option may be added using the Tornado project build.
 
189
 * DO NOT modify it here.
 
190
 */
 
191
/* Define if building RPC client/server. */
 
192
/* #undef HAVE_RPC */
 
193
 
 
194
/* Define if you have the `sched_yield' function. */
 
195
#define HAVE_SCHED_YIELD 1
 
196
 
 
197
/* Define if you have the `select' function. */
 
198
#define HAVE_SELECT 1
 
199
 
 
200
/* Define if you have the `shmget' function. */
 
201
/* #undef HAVE_SHMGET */
 
202
 
 
203
/* Define if you have the `snprintf' function. */
 
204
/* #undef HAVE_SNPRINTF */
 
205
 
 
206
/* Define if you have the <stdlib.h> header file. */
 
207
#define HAVE_STDLIB_H 1
 
208
 
 
209
/* Define if you have the `strcasecmp' function. */
 
210
/* #undef HAVE_STRCASECMP */
 
211
 
 
212
/* Define if you have the `strerror' function. */
 
213
#define HAVE_STRERROR 1
 
214
 
 
215
/* Define if you have the <strings.h> header file. */
 
216
#define HAVE_STRINGS_H 1
 
217
 
 
218
/* Define if you have the <string.h> header file. */
 
219
#define HAVE_STRING_H 1
 
220
 
 
221
/* Define if you have the `strtoul' function. */
 
222
#define HAVE_STRTOUL 1
 
223
 
 
224
/* Define if `st_blksize' is member of `struct stat'. */
 
225
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
 
226
 
 
227
/* Define if you have the `sysconf' function. */
 
228
/* #undef HAVE_SYSCONF */
 
229
 
 
230
/* Define if you have the <sys/dir.h> header file, and it defines `DIR'. */
 
231
/* #undef HAVE_SYS_DIR_H */
 
232
 
 
233
/* Define if you have the <sys/ndir.h> header file, and it defines `DIR'. */
 
234
/* #undef HAVE_SYS_NDIR_H */
 
235
 
 
236
/* Define if you have the <sys/select.h> header file. */
 
237
/* #undef HAVE_SYS_SELECT_H */
 
238
 
 
239
/* Define if you have the <sys/time.h> header file. */
 
240
/* #undef HAVE_SYS_TIME_H */
 
241
 
 
242
/* Define if you have the <unistd.h> header file. */
 
243
#define HAVE_UNISTD_H 1
 
244
 
 
245
/* Define if you have the `vsnprintf' function. */
 
246
/* #undef HAVE_VSNPRINTF */
 
247
 
 
248
/* Define if building VxWorks. */
 
249
#define HAVE_VXWORKS 1
 
250
 
 
251
/* Define if you have the `yield' function. */
 
252
/* #undef HAVE_YIELD */
 
253
 
 
254
/* Define if you have the `_fstati64' function. */
 
255
/* #undef HAVE__FSTATI64 */
 
256
 
 
257
/* Define if your sprintf returns a pointer, not a length. */
 
258
/* #undef SPRINTF_RET_CHARPNT */
 
259
 
 
260
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
 
261
/* #undef STAT_MACROS_BROKEN */
 
262
 
 
263
/* Define if you have the ANSI C header files. */
 
264
#define STDC_HEADERS 1
 
265
 
 
266
/* Define if you can safely include both <sys/time.h> and <time.h>. */
 
267
/* #undef TIME_WITH_SYS_TIME */
 
268
 
 
269
/* Define to mask harmless unitialized memory read/writes. */
 
270
/* #undef UMRW */
 
271
 
 
272
/* Number of bits in a file offset, on hosts where this is settable. */
 
273
/* #undef _FILE_OFFSET_BITS */
 
274
 
 
275
/* Define for large files, on AIX-style hosts. */
 
276
/* #undef _LARGE_FILES */
 
277
 
 
278
/* Define to empty if `const' does not conform to ANSI C. */
 
279
/* #undef const */
 
280
 
 
281
/* Define to `int' if <sys/types.h> does not define. */
 
282
/* #undef mode_t */
 
283
 
 
284
/* Define to `long' if <sys/types.h> does not define. */
 
285
/* #undef off_t */
 
286
 
 
287
/* Define to `int' if <sys/types.h> does not define. */
 
288
/* #undef pid_t */
 
289
 
 
290
/* Define to `unsigned' if <sys/types.h> does not define. */
 
291
/* #undef size_t */
 
292
 
 
293
/*
 
294
 * Exit success/failure macros.
 
295
 */
 
296
#ifndef HAVE_EXIT_SUCCESS
 
297
#define EXIT_FAILURE    1
 
298
#define EXIT_SUCCESS    0
 
299
#endif
 
300
 
 
301
/*
 
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.
 
305
 */
 
306
#ifndef HAVE_GETCWD
 
307
#define getcwd          __db_Cgetcwd
 
308
#endif
 
309
#ifndef HAVE_MEMCMP
 
310
#define memcmp          __db_Cmemcmp
 
311
#endif
 
312
#ifndef HAVE_MEMCPY
 
313
#define memcpy          __db_Cmemcpy
 
314
#endif
 
315
#ifndef HAVE_MEMMOVE
 
316
#define memmove         __db_Cmemmove
 
317
#endif
 
318
#ifndef HAVE_RAISE
 
319
#define raise           __db_Craise
 
320
#endif
 
321
#ifndef HAVE_SNPRINTF
 
322
#define snprintf        __db_Csnprintf
 
323
#endif
 
324
#ifndef HAVE_STRCASECMP
 
325
#define strcasecmp      __db_Cstrcasecmp
 
326
#endif
 
327
#ifndef HAVE_STRERROR
 
328
#define strerror        __db_Cstrerror
 
329
#endif
 
330
#ifndef HAVE_VSNPRINTF
 
331
#define vsnprintf       __db_Cvsnprintf
 
332
#endif
 
333
 
 
334
/*
 
335
 * !!!
 
336
 * The following is not part of the automatic configuration setup, but
 
337
 * provides the information necessary to build Berkeley DB on VxWorks.
 
338
 */
 
339
/*
 
340
 * VxWorks has getpid, but under a different name.
 
341
 */
 
342
#define getpid()        taskIdSelf()
 
343
 
 
344
#include "vxWorks.h"