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