1 /* 2 * Copyright 1997-2002 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 6 #ifndef _KRB5_DB2_EXTERN_H 7 #define _KRB5_DB2_EXTERN_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /*- 14 * Copyright (c) 1991, 1993, 1994 15 * The Regents of the University of California. All rights reserved. 16 * 17 * Redistribution and use in source and binary forms, with or without 18 * modification, are permitted provided that the following conditions 19 * are met: 20 * 1. Redistributions of source code must retain the above copyright 21 * notice, this list of conditions and the following disclaimer. 22 * 2. Redistributions in binary form must reproduce the above copyright 23 * notice, this list of conditions and the following disclaimer in the 24 * documentation and/or other materials provided with the distribution. 25 * 3. All advertising materials mentioning features or use of this software 26 * must display the following acknowledgement: 27 * This product includes software developed by the University of 28 * California, Berkeley and its contributors. 29 * 4. Neither the name of the University nor the names of its contributors 30 * may be used to endorse or promote products derived from this software 31 * without specific prior written permission. 32 * 33 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 34 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 35 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 36 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 37 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 43 * SUCH DAMAGE. 44 * 45 * @(#)extern.h 8.8 (Berkeley) 11/7/95 46 */ 47 48 #define __add_bigpage __kdb2_add_bigpage 49 #define __add_ovflpage __kdb2_add_ovflpage 50 #define __addel __kdb2_addel 51 #define __alloc_tmp __kdb2_alloc_tmp 52 #define __big_delete __kdb2_big_delete 53 #define __big_insert __kdb2_big_insert 54 #define __big_keydata __kdb2_big_keydata 55 #define __big_return __kdb2_big_return 56 #define __call_hash __kdb2_call_hash 57 #define __cursor_creat __kdb2_cursor_creat 58 #define __delete_page __kdb2_delete_page 59 #define __delpair __kdb2_delpair 60 #define __expand_table __kdb2_expand_table 61 #define __find_bigpair __kdb2_find_bigpair 62 #define __free_ovflpage __kdb2_free_ovflpage 63 #define __get_bigkey __kdb2_get_bigkey 64 #define __get_buf __kdb2_get_buf 65 #define __get_item __kdb2_get_item 66 #define __get_item_done __kdb2_get_item_done 67 #define __get_item_first __kdb2_get_item_first 68 #define __get_item_next __kdb2_get_item_next 69 #define __get_item_reset __kdb2_get_item_reset 70 #define __get_page __kdb2_get_page 71 #define __ibitmap __kdb2_ibitmap 72 #define __log2 __kdb2_log2 73 #define __new_page __kdb2_new_page 74 #define __pgin_routine __kdb2_pgin_routine 75 #define __pgout_routine __kdb2_pgout_routine 76 #define __put_buf __kdb2_put_buf 77 #define __put_page __kdb2_put_page 78 #define __reclaim_tmp __kdb2_reclaim_tmp 79 #define __split_page __kdb2_split_page 80 81 PAGE16 *__add_bigpage __P((HTAB *, PAGE16 *, indx_t, const u_int8_t)); 82 PAGE16 *__add_ovflpage __P((HTAB *, PAGE16 *)); 83 int32_t __addel __P((HTAB *, ITEM_INFO *, 84 const DBT *, const DBT *, u_int32_t, const u_int8_t)); 85 u_int32_t __alloc_tmp __P((HTAB*)); 86 int32_t __big_delete __P((HTAB *, PAGE16 *, indx_t)); 87 int32_t __big_insert __P((HTAB *, PAGE16 *, const DBT *, const DBT *)); 88 int32_t __big_keydata __P((HTAB *, PAGE16 *, DBT *, DBT *, int32_t)); 89 int32_t __big_return __P((HTAB *, ITEM_INFO *, DBT *, int32_t)); 90 u_int32_t __call_hash __P((HTAB *, int8_t *, int32_t)); 91 CURSOR *__cursor_creat __P((const DB *)); 92 int32_t __delete_page __P((HTAB *, PAGE16 *, int32_t)); 93 int32_t __delpair __P((HTAB *, CURSOR *, ITEM_INFO *)); 94 int32_t __expand_table __P((HTAB *)); 95 int32_t __find_bigpair __P((HTAB *, CURSOR *, int8_t *, int32_t)); 96 void __free_ovflpage __P((HTAB *, PAGE16 *)); 97 int32_t __get_bigkey __P((HTAB *, PAGE16 *, indx_t, DBT *)); 98 PAGE16 *__get_buf __P((HTAB *, u_int32_t, int32_t)); 99 u_int32_t __get_item __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 100 u_int32_t __get_item_done __P((HTAB *, CURSOR *)); 101 u_int32_t __get_item_first __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 102 u_int32_t __get_item_next __P((HTAB *, CURSOR *, DBT *, DBT *, ITEM_INFO *)); 103 u_int32_t __get_item_reset __P((HTAB *, CURSOR *)); 104 PAGE16 *__get_page __P((HTAB *, u_int32_t, int32_t)); 105 int32_t __ibitmap __P((HTAB *, int32_t, int32_t, int32_t)); 106 u_int32_t __log2 __P((u_int32_t)); 107 int32_t __new_page __P((HTAB *, u_int32_t, int32_t)); 108 void __pgin_routine __P((void *, db_pgno_t, void *)); 109 void __pgout_routine __P((void *, db_pgno_t, void *)); 110 u_int32_t __put_buf __P((HTAB *, PAGE16 *, u_int32_t)); 111 int32_t __put_page __P((HTAB *, PAGE16 *, int32_t, int32_t)); 112 void __reclaim_tmp __P((HTAB *)); 113 int32_t __split_page __P((HTAB *, u_int32_t, u_int32_t)); 114 115 /* Default hash routine. */ 116 extern u_int32_t (*__default_hash) __P((const void *, size_t)); 117 118 #ifdef HASH_STATISTICS 119 extern long hash_accesses, hash_bigpages, hash_collisions, hash_expansions; 120 extern long hash_overflow; 121 #endif 122 123 #ifdef __cplusplus 124 } 125 #endif 126 127 #endif /* !_KRB5_DB2_EXTERN_H */ 128