xref: /original-bsd/lib/libc/db/btree/extern.h (revision 95ecee29)
1 /*-
2  * Copyright (c) 1991, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.2 (Berkeley) 09/07/93
8  */
9 
10 int	 __bt_close __P((DB *));
11 int	 __bt_cmp __P((BTREE *, const DBT *, EPG *));
12 int	 __bt_crsrdel __P((BTREE *, EPGNO *));
13 int	 __bt_defcmp __P((const DBT *, const DBT *));
14 int	 __bt_defpfx __P((const DBT *, const DBT *));
15 int	 __bt_delete __P((const DB *, const DBT *, u_int));
16 int	 __bt_dleaf __P((BTREE *, PAGE *, int));
17 int	 __bt_fd __P((const DB *));
18 EPG	*__bt_first __P((BTREE *, const DBT *, int *));
19 int	 __bt_free __P((BTREE *, PAGE *));
20 int	 __bt_get __P((const DB *, const DBT *, DBT *, u_int));
21 PAGE	*__bt_new __P((BTREE *, pgno_t *));
22 void	 __bt_pgin __P((void *, pgno_t, void *));
23 void	 __bt_pgout __P((void *, pgno_t, void *));
24 int	 __bt_push __P((BTREE *, pgno_t, int));
25 int	 __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
26 int	 __bt_ret __P((BTREE *, EPG *, DBT *, DBT *));
27 EPG	*__bt_search __P((BTREE *, const DBT *, int *));
28 int	 __bt_seq __P((const DB *, DBT *, DBT *, u_int));
29 int	 __bt_split __P((BTREE *, PAGE *,
30 	    const DBT *, const DBT *, u_long, size_t, u_int));
31 int	 __bt_sync __P((const DB *, u_int));
32 
33 int	 __ovfl_delete __P((BTREE *, void *));
34 int	 __ovfl_get __P((BTREE *, void *, size_t *, char **, size_t *));
35 int	 __ovfl_put __P((BTREE *, const DBT *, pgno_t *));
36 
37 #ifdef DEBUG
38 void	 __bt_dnpage __P((DB *, pgno_t));
39 void	 __bt_dpage __P((PAGE *));
40 void	 __bt_dump __P((DB *));
41 #endif
42 #ifdef STATISTICS
43 void	 __bt_stat __P((DB *));
44 #endif
45