xref: /csrg-svn/lib/libc/db/hash/extern.h (revision 51056)
151020Sbostic /*-
251020Sbostic  * Copyright (c) 1991 The Regents of the University of California.
351020Sbostic  * All rights reserved.
451020Sbostic  *
551020Sbostic  * %sccs.include.redist.c%
651020Sbostic  *
7*51056Sbostic  *	@(#)extern.h	5.2 (Berkeley) 09/08/91
851020Sbostic  */
951020Sbostic 
1051020Sbostic BUFHEAD	*__add_ovflpage __P((BUFHEAD *));
1151020Sbostic int	 __addel __P((BUFHEAD *, const DBT *, const DBT *));
12*51056Sbostic int	 __big_delete __P((BUFHEAD *));
1351020Sbostic int	 __big_insert __P((BUFHEAD *, const DBT *, const DBT *));
14*51056Sbostic int	 __big_keydata __P((BUFHEAD *, DBT *, DBT *, int));
1551020Sbostic int	 __big_return __P((BUFHEAD *, int, DBT *, int));
1651020Sbostic int	 __big_split __P((BUFHEAD *, BUFHEAD *, BUFHEAD *,
1751020Sbostic 		int, u_int, SPLIT_RETURN *));
1851020Sbostic int	 __buf_free __P((int, int));
1951020Sbostic void	 __buf_init __P((int));
2051020Sbostic u_int	 __call_hash __P((char *, int));
2151020Sbostic int	 __delpair __P((BUFHEAD *, int));
2251020Sbostic int	 __expand_table __P((void));
2351020Sbostic int	 __find_bigpair __P((BUFHEAD *, int, char *, int));
2451020Sbostic u_short	 __find_last_page __P((BUFHEAD **));
2551020Sbostic void	 __free_ovflpage __P((BUFHEAD *));
2651020Sbostic BUFHEAD	*__get_buf __P((u_int, BUFHEAD *, int));
2751020Sbostic int	 __get_page __P((char *, u_int, int, int, int));
28*51056Sbostic int	 __init_bitmap __P((int, int, int));
29*51056Sbostic u_int	 __log2 __P((u_int));
3051020Sbostic int	 __put_page __P((char *, u_int, int, int));
3151020Sbostic void	 __reclaim_buf __P((BUFHEAD *));
3251020Sbostic int	 __split_page __P((u_int, u_int));
3351020Sbostic 
3451020Sbostic extern HTAB *hashp;
3551020Sbostic #ifdef HASH_STATISTICS
3651020Sbostic extern long hash_accesses, hash_collisions, hash_expansions, hash_overflows;
3751020Sbostic #endif
3851020Sbostic extern int (*default_hash) __P((u_char *, int));
39