xref: /csrg-svn/lib/libc/db/hash/extern.h (revision 51020)
1*51020Sbostic /*-
2*51020Sbostic  * Copyright (c) 1991 The Regents of the University of California.
3*51020Sbostic  * All rights reserved.
4*51020Sbostic  *
5*51020Sbostic  * %sccs.include.redist.c%
6*51020Sbostic  *
7*51020Sbostic  *	@(#)extern.h	5.1 (Berkeley) 09/06/91
8*51020Sbostic  */
9*51020Sbostic 
10*51020Sbostic BUFHEAD	*__add_ovflpage __P((BUFHEAD *));
11*51020Sbostic int	 __addel __P((BUFHEAD *, const DBT *, const DBT *));
12*51020Sbostic int	 __big_delete __P((BUFHEAD *, int));
13*51020Sbostic int	 __big_insert __P((BUFHEAD *, const DBT *, const DBT *));
14*51020Sbostic int	 __big_keydata __P((BUFHEAD *, int, DBT *, DBT *, int));
15*51020Sbostic int	 __big_return __P((BUFHEAD *, int, DBT *, int));
16*51020Sbostic int	 __big_split __P((BUFHEAD *, BUFHEAD *, BUFHEAD *,
17*51020Sbostic 		int, u_int, SPLIT_RETURN *));
18*51020Sbostic int	 __buf_free __P((int, int));
19*51020Sbostic void	 __buf_init __P((int));
20*51020Sbostic u_int	 __call_hash __P((char *, int));
21*51020Sbostic int	 __delpair __P((BUFHEAD *, int));
22*51020Sbostic int	 __expand_table __P((void));
23*51020Sbostic int	 __find_bigpair __P((BUFHEAD *, int, char *, int));
24*51020Sbostic u_short	 __find_last_page __P((BUFHEAD **));
25*51020Sbostic void	 __free_ovflpage __P((BUFHEAD *));
26*51020Sbostic BUFHEAD	*__get_buf __P((u_int, BUFHEAD *, int));
27*51020Sbostic int	 __get_page __P((char *, u_int, int, int, int));
28*51020Sbostic u_long	*__init_bitmap __P((int, int, int));
29*51020Sbostic int	 __log2 __P((int));
30*51020Sbostic int	 __put_page __P((char *, u_int, int, int));
31*51020Sbostic void	 __reclaim_buf __P((BUFHEAD *));
32*51020Sbostic int	 __split_page __P((u_int, u_int));
33*51020Sbostic 
34*51020Sbostic extern HTAB *hashp;
35*51020Sbostic #ifdef HASH_STATISTICS
36*51020Sbostic extern long hash_accesses, hash_collisions, hash_expansions, hash_overflows;
37*51020Sbostic #endif
38*51020Sbostic extern int (*default_hash) __P((u_char *, int));
39