1*7c478bd9Sstevel@tonic-gate /* DO NOT EDIT: automatically built by dist/distrib. */ 2*7c478bd9Sstevel@tonic-gate #ifndef _hash_ext_h_ 3*7c478bd9Sstevel@tonic-gate #define _hash_ext_h_ 4*7c478bd9Sstevel@tonic-gate int __ham_open __P((DB *, DB_INFO *)); 5*7c478bd9Sstevel@tonic-gate int __ham_close __P((DB *)); 6*7c478bd9Sstevel@tonic-gate int __ham_c_init __P((DBC *)); 7*7c478bd9Sstevel@tonic-gate u_int32_t __ham_call_hash __P((HASH_CURSOR *, u_int8_t *, int32_t)); 8*7c478bd9Sstevel@tonic-gate int __ham_init_dbt __P((DBT *, u_int32_t, void **, u_int32_t *)); 9*7c478bd9Sstevel@tonic-gate void __ham_c_update 10*7c478bd9Sstevel@tonic-gate __P((HASH_CURSOR *, db_pgno_t, u_int32_t, int, int)); 11*7c478bd9Sstevel@tonic-gate int __ham_insdel_log 12*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 13*7c478bd9Sstevel@tonic-gate u_int32_t, u_int32_t, db_pgno_t, u_int32_t, 14*7c478bd9Sstevel@tonic-gate DB_LSN *, const DBT *, const DBT *)); 15*7c478bd9Sstevel@tonic-gate int __ham_insdel_print 16*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 17*7c478bd9Sstevel@tonic-gate int __ham_insdel_read __P((void *, __ham_insdel_args **)); 18*7c478bd9Sstevel@tonic-gate int __ham_newpage_log 19*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 20*7c478bd9Sstevel@tonic-gate u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, 21*7c478bd9Sstevel@tonic-gate db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *)); 22*7c478bd9Sstevel@tonic-gate int __ham_newpage_print 23*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 24*7c478bd9Sstevel@tonic-gate int __ham_newpage_read __P((void *, __ham_newpage_args **)); 25*7c478bd9Sstevel@tonic-gate int __ham_splitmeta_log 26*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 27*7c478bd9Sstevel@tonic-gate u_int32_t, u_int32_t, u_int32_t, u_int32_t, 28*7c478bd9Sstevel@tonic-gate DB_LSN *)); 29*7c478bd9Sstevel@tonic-gate int __ham_splitmeta_print 30*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 31*7c478bd9Sstevel@tonic-gate int __ham_splitmeta_read __P((void *, __ham_splitmeta_args **)); 32*7c478bd9Sstevel@tonic-gate int __ham_splitdata_log 33*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 34*7c478bd9Sstevel@tonic-gate u_int32_t, u_int32_t, db_pgno_t, const DBT *, 35*7c478bd9Sstevel@tonic-gate DB_LSN *)); 36*7c478bd9Sstevel@tonic-gate int __ham_splitdata_print 37*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 38*7c478bd9Sstevel@tonic-gate int __ham_splitdata_read __P((void *, __ham_splitdata_args **)); 39*7c478bd9Sstevel@tonic-gate int __ham_replace_log 40*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 41*7c478bd9Sstevel@tonic-gate u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, 42*7c478bd9Sstevel@tonic-gate int32_t, const DBT *, const DBT *, u_int32_t)); 43*7c478bd9Sstevel@tonic-gate int __ham_replace_print 44*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 45*7c478bd9Sstevel@tonic-gate int __ham_replace_read __P((void *, __ham_replace_args **)); 46*7c478bd9Sstevel@tonic-gate int __ham_newpgno_log 47*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 48*7c478bd9Sstevel@tonic-gate u_int32_t, u_int32_t, db_pgno_t, db_pgno_t, 49*7c478bd9Sstevel@tonic-gate u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, 50*7c478bd9Sstevel@tonic-gate DB_LSN *)); 51*7c478bd9Sstevel@tonic-gate int __ham_newpgno_print 52*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 53*7c478bd9Sstevel@tonic-gate int __ham_newpgno_read __P((void *, __ham_newpgno_args **)); 54*7c478bd9Sstevel@tonic-gate int __ham_ovfl_log 55*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 56*7c478bd9Sstevel@tonic-gate u_int32_t, db_pgno_t, u_int32_t, db_pgno_t, 57*7c478bd9Sstevel@tonic-gate u_int32_t, DB_LSN *)); 58*7c478bd9Sstevel@tonic-gate int __ham_ovfl_print 59*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 60*7c478bd9Sstevel@tonic-gate int __ham_ovfl_read __P((void *, __ham_ovfl_args **)); 61*7c478bd9Sstevel@tonic-gate int __ham_copypage_log 62*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DB_TXN *, DB_LSN *, u_int32_t, 63*7c478bd9Sstevel@tonic-gate u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, 64*7c478bd9Sstevel@tonic-gate DB_LSN *, db_pgno_t, DB_LSN *, const DBT *)); 65*7c478bd9Sstevel@tonic-gate int __ham_copypage_print 66*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 67*7c478bd9Sstevel@tonic-gate int __ham_copypage_read __P((void *, __ham_copypage_args **)); 68*7c478bd9Sstevel@tonic-gate int __ham_init_print __P((DB_ENV *)); 69*7c478bd9Sstevel@tonic-gate int __ham_init_recover __P((DB_ENV *)); 70*7c478bd9Sstevel@tonic-gate int __ham_pgin __P((db_pgno_t, void *, DBT *)); 71*7c478bd9Sstevel@tonic-gate int __ham_pgout __P((db_pgno_t, void *, DBT *)); 72*7c478bd9Sstevel@tonic-gate int __ham_mswap __P((void *)); 73*7c478bd9Sstevel@tonic-gate int __ham_add_dup __P((DBC *, DBT *, u_int32_t)); 74*7c478bd9Sstevel@tonic-gate void __ham_move_offpage __P((DBC *, PAGE *, u_int32_t, db_pgno_t)); 75*7c478bd9Sstevel@tonic-gate void __ham_dsearch __P((DBC *, DBT *, u_int32_t *, int *)); 76*7c478bd9Sstevel@tonic-gate u_int32_t __ham_func2 __P((const void *, u_int32_t)); 77*7c478bd9Sstevel@tonic-gate u_int32_t __ham_func3 __P((const void *, u_int32_t)); 78*7c478bd9Sstevel@tonic-gate u_int32_t __ham_func4 __P((const void *, u_int32_t)); 79*7c478bd9Sstevel@tonic-gate u_int32_t __ham_func5 __P((const void *, u_int32_t)); 80*7c478bd9Sstevel@tonic-gate int __ham_item __P((DBC *, db_lockmode_t)); 81*7c478bd9Sstevel@tonic-gate int __ham_item_reset __P((DBC *)); 82*7c478bd9Sstevel@tonic-gate void __ham_item_init __P((HASH_CURSOR *)); 83*7c478bd9Sstevel@tonic-gate int __ham_item_done __P((DBC *, int)); 84*7c478bd9Sstevel@tonic-gate int __ham_item_last __P((DBC *, db_lockmode_t)); 85*7c478bd9Sstevel@tonic-gate int __ham_item_first __P((DBC *, db_lockmode_t)); 86*7c478bd9Sstevel@tonic-gate int __ham_item_prev __P((DBC *, db_lockmode_t)); 87*7c478bd9Sstevel@tonic-gate int __ham_item_next __P((DBC *, db_lockmode_t)); 88*7c478bd9Sstevel@tonic-gate void __ham_putitem __P((PAGE *p, const DBT *, int)); 89*7c478bd9Sstevel@tonic-gate void __ham_reputpair 90*7c478bd9Sstevel@tonic-gate __P((PAGE *p, u_int32_t, u_int32_t, const DBT *, const DBT *)); 91*7c478bd9Sstevel@tonic-gate int __ham_del_pair __P((DBC *, int)); 92*7c478bd9Sstevel@tonic-gate int __ham_replpair __P((DBC *, DBT *, u_int32_t)); 93*7c478bd9Sstevel@tonic-gate void __ham_onpage_replace __P((PAGE *, size_t, u_int32_t, int32_t, 94*7c478bd9Sstevel@tonic-gate int32_t, DBT *)); 95*7c478bd9Sstevel@tonic-gate int __ham_split_page __P((DBC *, u_int32_t, u_int32_t)); 96*7c478bd9Sstevel@tonic-gate int __ham_add_el __P((DBC *, const DBT *, const DBT *, int)); 97*7c478bd9Sstevel@tonic-gate void __ham_copy_item __P((size_t, PAGE *, u_int32_t, PAGE *)); 98*7c478bd9Sstevel@tonic-gate int __ham_add_ovflpage __P((DBC *, PAGE *, int, PAGE **)); 99*7c478bd9Sstevel@tonic-gate int __ham_new_page __P((DB *, u_int32_t, u_int32_t, PAGE **)); 100*7c478bd9Sstevel@tonic-gate int __ham_del_page __P((DBC *, PAGE *)); 101*7c478bd9Sstevel@tonic-gate int __ham_put_page __P((DB *, PAGE *, int32_t)); 102*7c478bd9Sstevel@tonic-gate int __ham_dirty_page __P((DB *, PAGE *)); 103*7c478bd9Sstevel@tonic-gate int __ham_get_page __P((DB *, db_pgno_t, PAGE **)); 104*7c478bd9Sstevel@tonic-gate int __ham_overflow_page 105*7c478bd9Sstevel@tonic-gate __P((DBC *, u_int32_t, PAGE **)); 106*7c478bd9Sstevel@tonic-gate #ifdef DEBUG 107*7c478bd9Sstevel@tonic-gate db_pgno_t __bucket_to_page __P((HASH_CURSOR *, db_pgno_t)); 108*7c478bd9Sstevel@tonic-gate #endif 109*7c478bd9Sstevel@tonic-gate void __ham_init_ovflpages __P((DBC *)); 110*7c478bd9Sstevel@tonic-gate int __ham_get_cpage __P((DBC *, db_lockmode_t)); 111*7c478bd9Sstevel@tonic-gate int __ham_next_cpage __P((DBC *, db_pgno_t, int, u_int32_t)); 112*7c478bd9Sstevel@tonic-gate void __ham_dpair __P((DB *, PAGE *, u_int32_t)); 113*7c478bd9Sstevel@tonic-gate int __ham_insdel_recover 114*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 115*7c478bd9Sstevel@tonic-gate int __ham_newpage_recover 116*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 117*7c478bd9Sstevel@tonic-gate int __ham_replace_recover 118*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 119*7c478bd9Sstevel@tonic-gate int __ham_newpgno_recover 120*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 121*7c478bd9Sstevel@tonic-gate int __ham_splitmeta_recover 122*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 123*7c478bd9Sstevel@tonic-gate int __ham_splitdata_recover 124*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 125*7c478bd9Sstevel@tonic-gate int __ham_ovfl_recover 126*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 127*7c478bd9Sstevel@tonic-gate int __ham_copypage_recover 128*7c478bd9Sstevel@tonic-gate __P((DB_LOG *, DBT *, DB_LSN *, int, void *)); 129*7c478bd9Sstevel@tonic-gate int __ham_stat __P((DB *, void *, void *(*)(size_t), u_int32_t)); 130*7c478bd9Sstevel@tonic-gate #endif /* _hash_ext_h_ */ 131