xref: /freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/btree/extern.h (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1*7f2fe78bSCy Schubert /*-
2*7f2fe78bSCy Schubert  * Copyright (c) 1991, 1993, 1994
3*7f2fe78bSCy Schubert  *	The Regents of the University of California.  All rights reserved.
4*7f2fe78bSCy Schubert  *
5*7f2fe78bSCy Schubert  * Redistribution and use in source and binary forms, with or without
6*7f2fe78bSCy Schubert  * modification, are permitted provided that the following conditions
7*7f2fe78bSCy Schubert  * are met:
8*7f2fe78bSCy Schubert  * 1. Redistributions of source code must retain the above copyright
9*7f2fe78bSCy Schubert  *    notice, this list of conditions and the following disclaimer.
10*7f2fe78bSCy Schubert  * 2. Redistributions in binary form must reproduce the above copyright
11*7f2fe78bSCy Schubert  *    notice, this list of conditions and the following disclaimer in the
12*7f2fe78bSCy Schubert  *    documentation and/or other materials provided with the distribution.
13*7f2fe78bSCy Schubert  * 3. All advertising materials mentioning features or use of this software
14*7f2fe78bSCy Schubert  *    must display the following acknowledgement:
15*7f2fe78bSCy Schubert  *	This product includes software developed by the University of
16*7f2fe78bSCy Schubert  *	California, Berkeley and its contributors.
17*7f2fe78bSCy Schubert  * 4. Neither the name of the University nor the names of its contributors
18*7f2fe78bSCy Schubert  *    may be used to endorse or promote products derived from this software
19*7f2fe78bSCy Schubert  *    without specific prior written permission.
20*7f2fe78bSCy Schubert  *
21*7f2fe78bSCy Schubert  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22*7f2fe78bSCy Schubert  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*7f2fe78bSCy Schubert  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*7f2fe78bSCy Schubert  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25*7f2fe78bSCy Schubert  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*7f2fe78bSCy Schubert  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*7f2fe78bSCy Schubert  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*7f2fe78bSCy Schubert  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*7f2fe78bSCy Schubert  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*7f2fe78bSCy Schubert  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*7f2fe78bSCy Schubert  * SUCH DAMAGE.
32*7f2fe78bSCy Schubert  *
33*7f2fe78bSCy Schubert  *	@(#)extern.h	8.11 (Berkeley) 1/9/95
34*7f2fe78bSCy Schubert  */
35*7f2fe78bSCy Schubert 
36*7f2fe78bSCy Schubert #define __bt_close	__kdb2_bt_close
37*7f2fe78bSCy Schubert #define __bt_cmp	__kdb2_bt_cmp
38*7f2fe78bSCy Schubert #define __bt_crsrdel	__kdb2_bt_crsrdel
39*7f2fe78bSCy Schubert #define __bt_defcmp	__kdb2_bt_defcmp
40*7f2fe78bSCy Schubert #define __bt_defpfx	__kdb2_bt_defpfx
41*7f2fe78bSCy Schubert #define __bt_delete	__kdb2_bt_delete
42*7f2fe78bSCy Schubert #define __bt_dleaf	__kdb2_bt_deleaf
43*7f2fe78bSCy Schubert #define __bt_fd		__kdb2_bt_fd
44*7f2fe78bSCy Schubert #define __bt_free	__kdb2_bt_free
45*7f2fe78bSCy Schubert #define __bt_get	__kdb2_bt_get
46*7f2fe78bSCy Schubert #define __bt_new	__kdb2_bt_new
47*7f2fe78bSCy Schubert #define __bt_pgin	__kdb2_bt_pgin
48*7f2fe78bSCy Schubert #define __bt_pgout	__kdb2_bt_pgout
49*7f2fe78bSCy Schubert #define __bt_push	__kdb2_bt_push
50*7f2fe78bSCy Schubert #define __bt_put	__kdb2_bt_put
51*7f2fe78bSCy Schubert #define __bt_ret	__kdb2_bt_ret
52*7f2fe78bSCy Schubert #define __bt_search	__kdb2_bt_search
53*7f2fe78bSCy Schubert #define __bt_seq	__kdb2_bt_seq
54*7f2fe78bSCy Schubert #define __bt_setcur	__kdb2_bt_setcur
55*7f2fe78bSCy Schubert #define __bt_split	__kdb2_bt_split
56*7f2fe78bSCy Schubert #define __bt_sync	__kdb2_bt_sync
57*7f2fe78bSCy Schubert #define __ovfl_delete	__kdb2_ovfl_delete
58*7f2fe78bSCy Schubert #define __ovfl_get	__kdb2_ovfl_get
59*7f2fe78bSCy Schubert #define __ovfl_put	__kdb2_ovfl_put
60*7f2fe78bSCy Schubert #define __bt_dnpage	__kdb2_bt_dnpage
61*7f2fe78bSCy Schubert #define __bt_dmpage	__kdb2_bt_dmpage
62*7f2fe78bSCy Schubert #define __bt_dpage	__kdb2_bt_dpage
63*7f2fe78bSCy Schubert #define __bt_dump	__kdb2_bt_dump
64*7f2fe78bSCy Schubert #define __bt_stat	__kdb2_bt_stat
65*7f2fe78bSCy Schubert #define __bt_relink	__kdb2_bt_relink
66*7f2fe78bSCy Schubert 
67*7f2fe78bSCy Schubert int	 __bt_close __P((DB *));
68*7f2fe78bSCy Schubert int	 __bt_cmp __P((BTREE *, const DBT *, EPG *));
69*7f2fe78bSCy Schubert int	 __bt_crsrdel __P((BTREE *, EPGNO *));
70*7f2fe78bSCy Schubert int	 __bt_defcmp __P((const DBT *, const DBT *));
71*7f2fe78bSCy Schubert size_t	 __bt_defpfx __P((const DBT *, const DBT *));
72*7f2fe78bSCy Schubert int	 __bt_delete __P((const DB *, const DBT *, u_int));
73*7f2fe78bSCy Schubert int	 __bt_dleaf __P((BTREE *, const DBT *, PAGE *, u_int));
74*7f2fe78bSCy Schubert int	 __bt_fd __P((const DB *));
75*7f2fe78bSCy Schubert int	 __bt_free __P((BTREE *, PAGE *));
76*7f2fe78bSCy Schubert int	 __bt_get __P((const DB *, const DBT *, DBT *, u_int));
77*7f2fe78bSCy Schubert PAGE	*__bt_new __P((BTREE *, db_pgno_t *));
78*7f2fe78bSCy Schubert void	 __bt_pgin __P((void *, db_pgno_t, void *));
79*7f2fe78bSCy Schubert void	 __bt_pgout __P((void *, db_pgno_t, void *));
80*7f2fe78bSCy Schubert int	 __bt_push __P((BTREE *, db_pgno_t, int));
81*7f2fe78bSCy Schubert int	 __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int));
82*7f2fe78bSCy Schubert int	 __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int));
83*7f2fe78bSCy Schubert EPG	*__bt_search __P((BTREE *, const DBT *, int *));
84*7f2fe78bSCy Schubert int	 __bt_seq __P((const DB *, DBT *, DBT *, u_int));
85*7f2fe78bSCy Schubert void	 __bt_setcur __P((BTREE *, db_pgno_t, u_int));
86*7f2fe78bSCy Schubert int	 __bt_split __P((BTREE *, PAGE *,
87*7f2fe78bSCy Schubert 	    const DBT *, const DBT *, int, size_t, u_int32_t));
88*7f2fe78bSCy Schubert int	 __bt_sync __P((const DB *, u_int));
89*7f2fe78bSCy Schubert 
90*7f2fe78bSCy Schubert int	 __ovfl_delete __P((BTREE *, void *));
91*7f2fe78bSCy Schubert int	 __ovfl_get __P((BTREE *, void *, size_t *, void **, size_t *));
92*7f2fe78bSCy Schubert int	 __ovfl_put __P((BTREE *, const DBT *, db_pgno_t *));
93*7f2fe78bSCy Schubert 
94*7f2fe78bSCy Schubert int	 __bt_dnpage __P((DB *, db_pgno_t));
95*7f2fe78bSCy Schubert int	 __bt_dpage __P((DB *, PAGE *));
96*7f2fe78bSCy Schubert int	 __bt_dmpage __P((PAGE *));
97*7f2fe78bSCy Schubert int	 __bt_dump __P((DB *));
98*7f2fe78bSCy Schubert 
99*7f2fe78bSCy Schubert int	 __bt_stat __P((DB *));
100*7f2fe78bSCy Schubert 
101*7f2fe78bSCy Schubert int	 __bt_relink __P((BTREE *, PAGE *));
102