17c478bd9Sstevel@tonic-gate /* 2c54c769dSwillf * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 57c478bd9Sstevel@tonic-gate 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gate #ifndef _KRB5_BTREE_EXTERN_H 87c478bd9Sstevel@tonic-gate #define _KRB5_BTREE_EXTERN_H 97c478bd9Sstevel@tonic-gate 107c478bd9Sstevel@tonic-gate #ifdef __cplusplus 117c478bd9Sstevel@tonic-gate extern "C" { 127c478bd9Sstevel@tonic-gate #endif 137c478bd9Sstevel@tonic-gate 147c478bd9Sstevel@tonic-gate /*- 157c478bd9Sstevel@tonic-gate * Copyright (c) 1991, 1993, 1994 167c478bd9Sstevel@tonic-gate * The Regents of the University of California. All rights reserved. 177c478bd9Sstevel@tonic-gate * 187c478bd9Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 197c478bd9Sstevel@tonic-gate * modification, are permitted provided that the following conditions 207c478bd9Sstevel@tonic-gate * are met: 217c478bd9Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 227c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 237c478bd9Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 247c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in the 257c478bd9Sstevel@tonic-gate * documentation and/or other materials provided with the distribution. 267c478bd9Sstevel@tonic-gate * 3. All advertising materials mentioning features or use of this software 277c478bd9Sstevel@tonic-gate * must display the following acknowledgement: 287c478bd9Sstevel@tonic-gate * This product includes software developed by the University of 297c478bd9Sstevel@tonic-gate * California, Berkeley and its contributors. 307c478bd9Sstevel@tonic-gate * 4. Neither the name of the University nor the names of its contributors 317c478bd9Sstevel@tonic-gate * may be used to endorse or promote products derived from this software 327c478bd9Sstevel@tonic-gate * without specific prior written permission. 337c478bd9Sstevel@tonic-gate * 347c478bd9Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 357c478bd9Sstevel@tonic-gate * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 367c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 377c478bd9Sstevel@tonic-gate * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 387c478bd9Sstevel@tonic-gate * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 397c478bd9Sstevel@tonic-gate * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 407c478bd9Sstevel@tonic-gate * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 417c478bd9Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 427c478bd9Sstevel@tonic-gate * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 437c478bd9Sstevel@tonic-gate * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 447c478bd9Sstevel@tonic-gate * SUCH DAMAGE. 457c478bd9Sstevel@tonic-gate * 467c478bd9Sstevel@tonic-gate * @(#)extern.h 8.11 (Berkeley) 1/9/95 477c478bd9Sstevel@tonic-gate */ 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate #define __bt_close __kdb2_bt_close 507c478bd9Sstevel@tonic-gate #define __bt_cmp __kdb2_bt_cmp 517c478bd9Sstevel@tonic-gate #define __bt_crsrdel __kdb2_bt_crsrdel 527c478bd9Sstevel@tonic-gate #define __bt_defcmp __kdb2_bt_defcmp 537c478bd9Sstevel@tonic-gate #define __bt_defpfx __kdb2_bt_defpfx 547c478bd9Sstevel@tonic-gate #define __bt_delete __kdb2_bt_delete 557c478bd9Sstevel@tonic-gate #define __bt_dleaf __kdb2_bt_deleaf 567c478bd9Sstevel@tonic-gate #define __bt_fd __kdb2_bt_fd 577c478bd9Sstevel@tonic-gate #define __bt_free __kdb2_bt_free 587c478bd9Sstevel@tonic-gate #define __bt_get __kdb2_bt_get 597c478bd9Sstevel@tonic-gate #define __bt_new __kdb2_bt_new 607c478bd9Sstevel@tonic-gate #define __bt_pgin __kdb2_bt_pgin 617c478bd9Sstevel@tonic-gate #define __bt_pgout __kdb2_bt_pgout 627c478bd9Sstevel@tonic-gate #define __bt_push __kdb2_bt_push 637c478bd9Sstevel@tonic-gate #define __bt_put __kdb2_bt_put 647c478bd9Sstevel@tonic-gate #define __bt_ret __kdb2_bt_ret 657c478bd9Sstevel@tonic-gate #define __bt_search __kdb2_bt_search 667c478bd9Sstevel@tonic-gate #define __bt_seq __kdb2_bt_seq 677c478bd9Sstevel@tonic-gate #define __bt_setcur __kdb2_bt_setcur 687c478bd9Sstevel@tonic-gate #define __bt_split __kdb2_bt_split 697c478bd9Sstevel@tonic-gate #define __bt_sync __kdb2_bt_sync 707c478bd9Sstevel@tonic-gate #define __ovfl_delete __kdb2_ovfl_delete 717c478bd9Sstevel@tonic-gate #define __ovfl_get __kdb2_ovfl_get 727c478bd9Sstevel@tonic-gate #define __ovfl_put __kdb2_ovfl_put 737c478bd9Sstevel@tonic-gate #define __bt_dnpage __kdb2_bt_dnpage 747c478bd9Sstevel@tonic-gate #define __bt_dmpage __kdb2_bt_dmpage 757c478bd9Sstevel@tonic-gate #define __bt_dpage __kdb2_bt_dpage 767c478bd9Sstevel@tonic-gate #define __bt_dump __kdb2_bt_dump 777c478bd9Sstevel@tonic-gate #define __bt_stat __kdb2_bt_stat 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate #define bt_rcinit kdb2_bt_rcinit 807c478bd9Sstevel@tonic-gate #define bt_rcdestroy kdb2_bt_rcdestroy 817c478bd9Sstevel@tonic-gate #define bt_rcpush kdb2_bt_rcpush 827c478bd9Sstevel@tonic-gate #define bt_rcpop kdb2_bt_rcpop 837c478bd9Sstevel@tonic-gate #define bt_rcclr kdb2_bt_rcclr 847c478bd9Sstevel@tonic-gate #define bt_rcgrowstk kdb2_bt_rcgrowstk 857c478bd9Sstevel@tonic-gate #define bt_rseqset kdb2_bt_rseqset 867c478bd9Sstevel@tonic-gate #define bt_rseqadv kdb2_bt_rseqadv 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate int __bt_close __P((DB *)); 897c478bd9Sstevel@tonic-gate int __bt_cmp __P((BTREE *, const DBT *, EPG *)); 907c478bd9Sstevel@tonic-gate int __bt_crsrdel __P((BTREE *, EPGNO *)); 917c478bd9Sstevel@tonic-gate int __bt_defcmp __P((const DBT *, const DBT *)); 927c478bd9Sstevel@tonic-gate size_t __bt_defpfx __P((const DBT *, const DBT *)); 937c478bd9Sstevel@tonic-gate int __bt_delete __P((const DB *, const DBT *, u_int)); 947c478bd9Sstevel@tonic-gate int __bt_dleaf __P((BTREE *, const DBT *, PAGE *, u_int)); 957c478bd9Sstevel@tonic-gate int __bt_fd __P((const DB *)); 967c478bd9Sstevel@tonic-gate int __bt_free __P((BTREE *, PAGE *)); 977c478bd9Sstevel@tonic-gate int __bt_get __P((const DB *, const DBT *, DBT *, u_int)); 987c478bd9Sstevel@tonic-gate PAGE *__bt_new __P((BTREE *, db_pgno_t *)); 997c478bd9Sstevel@tonic-gate void __bt_pgin __P((void *, db_pgno_t, void *)); 1007c478bd9Sstevel@tonic-gate void __bt_pgout __P((void *, db_pgno_t, void *)); 1017c478bd9Sstevel@tonic-gate int __bt_push __P((BTREE *, db_pgno_t, int)); 1027c478bd9Sstevel@tonic-gate int __bt_put __P((const DB *dbp, DBT *, const DBT *, u_int)); 1037c478bd9Sstevel@tonic-gate int __bt_ret __P((BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int)); 1047c478bd9Sstevel@tonic-gate EPG *__bt_search __P((BTREE *, const DBT *, int *)); 1057c478bd9Sstevel@tonic-gate int __bt_seq __P((const DB *, DBT *, DBT *, u_int)); 1067c478bd9Sstevel@tonic-gate void __bt_setcur __P((BTREE *, db_pgno_t, u_int)); 1077c478bd9Sstevel@tonic-gate int __bt_split __P((BTREE *, PAGE *, 1087c478bd9Sstevel@tonic-gate const DBT *, const DBT *, int, size_t, u_int32_t)); 1097c478bd9Sstevel@tonic-gate int __bt_sync __P((const DB *, u_int)); 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate int __ovfl_delete __P((BTREE *, void *)); 1127c478bd9Sstevel@tonic-gate int __ovfl_get __P((BTREE *, void *, size_t *, void **, size_t *)); 1137c478bd9Sstevel@tonic-gate int __ovfl_put __P((BTREE *, const DBT *, db_pgno_t *)); 1147c478bd9Sstevel@tonic-gate 11556a424ccSmp #ifdef DEBUG 1167c478bd9Sstevel@tonic-gate int __bt_dnpage __P((DB *, db_pgno_t)); 117c54c769dSwillf void __bt_dpage __P((DB *, PAGE *)); 1187c478bd9Sstevel@tonic-gate int __bt_dmpage __P((PAGE *)); 1197c478bd9Sstevel@tonic-gate int __bt_dump __P((DB *)); 1207c478bd9Sstevel@tonic-gate #endif 1217c478bd9Sstevel@tonic-gate #ifdef STATISTICS 1227c478bd9Sstevel@tonic-gate int __bt_stat __P((DB *)); 1237c478bd9Sstevel@tonic-gate #endif 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1267c478bd9Sstevel@tonic-gate } 1277c478bd9Sstevel@tonic-gate #endif 1287c478bd9Sstevel@tonic-gate 1297c478bd9Sstevel@tonic-gate #endif /* !_KRB5_BTREE_EXTERN_H */ 130