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