2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1996-2003
5
* Sleepycat Software. All rights reserved.
10
static const char revid[] = "$Id: hash_stub.c,v 1.4 2003/07/01 19:47:14 bostic Exp $";
13
#ifndef NO_SYSTEM_INCLUDES
14
#include <sys/types.h>
18
#include "dbinc/db_page.h"
19
#include "dbinc/hash.h"
22
* If the library wasn't compiled with the Hash access method, various
23
* routines aren't available. Stub them here, returning an appropriate
29
* Error when a Berkeley DB build doesn't include the access method.
31
* PUBLIC: int __db_no_hash_am __P((DB_ENV *));
34
__db_no_hash_am(dbenv)
38
"library build did not include support for the Hash access method");
43
__ham_30_hashmeta(dbp, real_name, obuf)
48
COMPQUIET(real_name, NULL);
49
COMPQUIET(obuf, NULL);
50
return (__db_no_hash_am(dbp->dbenv));
54
__ham_30_sizefix(dbp, fhp, realname, metabuf)
61
COMPQUIET(realname, NULL);
62
COMPQUIET(metabuf, NULL);
63
return (__db_no_hash_am(dbp->dbenv));
67
__ham_31_hash(dbp, real_name, flags, fhp, h, dirtyp)
75
COMPQUIET(real_name, NULL);
79
COMPQUIET(dirtyp, NULL);
80
return (__db_no_hash_am(dbp->dbenv));
84
__ham_31_hashmeta(dbp, real_name, flags, fhp, h, dirtyp)
92
COMPQUIET(real_name, NULL);
96
COMPQUIET(dirtyp, NULL);
97
return (__db_no_hash_am(dbp->dbenv));
101
__ham_c_count(dbc, recnop)
105
COMPQUIET(recnop, NULL);
106
return (__db_no_hash_am(dbc->dbp->dbenv));
110
__ham_c_dup(orig_dbc, new_dbc)
111
DBC *orig_dbc, *new_dbc;
113
COMPQUIET(new_dbc, NULL);
114
return (__db_no_hash_am(orig_dbc->dbp->dbenv));
121
return (__db_no_hash_am(dbc->dbp->dbenv));
128
COMPQUIET(dbc, NULL);
136
COMPQUIET(dbp, NULL);
144
COMPQUIET(dbp, NULL);
149
__ham_init_getpgnos(dbenv, dtabp, dtabsizep)
151
int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
154
COMPQUIET(dbenv, NULL);
155
COMPQUIET(dtabp, NULL);
156
COMPQUIET(dtabsizep, NULL);
161
__ham_init_print(dbenv, dtabp, dtabsizep)
163
int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
166
COMPQUIET(dbenv, NULL);
167
COMPQUIET(dtabp, NULL);
168
COMPQUIET(dtabsizep, NULL);
173
__ham_init_recover(dbenv, dtabp, dtabsizep)
175
int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
178
COMPQUIET(dbenv, NULL);
179
COMPQUIET(dtabp, NULL);
180
COMPQUIET(dtabsizep, NULL);
185
__ham_meta2pgset(dbp, vdp, hmeta, flags, pgset)
192
COMPQUIET(vdp, NULL);
193
COMPQUIET(hmeta, NULL);
195
COMPQUIET(pgset, NULL);
196
return (__db_no_hash_am(dbp->dbenv));
200
__ham_metachk(dbp, name, hashm)
205
COMPQUIET(name, NULL);
206
COMPQUIET(hashm, NULL);
207
return (__db_no_hash_am(dbp->dbenv));
211
__ham_new_file(dbp, txn, fhp, name)
217
COMPQUIET(txn, NULL);
218
COMPQUIET(fhp, NULL);
219
COMPQUIET(name, NULL);
220
return (__db_no_hash_am(dbp->dbenv));
224
__ham_new_subdb(mdbp, dbp, txn)
228
COMPQUIET(dbp, NULL);
229
COMPQUIET(txn, NULL);
230
return (__db_no_hash_am(mdbp->dbenv));
234
__ham_open(dbp, txn, name, base_pgno, flags)
241
COMPQUIET(txn, NULL);
242
COMPQUIET(name, NULL);
243
COMPQUIET(base_pgno, 0);
245
return (__db_no_hash_am(dbp->dbenv));
249
__ham_pgin(dbenv, dummydbp, pg, pp, cookie)
256
COMPQUIET(dummydbp, NULL);
259
COMPQUIET(cookie, NULL);
260
return (__db_no_hash_am(dbenv));
264
__ham_pgout(dbenv, dummydbp, pg, pp, cookie)
271
COMPQUIET(dummydbp, NULL);
274
COMPQUIET(cookie, NULL);
275
return (__db_no_hash_am(dbenv));
279
__ham_quick_delete(dbc)
282
return (__db_no_hash_am(dbc->dbp->dbenv));
286
__ham_reclaim(dbp, txn)
290
COMPQUIET(txn, NULL);
291
return (__db_no_hash_am(dbp->dbenv));
295
__ham_salvage(dbp, vdp, pgno, h, handle, callback, flags)
301
int (*callback) __P((void *, const void *));
304
COMPQUIET(vdp, NULL);
307
COMPQUIET(handle, NULL);
308
COMPQUIET(callback, NULL);
310
return (__db_no_hash_am(dbp->dbenv));
314
__ham_stat(dbc, spp, flags)
319
COMPQUIET(spp, NULL);
321
return (__db_no_hash_am(dbc->dbp->dbenv));
325
__ham_truncate(dbc, countp)
329
COMPQUIET(dbc, NULL);
330
COMPQUIET(countp, NULL);
331
return (__db_no_hash_am(dbc->dbp->dbenv));
335
__ham_vrfy(dbp, vdp, h, pgno, flags)
342
COMPQUIET(vdp, NULL);
346
return (__db_no_hash_am(dbp->dbenv));
350
__ham_vrfy_hashing(dbp, nentries, m, thisbucket, pgno, flags, hfunc)
354
u_int32_t thisbucket;
357
u_int32_t (*hfunc) __P((DB *, const void *, u_int32_t));
359
COMPQUIET(nentries, 0);
361
COMPQUIET(thisbucket, 0);
364
COMPQUIET(hfunc, NULL);
365
return (__db_no_hash_am(dbp->dbenv));
369
__ham_vrfy_meta(dbp, vdp, m, pgno, flags)
376
COMPQUIET(vdp, NULL);
380
return (__db_no_hash_am(dbp->dbenv));
384
__ham_vrfy_structure(dbp, vdp, meta_pgno, flags)
390
COMPQUIET(vdp, NULL);
391
COMPQUIET(meta_pgno, 0);
393
return (__db_no_hash_am(dbp->dbenv));