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