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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996-2009 Oracle. All rights reserved.
*
* $Id$
*/
#ifndef HAVE_HASH
#include "db_config.h"
#include "db_int.h"
#include "dbinc/db_page.h"
#include "dbinc/hash.h"
/*
* If the library wasn't compiled with the Hash access method, various
* routines aren't available. Stub them here, returning an appropriate
* error.
*/
/*
* __db_nohasham --
* Error when a Berkeley DB build doesn't include the access method.
*
* PUBLIC: int __db_no_hash_am __P((ENV *));
*/
int
__db_no_hash_am(env)
ENV *env;
{
__db_errx(env,
"library build did not include support for the Hash access method");
return (DB_OPNOTSUP);
}
int
__ham_30_hashmeta(dbp, real_name, obuf)
DB *dbp;
char *real_name;
u_int8_t *obuf;
{
COMPQUIET(real_name, NULL);
COMPQUIET(obuf, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_30_sizefix(dbp, fhp, realname, metabuf)
DB *dbp;
DB_FH *fhp;
char *realname;
u_int8_t *metabuf;
{
COMPQUIET(fhp, NULL);
COMPQUIET(realname, NULL);
COMPQUIET(metabuf, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_31_hash(dbp, real_name, flags, fhp, h, dirtyp)
DB *dbp;
char *real_name;
u_int32_t flags;
DB_FH *fhp;
PAGE *h;
int *dirtyp;
{
COMPQUIET(real_name, NULL);
COMPQUIET(flags, 0);
COMPQUIET(fhp, NULL);
COMPQUIET(h, NULL);
COMPQUIET(dirtyp, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_31_hashmeta(dbp, real_name, flags, fhp, h, dirtyp)
DB *dbp;
char *real_name;
u_int32_t flags;
DB_FH *fhp;
PAGE *h;
int *dirtyp;
{
COMPQUIET(real_name, NULL);
COMPQUIET(flags, 0);
COMPQUIET(fhp, NULL);
COMPQUIET(h, NULL);
COMPQUIET(dirtyp, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_46_hash(dbp, real_name, flags, fhp, h, dirtyp)
DB *dbp;
char *real_name;
u_int32_t flags;
DB_FH *fhp;
PAGE *h;
int *dirtyp;
{
COMPQUIET(real_name, NULL);
COMPQUIET(flags, 0);
COMPQUIET(fhp, NULL);
COMPQUIET(h, NULL);
COMPQUIET(dirtyp, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_46_hashmeta(dbp, real_name, flags, fhp, h, dirtyp)
DB *dbp;
char *real_name;
u_int32_t flags;
DB_FH *fhp;
PAGE *h;
int *dirtyp;
{
COMPQUIET(real_name, NULL);
COMPQUIET(flags, 0);
COMPQUIET(fhp, NULL);
COMPQUIET(h, NULL);
COMPQUIET(dirtyp, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__hamc_cmp(dbc, other_dbc, result)
DBC *dbc, *other_dbc;
int *result;
{
COMPQUIET(other_dbc, NULL);
COMPQUIET(result, NULL);
return (__db_no_hash_am(dbc->env));
}
int
__hamc_count(dbc, recnop)
DBC *dbc;
db_recno_t *recnop;
{
COMPQUIET(recnop, NULL);
return (__db_no_hash_am(dbc->env));
}
int
__hamc_dup(orig_dbc, new_dbc)
DBC *orig_dbc, *new_dbc;
{
COMPQUIET(new_dbc, NULL);
return (__db_no_hash_am(orig_dbc->env));
}
int
__hamc_init(dbc)
DBC *dbc;
{
return (__db_no_hash_am(dbc->env));
}
int
__ham_db_close(dbp)
DB *dbp;
{
COMPQUIET(dbp, NULL);
return (0);
}
int
__ham_db_create(dbp)
DB *dbp;
{
COMPQUIET(dbp, NULL);
return (0);
}
int
__ham_init_print(env, dtabp)
ENV *env;
DB_DISTAB *dtabp;
{
COMPQUIET(env, NULL);
COMPQUIET(dtabp, NULL);
return (0);
}
int
__ham_init_recover(env, dtabp)
ENV *env;
DB_DISTAB *dtabp;
{
COMPQUIET(env, NULL);
COMPQUIET(dtabp, NULL);
return (0);
}
int
__ham_meta2pgset(dbp, vdp, hmeta, flags, pgset)
DB *dbp;
VRFY_DBINFO *vdp;
HMETA *hmeta;
u_int32_t flags;
DB *pgset;
{
COMPQUIET(vdp, NULL);
COMPQUIET(hmeta, NULL);
COMPQUIET(flags, 0);
COMPQUIET(pgset, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_metachk(dbp, name, hashm)
DB *dbp;
const char *name;
HMETA *hashm;
{
COMPQUIET(name, NULL);
COMPQUIET(hashm, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_metagroup_42_recover(env, dbtp, lsnp, op, info)
ENV *env;
DBT *dbtp;
DB_LSN *lsnp;
db_recops op;
void *info;
{
COMPQUIET(dbtp, NULL);
COMPQUIET(lsnp, NULL);
COMPQUIET(op, (db_recops)0);
COMPQUIET(info, NULL);
return (__db_no_hash_am(env));
}
int
__ham_mswap(env, pg)
ENV *env;
void *pg;
{
COMPQUIET(pg, NULL);
return (__db_no_hash_am(env));
}
int
__ham_groupalloc_42_recover(env, dbtp, lsnp, op, info)
ENV *env;
DBT *dbtp;
DB_LSN *lsnp;
db_recops op;
void *info;
{
COMPQUIET(dbtp, NULL);
COMPQUIET(lsnp, NULL);
COMPQUIET(op, (db_recops)0);
COMPQUIET(info, NULL);
return (__db_no_hash_am(env));
}
int
__ham_new_file(dbp, ip, txn, fhp, name)
DB *dbp;
DB_THREAD_INFO *ip;
DB_TXN *txn;
DB_FH *fhp;
const char *name;
{
COMPQUIET(ip, NULL);
COMPQUIET(txn, NULL);
COMPQUIET(fhp, NULL);
COMPQUIET(name, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_new_subdb(mdbp, dbp, ip, txn)
DB *mdbp, *dbp;
DB_THREAD_INFO *ip;
DB_TXN *txn;
{
COMPQUIET(dbp, NULL);
COMPQUIET(txn, NULL);
COMPQUIET(ip, NULL);
return (__db_no_hash_am(mdbp->env));
}
int
__ham_open(dbp, ip, txn, name, base_pgno, flags)
DB *dbp;
DB_THREAD_INFO *ip;
DB_TXN *txn;
const char *name;
db_pgno_t base_pgno;
u_int32_t flags;
{
COMPQUIET(ip, NULL);
COMPQUIET(txn, NULL);
COMPQUIET(name, NULL);
COMPQUIET(base_pgno, 0);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbp->env));
}
int
__ham_pgin(dbp, pg, pp, cookie)
DB *dbp;
db_pgno_t pg;
void *pp;
DBT *cookie;
{
COMPQUIET(pg, 0);
COMPQUIET(pp, NULL);
COMPQUIET(cookie, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_pgout(dbp, pg, pp, cookie)
DB *dbp;
db_pgno_t pg;
void *pp;
DBT *cookie;
{
COMPQUIET(pg, 0);
COMPQUIET(pp, NULL);
COMPQUIET(cookie, NULL);
return (__db_no_hash_am(dbp->env));
}
void
__ham_print_cursor(dbc)
DBC *dbc;
{
(void)__db_no_hash_am(dbc->env);
}
int
__ham_quick_delete(dbc)
DBC *dbc;
{
return (__db_no_hash_am(dbc->env));
}
int
__ham_reclaim(dbp, ip, txn)
DB *dbp;
DB_THREAD_INFO *ip;
DB_TXN *txn;
{
COMPQUIET(txn, NULL);
COMPQUIET(ip, NULL);
return (__db_no_hash_am(dbp->env));
}
int
__ham_salvage(dbp, vdp, pgno, h, handle, callback, flags)
DB *dbp;
VRFY_DBINFO *vdp;
db_pgno_t pgno;
PAGE *h;
void *handle;
int (*callback) __P((void *, const void *));
u_int32_t flags;
{
COMPQUIET(vdp, NULL);
COMPQUIET(pgno, 0);
COMPQUIET(h, NULL);
COMPQUIET(handle, NULL);
COMPQUIET(callback, NULL);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbp->env));
}
int
__ham_stat(dbc, spp, flags)
DBC *dbc;
void *spp;
u_int32_t flags;
{
COMPQUIET(spp, NULL);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbc->env));
}
int
__ham_stat_print(dbc, flags)
DBC *dbc;
u_int32_t flags;
{
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbc->env));
}
int
__ham_truncate(dbc, countp)
DBC *dbc;
u_int32_t *countp;
{
COMPQUIET(dbc, NULL);
COMPQUIET(countp, NULL);
return (__db_no_hash_am(dbc->env));
}
int
__ham_vrfy(dbp, vdp, h, pgno, flags)
DB *dbp;
VRFY_DBINFO *vdp;
PAGE *h;
db_pgno_t pgno;
u_int32_t flags;
{
COMPQUIET(vdp, NULL);
COMPQUIET(h, NULL);
COMPQUIET(pgno, 0);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbp->env));
}
int
__ham_vrfy_hashing(dbc, nentries, m, thisbucket, pgno, flags, hfunc)
DBC *dbc;
u_int32_t nentries;
HMETA *m;
u_int32_t thisbucket;
db_pgno_t pgno;
u_int32_t flags;
u_int32_t (*hfunc) __P((DB *, const void *, u_int32_t));
{
COMPQUIET(nentries, 0);
COMPQUIET(m, NULL);
COMPQUIET(thisbucket, 0);
COMPQUIET(pgno, 0);
COMPQUIET(flags, 0);
COMPQUIET(hfunc, NULL);
return (__db_no_hash_am(dbc->dbp->env));
}
int
__ham_vrfy_meta(dbp, vdp, m, pgno, flags)
DB *dbp;
VRFY_DBINFO *vdp;
HMETA *m;
db_pgno_t pgno;
u_int32_t flags;
{
COMPQUIET(vdp, NULL);
COMPQUIET(m, NULL);
COMPQUIET(pgno, 0);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbp->env));
}
int
__ham_vrfy_structure(dbp, vdp, meta_pgno, flags)
DB *dbp;
VRFY_DBINFO *vdp;
db_pgno_t meta_pgno;
u_int32_t flags;
{
COMPQUIET(vdp, NULL);
COMPQUIET(meta_pgno, 0);
COMPQUIET(flags, 0);
return (__db_no_hash_am(dbp->env));
}
#endif /* !HAVE_HASH */
|