xref: /titanic_44/usr/src/cmd/sendmail/db/include/hash_auto.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /* Do not edit: automatically built by dist/db_gen.sh. */
2*7c478bd9Sstevel@tonic-gate 
3*7c478bd9Sstevel@tonic-gate /*
4*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1998 by Sun Microsystems, Inc.
5*7c478bd9Sstevel@tonic-gate  * All rights reserved.
6*7c478bd9Sstevel@tonic-gate  */
7*7c478bd9Sstevel@tonic-gate 
8*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
9*7c478bd9Sstevel@tonic-gate 
10*7c478bd9Sstevel@tonic-gate #ifndef ham_AUTO_H
11*7c478bd9Sstevel@tonic-gate #define ham_AUTO_H
12*7c478bd9Sstevel@tonic-gate 
13*7c478bd9Sstevel@tonic-gate #define	DB_ham_insdel	(DB_ham_BEGIN + 1)
14*7c478bd9Sstevel@tonic-gate 
15*7c478bd9Sstevel@tonic-gate typedef struct _ham_insdel_args {
16*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
17*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
18*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
19*7c478bd9Sstevel@tonic-gate 	u_int32_t	opcode;
20*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
21*7c478bd9Sstevel@tonic-gate 	db_pgno_t	pgno;
22*7c478bd9Sstevel@tonic-gate 	u_int32_t	ndx;
23*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
24*7c478bd9Sstevel@tonic-gate 	DBT	key;
25*7c478bd9Sstevel@tonic-gate 	DBT	data;
26*7c478bd9Sstevel@tonic-gate } __ham_insdel_args;
27*7c478bd9Sstevel@tonic-gate 
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate #define	DB_ham_newpage	(DB_ham_BEGIN + 2)
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate typedef struct _ham_newpage_args {
32*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
33*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
34*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
35*7c478bd9Sstevel@tonic-gate 	u_int32_t	opcode;
36*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
37*7c478bd9Sstevel@tonic-gate 	db_pgno_t	prev_pgno;
38*7c478bd9Sstevel@tonic-gate 	DB_LSN 	prevlsn;
39*7c478bd9Sstevel@tonic-gate 	db_pgno_t	new_pgno;
40*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
41*7c478bd9Sstevel@tonic-gate 	db_pgno_t	next_pgno;
42*7c478bd9Sstevel@tonic-gate 	DB_LSN 	nextlsn;
43*7c478bd9Sstevel@tonic-gate } __ham_newpage_args;
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate #define	DB_ham_splitmeta	(DB_ham_BEGIN + 3)
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate typedef struct _ham_splitmeta_args {
49*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
50*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
51*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
52*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
53*7c478bd9Sstevel@tonic-gate 	u_int32_t	bucket;
54*7c478bd9Sstevel@tonic-gate 	u_int32_t	ovflpoint;
55*7c478bd9Sstevel@tonic-gate 	u_int32_t	spares;
56*7c478bd9Sstevel@tonic-gate 	DB_LSN 	metalsn;
57*7c478bd9Sstevel@tonic-gate } __ham_splitmeta_args;
58*7c478bd9Sstevel@tonic-gate 
59*7c478bd9Sstevel@tonic-gate 
60*7c478bd9Sstevel@tonic-gate #define	DB_ham_splitdata	(DB_ham_BEGIN + 4)
61*7c478bd9Sstevel@tonic-gate 
62*7c478bd9Sstevel@tonic-gate typedef struct _ham_splitdata_args {
63*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
64*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
65*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
66*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
67*7c478bd9Sstevel@tonic-gate 	u_int32_t	opcode;
68*7c478bd9Sstevel@tonic-gate 	db_pgno_t	pgno;
69*7c478bd9Sstevel@tonic-gate 	DBT	pageimage;
70*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
71*7c478bd9Sstevel@tonic-gate } __ham_splitdata_args;
72*7c478bd9Sstevel@tonic-gate 
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate #define	DB_ham_replace	(DB_ham_BEGIN + 5)
75*7c478bd9Sstevel@tonic-gate 
76*7c478bd9Sstevel@tonic-gate typedef struct _ham_replace_args {
77*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
78*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
79*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
80*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
81*7c478bd9Sstevel@tonic-gate 	db_pgno_t	pgno;
82*7c478bd9Sstevel@tonic-gate 	u_int32_t	ndx;
83*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
84*7c478bd9Sstevel@tonic-gate 	int32_t	off;
85*7c478bd9Sstevel@tonic-gate 	DBT	olditem;
86*7c478bd9Sstevel@tonic-gate 	DBT	newitem;
87*7c478bd9Sstevel@tonic-gate 	u_int32_t	makedup;
88*7c478bd9Sstevel@tonic-gate } __ham_replace_args;
89*7c478bd9Sstevel@tonic-gate 
90*7c478bd9Sstevel@tonic-gate 
91*7c478bd9Sstevel@tonic-gate #define	DB_ham_newpgno	(DB_ham_BEGIN + 6)
92*7c478bd9Sstevel@tonic-gate 
93*7c478bd9Sstevel@tonic-gate typedef struct _ham_newpgno_args {
94*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
95*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
96*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
97*7c478bd9Sstevel@tonic-gate 	u_int32_t	opcode;
98*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
99*7c478bd9Sstevel@tonic-gate 	db_pgno_t	pgno;
100*7c478bd9Sstevel@tonic-gate 	db_pgno_t	free_pgno;
101*7c478bd9Sstevel@tonic-gate 	u_int32_t	old_type;
102*7c478bd9Sstevel@tonic-gate 	db_pgno_t	old_pgno;
103*7c478bd9Sstevel@tonic-gate 	u_int32_t	new_type;
104*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
105*7c478bd9Sstevel@tonic-gate 	DB_LSN 	metalsn;
106*7c478bd9Sstevel@tonic-gate } __ham_newpgno_args;
107*7c478bd9Sstevel@tonic-gate 
108*7c478bd9Sstevel@tonic-gate 
109*7c478bd9Sstevel@tonic-gate #define	DB_ham_ovfl	(DB_ham_BEGIN + 7)
110*7c478bd9Sstevel@tonic-gate 
111*7c478bd9Sstevel@tonic-gate typedef struct _ham_ovfl_args {
112*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
113*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
114*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
115*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
116*7c478bd9Sstevel@tonic-gate 	db_pgno_t	start_pgno;
117*7c478bd9Sstevel@tonic-gate 	u_int32_t	npages;
118*7c478bd9Sstevel@tonic-gate 	db_pgno_t	free_pgno;
119*7c478bd9Sstevel@tonic-gate 	u_int32_t	ovflpoint;
120*7c478bd9Sstevel@tonic-gate 	DB_LSN 	metalsn;
121*7c478bd9Sstevel@tonic-gate } __ham_ovfl_args;
122*7c478bd9Sstevel@tonic-gate 
123*7c478bd9Sstevel@tonic-gate 
124*7c478bd9Sstevel@tonic-gate #define	DB_ham_copypage	(DB_ham_BEGIN + 8)
125*7c478bd9Sstevel@tonic-gate 
126*7c478bd9Sstevel@tonic-gate typedef struct _ham_copypage_args {
127*7c478bd9Sstevel@tonic-gate 	u_int32_t type;
128*7c478bd9Sstevel@tonic-gate 	DB_TXN *txnid;
129*7c478bd9Sstevel@tonic-gate 	DB_LSN prev_lsn;
130*7c478bd9Sstevel@tonic-gate 	u_int32_t	fileid;
131*7c478bd9Sstevel@tonic-gate 	db_pgno_t	pgno;
132*7c478bd9Sstevel@tonic-gate 	DB_LSN 	pagelsn;
133*7c478bd9Sstevel@tonic-gate 	db_pgno_t	next_pgno;
134*7c478bd9Sstevel@tonic-gate 	DB_LSN 	nextlsn;
135*7c478bd9Sstevel@tonic-gate 	db_pgno_t	nnext_pgno;
136*7c478bd9Sstevel@tonic-gate 	DB_LSN 	nnextlsn;
137*7c478bd9Sstevel@tonic-gate 	DBT	page;
138*7c478bd9Sstevel@tonic-gate } __ham_copypage_args;
139*7c478bd9Sstevel@tonic-gate 
140*7c478bd9Sstevel@tonic-gate #endif
141