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