1*0Sstevel@tonic-gate /*-
2*0Sstevel@tonic-gate * See the file LICENSE for redistribution information.
3*0Sstevel@tonic-gate *
4*0Sstevel@tonic-gate * Copyright (c) 1996, 1997, 1998
5*0Sstevel@tonic-gate * Sleepycat Software. All rights reserved.
6*0Sstevel@tonic-gate */
7*0Sstevel@tonic-gate
8*0Sstevel@tonic-gate #include "config.h"
9*0Sstevel@tonic-gate
10*0Sstevel@tonic-gate #ifndef lint
11*0Sstevel@tonic-gate static const char sccsid[] = "@(#)hash_stat.c 10.12 (Sleepycat) 12/19/98";
12*0Sstevel@tonic-gate #endif /* not lint */
13*0Sstevel@tonic-gate
14*0Sstevel@tonic-gate #ifndef NO_SYSTEM_INCLUDES
15*0Sstevel@tonic-gate #include <sys/types.h>
16*0Sstevel@tonic-gate
17*0Sstevel@tonic-gate #include <errno.h>
18*0Sstevel@tonic-gate #endif
19*0Sstevel@tonic-gate
20*0Sstevel@tonic-gate #include "db_int.h"
21*0Sstevel@tonic-gate #include "db_page.h"
22*0Sstevel@tonic-gate #include "hash.h"
23*0Sstevel@tonic-gate
24*0Sstevel@tonic-gate /*
25*0Sstevel@tonic-gate * __ham_stat --
26*0Sstevel@tonic-gate * Gather/print the hash statistics
27*0Sstevel@tonic-gate *
28*0Sstevel@tonic-gate * PUBLIC: int __ham_stat __P((DB *, void *, void *(*)(size_t), u_int32_t));
29*0Sstevel@tonic-gate */
30*0Sstevel@tonic-gate int
__ham_stat(dbp,spp,db_malloc,flags)31*0Sstevel@tonic-gate __ham_stat(dbp, spp, db_malloc, flags)
32*0Sstevel@tonic-gate DB *dbp;
33*0Sstevel@tonic-gate void *spp;
34*0Sstevel@tonic-gate void *(*db_malloc) __P((size_t));
35*0Sstevel@tonic-gate u_int32_t flags;
36*0Sstevel@tonic-gate {
37*0Sstevel@tonic-gate COMPQUIET(spp, NULL);
38*0Sstevel@tonic-gate COMPQUIET(db_malloc, NULL);
39*0Sstevel@tonic-gate COMPQUIET(flags, 0);
40*0Sstevel@tonic-gate
41*0Sstevel@tonic-gate DB_PANIC_CHECK(dbp);
42*0Sstevel@tonic-gate
43*0Sstevel@tonic-gate return (__db_eopnotsup(dbp->dbenv));
44*0Sstevel@tonic-gate }
45