17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * Copyright 1997-2002 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate * Use is subject to license terms. 47c478bd9Sstevel@tonic-gate */ 57c478bd9Sstevel@tonic-gate 67c478bd9Sstevel@tonic-gate #ifndef _KRB5_DB2_EXTERN_H 77c478bd9Sstevel@tonic-gate #define _KRB5_DB2_EXTERN_H 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gate #ifdef __cplusplus 107c478bd9Sstevel@tonic-gate extern "C" { 117c478bd9Sstevel@tonic-gate #endif 127c478bd9Sstevel@tonic-gate 137c478bd9Sstevel@tonic-gate /*- 147c478bd9Sstevel@tonic-gate * Copyright (c) 1991, 1993, 1994 157c478bd9Sstevel@tonic-gate * The Regents of the University of California. All rights reserved. 167c478bd9Sstevel@tonic-gate * 177c478bd9Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 187c478bd9Sstevel@tonic-gate * modification, are permitted provided that the following conditions 197c478bd9Sstevel@tonic-gate * are met: 207c478bd9Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 217c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 227c478bd9Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 237c478bd9Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in the 247c478bd9Sstevel@tonic-gate * documentation and/or other materials provided with the distribution. 257c478bd9Sstevel@tonic-gate * 3. All advertising materials mentioning features or use of this software 267c478bd9Sstevel@tonic-gate * must display the following acknowledgement: 277c478bd9Sstevel@tonic-gate * This product includes software developed by the University of 287c478bd9Sstevel@tonic-gate * California, Berkeley and its contributors. 297c478bd9Sstevel@tonic-gate * 4. Neither the name of the University nor the names of its contributors 307c478bd9Sstevel@tonic-gate * may be used to endorse or promote products derived from this software 317c478bd9Sstevel@tonic-gate * without specific prior written permission. 327c478bd9Sstevel@tonic-gate * 337c478bd9Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 347c478bd9Sstevel@tonic-gate * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 357c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 367c478bd9Sstevel@tonic-gate * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 377c478bd9Sstevel@tonic-gate * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 387c478bd9Sstevel@tonic-gate * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 397c478bd9Sstevel@tonic-gate * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 407c478bd9Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 417c478bd9Sstevel@tonic-gate * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 427c478bd9Sstevel@tonic-gate * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 437c478bd9Sstevel@tonic-gate * SUCH DAMAGE. 447c478bd9Sstevel@tonic-gate * 457c478bd9Sstevel@tonic-gate * @(#)extern.h 8.8 (Berkeley) 11/7/95 467c478bd9Sstevel@tonic-gate */ 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate #define __add_bigpage __kdb2_add_bigpage 497c478bd9Sstevel@tonic-gate #define __add_ovflpage __kdb2_add_ovflpage 507c478bd9Sstevel@tonic-gate #define __addel __kdb2_addel 517c478bd9Sstevel@tonic-gate #define __alloc_tmp __kdb2_alloc_tmp 527c478bd9Sstevel@tonic-gate #define __big_delete __kdb2_big_delete 537c478bd9Sstevel@tonic-gate #define __big_insert __kdb2_big_insert 547c478bd9Sstevel@tonic-gate #define __big_keydata __kdb2_big_keydata 557c478bd9Sstevel@tonic-gate #define __big_return __kdb2_big_return 567c478bd9Sstevel@tonic-gate #define __call_hash __kdb2_call_hash 577c478bd9Sstevel@tonic-gate #define __cursor_creat __kdb2_cursor_creat 587c478bd9Sstevel@tonic-gate #define __delete_page __kdb2_delete_page 597c478bd9Sstevel@tonic-gate #define __delpair __kdb2_delpair 607c478bd9Sstevel@tonic-gate #define __expand_table __kdb2_expand_table 617c478bd9Sstevel@tonic-gate #define __find_bigpair __kdb2_find_bigpair 627c478bd9Sstevel@tonic-gate #define __free_ovflpage __kdb2_free_ovflpage 637c478bd9Sstevel@tonic-gate #define __get_bigkey __kdb2_get_bigkey 647c478bd9Sstevel@tonic-gate #define __get_buf __kdb2_get_buf 657c478bd9Sstevel@tonic-gate #define __get_item __kdb2_get_item 667c478bd9Sstevel@tonic-gate #define __get_item_done __kdb2_get_item_done 677c478bd9Sstevel@tonic-gate #define __get_item_first __kdb2_get_item_first 687c478bd9Sstevel@tonic-gate #define __get_item_next __kdb2_get_item_next 697c478bd9Sstevel@tonic-gate #define __get_item_reset __kdb2_get_item_reset 707c478bd9Sstevel@tonic-gate #define __get_page __kdb2_get_page 717c478bd9Sstevel@tonic-gate #define __ibitmap __kdb2_ibitmap 727c478bd9Sstevel@tonic-gate #define __log2 __kdb2_log2 737c478bd9Sstevel@tonic-gate #define __new_page __kdb2_new_page 747c478bd9Sstevel@tonic-gate #define __pgin_routine __kdb2_pgin_routine 757c478bd9Sstevel@tonic-gate #define __pgout_routine __kdb2_pgout_routine 767c478bd9Sstevel@tonic-gate #define __put_buf __kdb2_put_buf 777c478bd9Sstevel@tonic-gate #define __put_page __kdb2_put_page 787c478bd9Sstevel@tonic-gate #define __reclaim_tmp __kdb2_reclaim_tmp 797c478bd9Sstevel@tonic-gate #define __split_page __kdb2_split_page 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate PAGE16 *__add_bigpage __P((HTAB *, PAGE16 *, indx_t, const u_int8_t)); 827c478bd9Sstevel@tonic-gate PAGE16 *__add_ovflpage __P((HTAB *, PAGE16 *)); 837c478bd9Sstevel@tonic-gate int32_t __addel __P((HTAB *, ITEM_INFO *, 847c478bd9Sstevel@tonic-gate const DBT *, const DBT *, u_int32_t, const u_int8_t)); 857c478bd9Sstevel@tonic-gate u_int32_t __alloc_tmp __P((HTAB*)); 867c478bd9Sstevel@tonic-gate int32_t __big_delete __P((HTAB *, PAGE16 *, indx_t)); 877c478bd9Sstevel@tonic-gate int32_t __big_insert __P((HTAB *, PAGE16 *, const DBT *, const DBT *)); 887c478bd9Sstevel@tonic-gate int32_t __big_keydata __P((HTAB *, PAGE16 *, DBT *, DBT *, int32_t)); 897c478bd9Sstevel@tonic-gate int32_t __big_return __P((HTAB *, ITEM_INFO *, DBT *, int32_t)); 907c478bd9Sstevel@tonic-gate u_int32_t __call_hash __P((HTAB *, int8_t *, int32_t)); 917c478bd9Sstevel@tonic-gate CURSOR *__cursor_creat __P((const DB *)); 927c478bd9Sstevel@tonic-gate int32_t __delete_page __P((HTAB *, PAGE16 *, int32_t)); 937c478bd9Sstevel@tonic-gate int32_t __delpair __P((HTAB *, CURSOR *, ITEM_INFO *)); 947c478bd9Sstevel@tonic-gate int32_t __expand_table __P((HTAB *)); 957c478bd9Sstevel@tonic-gate int32_t __find_bigpair __P((HTAB *, CURSOR *, int8_t *, int32_t)); 967c478bd9Sstevel@tonic-gate void __free_ovflpage __P((HTAB *, PAGE16 *)); 977c478bd9Sstevel@tonic-gate int32_t __get_bigkey __P((HTAB *, PAGE16 *, indx_t, DBT *)); 987c478bd9Sstevel@tonic-gate PAGE16 *__get_buf __P((HTAB *, u_int32_t, int32_t)); 997c478bd9Sstevel@tonic-gate u_int32_t __get_item __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 1007c478bd9Sstevel@tonic-gate u_int32_t __get_item_done __P((HTAB *, CURSOR *)); 1017c478bd9Sstevel@tonic-gate u_int32_t __get_item_first __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 1027c478bd9Sstevel@tonic-gate u_int32_t __get_item_next __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 1037c478bd9Sstevel@tonic-gate u_int32_t __get_item_reset __P((HTAB *, CURSOR *)); 1047c478bd9Sstevel@tonic-gate PAGE16 *__get_page __P((HTAB *, u_int32_t, int32_t)); 1057c478bd9Sstevel@tonic-gate int32_t __ibitmap __P((HTAB *, int32_t, int32_t, int32_t)); 1067c478bd9Sstevel@tonic-gate u_int32_t __log2 __P((u_int32_t)); 1077c478bd9Sstevel@tonic-gate int32_t __new_page __P((HTAB *, u_int32_t, int32_t)); 1087c478bd9Sstevel@tonic-gate void __pgin_routine __P((void *, db_pgno_t, void *)); 1097c478bd9Sstevel@tonic-gate void __pgout_routine __P((void *, db_pgno_t, void *)); 1107c478bd9Sstevel@tonic-gate u_int32_t __put_buf __P((HTAB *, PAGE16 *, u_int32_t)); 1117c478bd9Sstevel@tonic-gate int32_t __put_page __P((HTAB *, PAGE16 *, int32_t, int32_t)); 1127c478bd9Sstevel@tonic-gate void __reclaim_tmp __P((HTAB *)); 1137c478bd9Sstevel@tonic-gate int32_t __split_page __P((HTAB *, u_int32_t, u_int32_t)); 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate /* Default hash routine. */ 1167c478bd9Sstevel@tonic-gate extern u_int32_t (*__default_hash) __P((const void *, size_t)); 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate #ifdef HASH_STATISTICS 1197c478bd9Sstevel@tonic-gate extern long hash_accesses, hash_bigpages, hash_collisions, hash_expansions; 1207c478bd9Sstevel@tonic-gate extern long hash_overflow; 1217c478bd9Sstevel@tonic-gate #endif 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1247c478bd9Sstevel@tonic-gate } 1257c478bd9Sstevel@tonic-gate #endif 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gate #endif /* !_KRB5_DB2_EXTERN_H */ 128