11573Srgrimes/*- 214272Spst * Copyright (c) 1991, 1993, 1994 31573Srgrimes * The Regents of the University of California. All rights reserved. 41573Srgrimes * 51573Srgrimes * Redistribution and use in source and binary forms, with or without 61573Srgrimes * modification, are permitted provided that the following conditions 71573Srgrimes * are met: 81573Srgrimes * 1. Redistributions of source code must retain the above copyright 91573Srgrimes * notice, this list of conditions and the following disclaimer. 101573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111573Srgrimes * notice, this list of conditions and the following disclaimer in the 121573Srgrimes * documentation and/or other materials provided with the distribution. 131573Srgrimes * 4. Neither the name of the University nor the names of its contributors 141573Srgrimes * may be used to endorse or promote products derived from this software 151573Srgrimes * without specific prior written permission. 161573Srgrimes * 171573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 181573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201573Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 211573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 221573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 231573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 241573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 251573Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 261573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 271573Srgrimes * SUCH DAMAGE. 281573Srgrimes * 2914272Spst * @(#)extern.h 8.10 (Berkeley) 7/20/94 3092905Sobrien * $FreeBSD$ 311573Srgrimes */ 321573Srgrimes 3392905Sobrienint __bt_close(DB *); 3492905Sobrienint __bt_cmp(BTREE *, const DBT *, EPG *); 3592905Sobrienint __bt_crsrdel(BTREE *, EPGNO *); 3692905Sobrienint __bt_defcmp(const DBT *, const DBT *); 3792905Sobriensize_t __bt_defpfx(const DBT *, const DBT *); 3892905Sobrienint __bt_delete(const DB *, const DBT *, u_int); 3992905Sobrienint __bt_dleaf(BTREE *, const DBT *, PAGE *, u_int); 4092905Sobrienint __bt_fd(const DB *); 4192905Sobrienint __bt_free(BTREE *, PAGE *); 4292905Sobrienint __bt_get(const DB *, const DBT *, DBT *, u_int); 4392905SobrienPAGE *__bt_new(BTREE *, pgno_t *); 4492905Sobrienvoid __bt_pgin(void *, pgno_t, void *); 4592905Sobrienvoid __bt_pgout(void *, pgno_t, void *); 4692905Sobrienint __bt_push(BTREE *, pgno_t, int); 4792905Sobrienint __bt_put(const DB *dbp, DBT *, const DBT *, u_int); 4892905Sobrienint __bt_ret(BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int); 4992905SobrienEPG *__bt_search(BTREE *, const DBT *, int *); 5092905Sobrienint __bt_seq(const DB *, DBT *, DBT *, u_int); 5192905Sobrienvoid __bt_setcur(BTREE *, pgno_t, u_int); 5292941Sobrienint __bt_split(BTREE *, PAGE *, 5392941Sobrien const DBT *, const DBT *, int, size_t, u_int32_t); 5492905Sobrienint __bt_sync(const DB *, u_int); 551573Srgrimes 5692905Sobrienint __ovfl_delete(BTREE *, void *); 5792905Sobrienint __ovfl_get(BTREE *, void *, size_t *, void **, size_t *); 5892905Sobrienint __ovfl_put(BTREE *, const DBT *, pgno_t *); 591573Srgrimes 601573Srgrimes#ifdef DEBUG 6192905Sobrienvoid __bt_dnpage(DB *, pgno_t); 6292905Sobrienvoid __bt_dpage(PAGE *); 6392905Sobrienvoid __bt_dump(DB *); 641573Srgrimes#endif 651573Srgrimes#ifdef STATISTICS 6692905Sobrienvoid __bt_stat(DB *); 671573Srgrimes#endif 68