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