1 /* Do not edit: automatically built by gen_rec.awk. */
2 
3 #ifndef	__fop_AUTO_H
4 #define	__fop_AUTO_H
5 #include "dbinc/log.h"
6 #define	DB___fop_create_42	143
7 typedef struct ___fop_create_42_args {
8 	u_int32_t type;
9 	DB_TXN *txnp;
10 	DB_LSN prev_lsn;
11 	DBT	name;
12 	u_int32_t	appname;
13 	u_int32_t	mode;
14 } __fop_create_42_args;
15 
16 extern __DB_IMPORT DB_LOG_RECSPEC __fop_create_42_desc[];
__fop_create_42_read(ENV * env,void * data,__fop_create_42_args ** arg)17 static inline int __fop_create_42_read(ENV *env,
18     void *data, __fop_create_42_args **arg)
19 {
20 	*arg = NULL;
21 	return (__log_read_record(env,
22 	    NULL, NULL, data, __fop_create_42_desc, sizeof(__fop_create_42_args), (void**)arg));
23 }
24 #define	DB___fop_create_60	143
25 typedef struct ___fop_create_60_args {
26 	u_int32_t type;
27 	DB_TXN *txnp;
28 	DB_LSN prev_lsn;
29 	DBT	name;
30 	DBT	dirname;
31 	u_int32_t	appname;
32 	u_int32_t	mode;
33 } __fop_create_60_args;
34 
35 extern __DB_IMPORT DB_LOG_RECSPEC __fop_create_60_desc[];
__fop_create_60_read(ENV * env,void * data,__fop_create_60_args ** arg)36 static inline int __fop_create_60_read(ENV *env,
37     void *data, __fop_create_60_args **arg)
38 {
39 	*arg = NULL;
40 	return (__log_read_record(env,
41 	    NULL, NULL, data, __fop_create_60_desc, sizeof(__fop_create_60_args), (void**)arg));
42 }
43 #define	DB___fop_create	143
44 typedef struct ___fop_create_args {
45 	u_int32_t type;
46 	DB_TXN *txnp;
47 	DB_LSN prev_lsn;
48 	DBT	name;
49 	DBT	dirname;
50 	u_int32_t	appname;
51 	u_int32_t	mode;
52 } __fop_create_args;
53 
54 extern __DB_IMPORT DB_LOG_RECSPEC __fop_create_desc[];
55 static inline int
__fop_create_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * name,const DBT * dirname,u_int32_t appname,u_int32_t mode)56 __fop_create_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
57     const DBT *name, const DBT *dirname, u_int32_t appname, u_int32_t mode)
58 {
59 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
60 	    flags, DB___fop_create, 0,
61 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
62 	    LOG_DBT_SIZE(name) + LOG_DBT_SIZE(dirname) + sizeof(u_int32_t) +
63 	    sizeof(u_int32_t),
64 	    __fop_create_desc,
65 	    name, dirname, appname, mode));
66 }
67 
__fop_create_read(ENV * env,void * data,__fop_create_args ** arg)68 static inline int __fop_create_read(ENV *env,
69     void *data, __fop_create_args **arg)
70 {
71 	*arg = NULL;
72 	return (__log_read_record(env,
73 	    NULL, NULL, data, __fop_create_desc, sizeof(__fop_create_args), (void**)arg));
74 }
75 #define	DB___fop_remove_60	144
76 typedef struct ___fop_remove_60_args {
77 	u_int32_t type;
78 	DB_TXN *txnp;
79 	DB_LSN prev_lsn;
80 	DBT	name;
81 	DBT	fid;
82 	u_int32_t	appname;
83 } __fop_remove_60_args;
84 
85 extern __DB_IMPORT DB_LOG_RECSPEC __fop_remove_60_desc[];
__fop_remove_60_read(ENV * env,void * data,__fop_remove_60_args ** arg)86 static inline int __fop_remove_60_read(ENV *env,
87     void *data, __fop_remove_60_args **arg)
88 {
89 	*arg = NULL;
90 	return (__log_read_record(env,
91 	    NULL, NULL, data, __fop_remove_60_desc, sizeof(__fop_remove_60_args), (void**)arg));
92 }
93 #define	DB___fop_remove	144
94 typedef struct ___fop_remove_args {
95 	u_int32_t type;
96 	DB_TXN *txnp;
97 	DB_LSN prev_lsn;
98 	DBT	name;
99 	DBT	fid;
100 	u_int32_t	appname;
101 } __fop_remove_args;
102 
103 extern __DB_IMPORT DB_LOG_RECSPEC __fop_remove_desc[];
104 static inline int
__fop_remove_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * name,const DBT * fid,u_int32_t appname)105 __fop_remove_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
106     const DBT *name, const DBT *fid, u_int32_t appname)
107 {
108 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
109 	    flags, DB___fop_remove, 0,
110 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
111 	    LOG_DBT_SIZE(name) + LOG_DBT_SIZE(fid) + sizeof(u_int32_t),
112 	    __fop_remove_desc,
113 	    name, fid, appname));
114 }
115 
__fop_remove_read(ENV * env,void * data,__fop_remove_args ** arg)116 static inline int __fop_remove_read(ENV *env,
117     void *data, __fop_remove_args **arg)
118 {
119 	*arg = NULL;
120 	return (__log_read_record(env,
121 	    NULL, NULL, data, __fop_remove_desc, sizeof(__fop_remove_args), (void**)arg));
122 }
123 #define	DB___fop_write_42	145
124 typedef struct ___fop_write_42_args {
125 	u_int32_t type;
126 	DB_TXN *txnp;
127 	DB_LSN prev_lsn;
128 	DBT	name;
129 	u_int32_t	appname;
130 	u_int32_t	pgsize;
131 	db_pgno_t	pageno;
132 	u_int32_t	offset;
133 	DBT	page;
134 	u_int32_t	flag;
135 } __fop_write_42_args;
136 
137 extern __DB_IMPORT DB_LOG_RECSPEC __fop_write_42_desc[];
__fop_write_42_read(ENV * env,void * data,__fop_write_42_args ** arg)138 static inline int __fop_write_42_read(ENV *env,
139     void *data, __fop_write_42_args **arg)
140 {
141 	*arg = NULL;
142 	return (__log_read_record(env,
143 	    NULL, NULL, data, __fop_write_42_desc, sizeof(__fop_write_42_args), (void**)arg));
144 }
145 #define	DB___fop_write_60	145
146 typedef struct ___fop_write_60_args {
147 	u_int32_t type;
148 	DB_TXN *txnp;
149 	DB_LSN prev_lsn;
150 	DBT	name;
151 	DBT	dirname;
152 	u_int32_t	appname;
153 	u_int32_t	pgsize;
154 	db_pgno_t	pageno;
155 	u_int32_t	offset;
156 	DBT	page;
157 	u_int32_t	flag;
158 } __fop_write_60_args;
159 
160 extern __DB_IMPORT DB_LOG_RECSPEC __fop_write_60_desc[];
__fop_write_60_read(ENV * env,void * data,__fop_write_60_args ** arg)161 static inline int __fop_write_60_read(ENV *env,
162     void *data, __fop_write_60_args **arg)
163 {
164 	*arg = NULL;
165 	return (__log_read_record(env,
166 	    NULL, NULL, data, __fop_write_60_desc, sizeof(__fop_write_60_args), (void**)arg));
167 }
168 #define	DB___fop_write	145
169 typedef struct ___fop_write_args {
170 	u_int32_t type;
171 	DB_TXN *txnp;
172 	DB_LSN prev_lsn;
173 	DBT	name;
174 	DBT	dirname;
175 	u_int32_t	appname;
176 	u_int32_t	pgsize;
177 	db_pgno_t	pageno;
178 	u_int32_t	offset;
179 	DBT	page;
180 	u_int32_t	flag;
181 } __fop_write_args;
182 
183 extern __DB_IMPORT DB_LOG_RECSPEC __fop_write_desc[];
184 static inline int
__fop_write_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * name,const DBT * dirname,u_int32_t appname,u_int32_t pgsize,db_pgno_t pageno,u_int32_t offset,const DBT * page,u_int32_t flag)185 __fop_write_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
186     const DBT *name, const DBT *dirname, u_int32_t appname, u_int32_t pgsize, db_pgno_t pageno,
187     u_int32_t offset, const DBT *page, u_int32_t flag)
188 {
189 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
190 	    flags, DB___fop_write, 0,
191 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
192 	    LOG_DBT_SIZE(name) + LOG_DBT_SIZE(dirname) + sizeof(u_int32_t) +
193 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_int32_t) +
194 	    LOG_DBT_SIZE(page) + sizeof(u_int32_t),
195 	    __fop_write_desc,
196 	    name, dirname, appname, pgsize, pageno, offset, page, flag));
197 }
198 
__fop_write_read(ENV * env,void * data,__fop_write_args ** arg)199 static inline int __fop_write_read(ENV *env,
200     void *data, __fop_write_args **arg)
201 {
202 	*arg = NULL;
203 	return (__log_read_record(env,
204 	    NULL, NULL, data, __fop_write_desc, sizeof(__fop_write_args), (void**)arg));
205 }
206 #define	DB___fop_write_file_60	86
207 typedef struct ___fop_write_file_60_args {
208 	u_int32_t type;
209 	DB_TXN *txnp;
210 	DB_LSN prev_lsn;
211 	DBT	name;
212 	DBT	dirname;
213 	u_int32_t	appname;
214 	u_int32_t	offset_lo;
215 	u_int32_t	offset_hi;
216 	DBT	old_data;
217 	DBT	new_data;
218 	u_int32_t	flag;
219 } __fop_write_file_60_args;
220 
221 extern __DB_IMPORT DB_LOG_RECSPEC __fop_write_file_60_desc[];
__fop_write_file_60_read(ENV * env,void * data,__fop_write_file_60_args ** arg)222 static inline int __fop_write_file_60_read(ENV *env,
223     void *data, __fop_write_file_60_args **arg)
224 {
225 	*arg = NULL;
226 	return (__log_read_record(env,
227 	    NULL, NULL, data, __fop_write_file_60_desc, sizeof(__fop_write_file_60_args), (void**)arg));
228 }
229 #define	DB___fop_write_file	86
230 typedef struct ___fop_write_file_args {
231 	u_int32_t type;
232 	DB_TXN *txnp;
233 	DB_LSN prev_lsn;
234 	DBT	name;
235 	DBT	dirname;
236 	u_int32_t	appname;
237 	u_int64_t	offset;
238 	DBT	old_data;
239 	DBT	new_data;
240 	u_int32_t	flag;
241 } __fop_write_file_args;
242 
243 extern __DB_IMPORT DB_LOG_RECSPEC __fop_write_file_desc[];
244 static inline int
__fop_write_file_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * name,const DBT * dirname,u_int32_t appname,u_int64_t offset,const DBT * old_data,const DBT * new_data,u_int32_t flag)245 __fop_write_file_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
246     const DBT *name, const DBT *dirname, u_int32_t appname, u_int64_t offset, const DBT *old_data,
247     const DBT *new_data, u_int32_t flag)
248 {
249 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
250 	    flags, DB___fop_write_file, 0,
251 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
252 	    LOG_DBT_SIZE(name) + LOG_DBT_SIZE(dirname) + sizeof(u_int32_t) +
253 	    sizeof(u_int64_t) + LOG_DBT_SIZE(old_data) + LOG_DBT_SIZE(new_data) +
254 	    sizeof(u_int32_t),
255 	    __fop_write_file_desc,
256 	    name, dirname, appname, offset, old_data, new_data, flag));
257 }
258 
__fop_write_file_read(ENV * env,void * data,__fop_write_file_args ** arg)259 static inline int __fop_write_file_read(ENV *env,
260     void *data, __fop_write_file_args **arg)
261 {
262 	*arg = NULL;
263 	return (__log_read_record(env,
264 	    NULL, NULL, data, __fop_write_file_desc, sizeof(__fop_write_file_args), (void**)arg));
265 }
266 #define	DB___fop_rename_42	146
267 #define	DB___fop_rename_noundo_46	150
268 typedef struct ___fop_rename_42_args {
269 	u_int32_t type;
270 	DB_TXN *txnp;
271 	DB_LSN prev_lsn;
272 	DBT	oldname;
273 	DBT	newname;
274 	DBT	fileid;
275 	u_int32_t	appname;
276 } __fop_rename_42_args;
277 
278 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_42_desc[];
__fop_rename_42_read(ENV * env,void * data,__fop_rename_42_args ** arg)279 static inline int __fop_rename_42_read(ENV *env,
280     void *data, __fop_rename_42_args **arg)
281 {
282 	*arg = NULL;
283 	return (__log_read_record(env,
284 	    NULL, NULL, data, __fop_rename_42_desc, sizeof(__fop_rename_42_args), (void**)arg));
285 }
286 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_noundo_46_desc[];
__fop_rename_noundo_46_read(ENV * env,void * data,__fop_rename_42_args ** arg)287 static inline int __fop_rename_noundo_46_read(ENV *env,
288     void *data, __fop_rename_42_args **arg)
289 {
290 	*arg = NULL;
291 	return (__log_read_record(env,
292 	    NULL, NULL, data, __fop_rename_noundo_46_desc, sizeof(__fop_rename_42_args), (void**)arg));
293 }
294 #define	DB___fop_rename_60	146
295 #define	DB___fop_rename_noundo_60	150
296 typedef struct ___fop_rename_60_args {
297 	u_int32_t type;
298 	DB_TXN *txnp;
299 	DB_LSN prev_lsn;
300 	DBT	oldname;
301 	DBT	newname;
302 	DBT	dirname;
303 	DBT	fileid;
304 	u_int32_t	appname;
305 } __fop_rename_60_args;
306 
307 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_60_desc[];
__fop_rename_60_read(ENV * env,void * data,__fop_rename_60_args ** arg)308 static inline int __fop_rename_60_read(ENV *env,
309     void *data, __fop_rename_60_args **arg)
310 {
311 	*arg = NULL;
312 	return (__log_read_record(env,
313 	    NULL, NULL, data, __fop_rename_60_desc, sizeof(__fop_rename_60_args), (void**)arg));
314 }
315 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_noundo_60_desc[];
__fop_rename_noundo_60_read(ENV * env,void * data,__fop_rename_60_args ** arg)316 static inline int __fop_rename_noundo_60_read(ENV *env,
317     void *data, __fop_rename_60_args **arg)
318 {
319 	*arg = NULL;
320 	return (__log_read_record(env,
321 	    NULL, NULL, data, __fop_rename_noundo_60_desc, sizeof(__fop_rename_60_args), (void**)arg));
322 }
323 #define	DB___fop_rename	146
324 #define	DB___fop_rename_noundo	150
325 typedef struct ___fop_rename_args {
326 	u_int32_t type;
327 	DB_TXN *txnp;
328 	DB_LSN prev_lsn;
329 	DBT	oldname;
330 	DBT	newname;
331 	DBT	dirname;
332 	DBT	fileid;
333 	u_int32_t	appname;
334 } __fop_rename_args;
335 
336 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_desc[];
337 static inline int
__fop_rename_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * oldname,const DBT * newname,const DBT * dirname,const DBT * fileid,u_int32_t appname)338 __fop_rename_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
339     const DBT *oldname, const DBT *newname, const DBT *dirname, const DBT *fileid, u_int32_t appname)
340 {
341 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
342 	    flags, DB___fop_rename, 0,
343 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
344 	    LOG_DBT_SIZE(oldname) + LOG_DBT_SIZE(newname) + LOG_DBT_SIZE(dirname) +
345 	    LOG_DBT_SIZE(fileid) + sizeof(u_int32_t),
346 	    __fop_rename_desc,
347 	    oldname, newname, dirname, fileid, appname));
348 }
349 
__fop_rename_read(ENV * env,void * data,__fop_rename_args ** arg)350 static inline int __fop_rename_read(ENV *env,
351     void *data, __fop_rename_args **arg)
352 {
353 	*arg = NULL;
354 	return (__log_read_record(env,
355 	    NULL, NULL, data, __fop_rename_desc, sizeof(__fop_rename_args), (void**)arg));
356 }
357 extern __DB_IMPORT DB_LOG_RECSPEC __fop_rename_noundo_desc[];
358 static inline int
__fop_rename_noundo_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * oldname,const DBT * newname,const DBT * dirname,const DBT * fileid,u_int32_t appname)359 __fop_rename_noundo_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
360     const DBT *oldname, const DBT *newname, const DBT *dirname, const DBT *fileid, u_int32_t appname)
361 {
362 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
363 	    flags, DB___fop_rename_noundo, 0,
364 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
365 	    LOG_DBT_SIZE(oldname) + LOG_DBT_SIZE(newname) + LOG_DBT_SIZE(dirname) +
366 	    LOG_DBT_SIZE(fileid) + sizeof(u_int32_t),
367 	    __fop_rename_noundo_desc,
368 	    oldname, newname, dirname, fileid, appname));
369 }
370 
__fop_rename_noundo_read(ENV * env,void * data,__fop_rename_args ** arg)371 static inline int __fop_rename_noundo_read(ENV *env,
372     void *data, __fop_rename_args **arg)
373 {
374 	*arg = NULL;
375 	return (__log_read_record(env,
376 	    NULL, NULL, data, __fop_rename_noundo_desc, sizeof(__fop_rename_args), (void**)arg));
377 }
378 #define	DB___fop_file_remove_60	141
379 typedef struct ___fop_file_remove_60_args {
380 	u_int32_t type;
381 	DB_TXN *txnp;
382 	DB_LSN prev_lsn;
383 	DBT	real_fid;
384 	DBT	tmp_fid;
385 	DBT	name;
386 	u_int32_t	appname;
387 	u_int32_t	child;
388 } __fop_file_remove_60_args;
389 
390 extern __DB_IMPORT DB_LOG_RECSPEC __fop_file_remove_60_desc[];
__fop_file_remove_60_read(ENV * env,void * data,__fop_file_remove_60_args ** arg)391 static inline int __fop_file_remove_60_read(ENV *env,
392     void *data, __fop_file_remove_60_args **arg)
393 {
394 	*arg = NULL;
395 	return (__log_read_record(env,
396 	    NULL, NULL, data, __fop_file_remove_60_desc, sizeof(__fop_file_remove_60_args), (void**)arg));
397 }
398 #define	DB___fop_file_remove	141
399 typedef struct ___fop_file_remove_args {
400 	u_int32_t type;
401 	DB_TXN *txnp;
402 	DB_LSN prev_lsn;
403 	DBT	real_fid;
404 	DBT	tmp_fid;
405 	DBT	name;
406 	u_int32_t	appname;
407 	u_int32_t	child;
408 } __fop_file_remove_args;
409 
410 extern __DB_IMPORT DB_LOG_RECSPEC __fop_file_remove_desc[];
411 static inline int
__fop_file_remove_log(ENV * env,DB_TXN * txnp,DB_LSN * ret_lsnp,u_int32_t flags,const DBT * real_fid,const DBT * tmp_fid,const DBT * name,u_int32_t appname,u_int32_t child)412 __fop_file_remove_log(ENV *env, DB_TXN *txnp, DB_LSN *ret_lsnp, u_int32_t flags,
413     const DBT *real_fid, const DBT *tmp_fid, const DBT *name, u_int32_t appname, u_int32_t child)
414 {
415 	return (__log_put_record(env, NULL, txnp, ret_lsnp,
416 	    flags, DB___fop_file_remove, 0,
417 	    sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(DB_LSN) +
418 	    LOG_DBT_SIZE(real_fid) + LOG_DBT_SIZE(tmp_fid) + LOG_DBT_SIZE(name) +
419 	    sizeof(u_int32_t) + sizeof(u_int32_t),
420 	    __fop_file_remove_desc,
421 	    real_fid, tmp_fid, name, appname, child));
422 }
423 
__fop_file_remove_read(ENV * env,void * data,__fop_file_remove_args ** arg)424 static inline int __fop_file_remove_read(ENV *env,
425     void *data, __fop_file_remove_args **arg)
426 {
427 	*arg = NULL;
428 	return (__log_read_record(env,
429 	    NULL, NULL, data, __fop_file_remove_desc, sizeof(__fop_file_remove_args), (void**)arg));
430 }
431 #endif
432