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