extern.h revision 92905
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 * 3. All advertising materials mentioning features or use of this software
141573Srgrimes *    must display the following acknowledgement:
151573Srgrimes *	This product includes software developed by the University of
161573Srgrimes *	California, Berkeley and its contributors.
171573Srgrimes * 4. Neither the name of the University nor the names of its contributors
181573Srgrimes *    may be used to endorse or promote products derived from this software
191573Srgrimes *    without specific prior written permission.
201573Srgrimes *
211573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241573Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291573Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311573Srgrimes * SUCH DAMAGE.
321573Srgrimes *
3314272Spst *	@(#)extern.h	8.10 (Berkeley) 7/20/94
3492905Sobrien * $FreeBSD: head/lib/libc/db/btree/extern.h 92905 2002-03-21 22:49:10Z obrien $
351573Srgrimes */
361573Srgrimes
3792905Sobrienint	 __bt_close(DB *);
3892905Sobrienint	 __bt_cmp(BTREE *, const DBT *, EPG *);
3992905Sobrienint	 __bt_crsrdel(BTREE *, EPGNO *);
4092905Sobrienint	 __bt_defcmp(const DBT *, const DBT *);
4192905Sobriensize_t	 __bt_defpfx(const DBT *, const DBT *);
4292905Sobrienint	 __bt_delete(const DB *, const DBT *, u_int);
4392905Sobrienint	 __bt_dleaf(BTREE *, const DBT *, PAGE *, u_int);
4492905Sobrienint	 __bt_fd(const DB *);
4592905Sobrienint	 __bt_free(BTREE *, PAGE *);
4692905Sobrienint	 __bt_get(const DB *, const DBT *, DBT *, u_int);
4792905SobrienPAGE	*__bt_new(BTREE *, pgno_t *);
4892905Sobrienvoid	 __bt_pgin(void *, pgno_t, void *);
4992905Sobrienvoid	 __bt_pgout(void *, pgno_t, void *);
5092905Sobrienint	 __bt_push(BTREE *, pgno_t, int);
5192905Sobrienint	 __bt_put(const DB *dbp, DBT *, const DBT *, u_int);
5292905Sobrienint	 __bt_ret(BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int);
5392905SobrienEPG	*__bt_search(BTREE *, const DBT *, int *);
5492905Sobrienint	 __bt_seq(const DB *, DBT *, DBT *, u_int);
5592905Sobrienvoid	 __bt_setcur(BTREE *, pgno_t, u_int);
561573Srgrimesint	 __bt_split __P((BTREE *, PAGE *,
5714272Spst	    const DBT *, const DBT *, int, size_t, u_int32_t));
5892905Sobrienint	 __bt_sync(const DB *, u_int);
591573Srgrimes
6092905Sobrienint	 __ovfl_delete(BTREE *, void *);
6192905Sobrienint	 __ovfl_get(BTREE *, void *, size_t *, void **, size_t *);
6292905Sobrienint	 __ovfl_put(BTREE *, const DBT *, pgno_t *);
631573Srgrimes
641573Srgrimes#ifdef DEBUG
6592905Sobrienvoid	 __bt_dnpage(DB *, pgno_t);
6692905Sobrienvoid	 __bt_dpage(PAGE *);
6792905Sobrienvoid	 __bt_dump(DB *);
681573Srgrimes#endif
691573Srgrimes#ifdef STATISTICS
7092905Sobrienvoid	 __bt_stat(DB *);
711573Srgrimes#endif
72