1
/* Do not edit: automatically built by gen_rpc.awk. */
5
#ifndef NO_SYSTEM_INCLUDES
12
#include "dbinc_auto/db_server.h"
13
#include "dbinc/txn.h"
16
* PUBLIC: int __dbcl_env_close_ret __P((DB_ENV *, u_int32_t,
17
* PUBLIC: __env_close_reply *));
20
__dbcl_env_close_ret(dbenv, flags, replyp)
23
__env_close_reply *replyp;
27
if (replyp->status != 0)
28
return (replyp->status);
34
return (replyp->status);
38
* PUBLIC: int __dbcl_env_create_ret __P((DB_ENV *, long,
39
* PUBLIC: __env_create_reply *));
42
__dbcl_env_create_ret(dbenv, timeout, replyp)
45
__env_create_reply *replyp;
50
if (replyp->status != 0)
51
return (replyp->status);
52
env = replyp->envcl_id;
58
return (replyp->status);
62
* PUBLIC: int __dbcl_env_open_ret __P((DB_ENV *, const char *, u_int32_t, int,
63
* PUBLIC: __env_open_reply *));
66
__dbcl_env_open_ret(dbenv, home, flags, mode, replyp)
71
__env_open_reply *replyp;
76
if (replyp->status != 0)
77
return (replyp->status);
78
env = replyp->envcl_id;
84
return (replyp->status);
88
* PUBLIC: int __dbcl_env_remove_ret __P((DB_ENV *, const char *, u_int32_t,
89
* PUBLIC: __env_remove_reply *));
92
__dbcl_env_remove_ret(dbenv, home, flags, replyp)
96
__env_remove_reply *replyp;
100
if (replyp->status != 0)
101
return (replyp->status);
107
return (replyp->status);
111
* PUBLIC: int __dbcl_txn_abort_ret __P((DB_TXN *, __txn_abort_reply *));
114
__dbcl_txn_abort_ret(txnp, replyp)
116
__txn_abort_reply *replyp;
120
if (replyp->status != 0)
121
return (replyp->status);
127
return (replyp->status);
131
* PUBLIC: int __dbcl_txn_begin_ret __P((DB_ENV *, DB_TXN *, DB_TXN **,
132
* PUBLIC: u_int32_t, __txn_begin_reply *));
135
__dbcl_txn_begin_ret(dbenv, parent, txnpp, flags, replyp)
140
__txn_begin_reply *replyp;
145
if (replyp->status != 0)
146
return (replyp->status);
147
txnid = replyp->txnidcl_id;
153
return (replyp->status);
157
* PUBLIC: int __dbcl_txn_commit_ret __P((DB_TXN *, u_int32_t,
158
* PUBLIC: __txn_commit_reply *));
161
__dbcl_txn_commit_ret(txnp, flags, replyp)
164
__txn_commit_reply *replyp;
168
if (replyp->status != 0)
169
return (replyp->status);
175
return (replyp->status);
179
* PUBLIC: int __dbcl_txn_discard_ret __P((DB_TXN *, u_int32_t,
180
* PUBLIC: __txn_discard_reply *));
183
__dbcl_txn_discard_ret(txnp, flags, replyp)
186
__txn_discard_reply *replyp;
190
if (replyp->status != 0)
191
return (replyp->status);
197
return (replyp->status);
201
* PUBLIC: int __dbcl_txn_recover_ret __P((DB_ENV *, DB_PREPLIST *, long,
202
* PUBLIC: long *, u_int32_t, __txn_recover_reply *));
205
__dbcl_txn_recover_ret(dbenv, preplist, count, retp, flags, replyp)
207
DB_PREPLIST * preplist;
211
__txn_recover_reply *replyp;
218
if (replyp->status != 0)
219
return (replyp->status);
230
retcount = replyp->retcount;
236
return (replyp->status);
240
* PUBLIC: int __dbcl_db_close_ret __P((DB *, u_int32_t, __db_close_reply *));
243
__dbcl_db_close_ret(dbp, flags, replyp)
246
__db_close_reply *replyp;
250
if (replyp->status != 0)
251
return (replyp->status);
257
return (replyp->status);
261
* PUBLIC: int __dbcl_db_create_ret __P((DB *, DB_ENV *, u_int32_t,
262
* PUBLIC: __db_create_reply *));
265
__dbcl_db_create_ret(dbp, dbenv, flags, replyp)
269
__db_create_reply *replyp;
274
if (replyp->status != 0)
275
return (replyp->status);
276
db = replyp->dbcl_id;
282
return (replyp->status);
286
* PUBLIC: int __dbcl_db_get_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t,
287
* PUBLIC: __db_get_reply *));
290
__dbcl_db_get_ret(dbp, txnp, key, data, flags, replyp)
296
__db_get_reply *replyp;
302
if (replyp->status != 0)
303
return (replyp->status);
304
/* Handle replyp->keydata; */
305
/* Handle replyp->datadata; */
311
return (replyp->status);
315
* PUBLIC: int __dbcl_db_key_range_ret __P((DB *, DB_TXN *, DBT *,
316
* PUBLIC: DB_KEY_RANGE *, u_int32_t, __db_key_range_reply *));
319
__dbcl_db_key_range_ret(dbp, txnp, key, range, flags, replyp)
323
DB_KEY_RANGE * range;
325
__db_key_range_reply *replyp;
332
if (replyp->status != 0)
333
return (replyp->status);
335
equal = replyp->equal;
336
greater = replyp->greater;
342
return (replyp->status);
346
* PUBLIC: int __dbcl_db_open_ret __P((DB *, DB_TXN *, const char *,
347
* PUBLIC: const char *, DBTYPE, u_int32_t, int, __db_open_reply *));
350
__dbcl_db_open_ret(dbp, txnp, name, subdb, type, flags, mode, replyp)
358
__db_open_reply *replyp;
366
if (replyp->status != 0)
367
return (replyp->status);
368
db = replyp->dbcl_id;
370
dbflags = replyp->dbflags;
371
lorder = replyp->lorder;
377
return (replyp->status);
381
* PUBLIC: int __dbcl_db_pget_ret __P((DB *, DB_TXN *, DBT *, DBT *, DBT *,
382
* PUBLIC: u_int32_t, __db_pget_reply *));
385
__dbcl_db_pget_ret(dbp, txnp, skey, pkey, data, flags, replyp)
392
__db_pget_reply *replyp;
399
if (replyp->status != 0)
400
return (replyp->status);
401
/* Handle replyp->skeydata; */
402
/* Handle replyp->pkeydata; */
403
/* Handle replyp->datadata; */
409
return (replyp->status);
413
* PUBLIC: int __dbcl_db_put_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t,
414
* PUBLIC: __db_put_reply *));
417
__dbcl_db_put_ret(dbp, txnp, key, data, flags, replyp)
423
__db_put_reply *replyp;
428
if (replyp->status != 0)
429
return (replyp->status);
430
/* Handle replyp->keydata; */
436
return (replyp->status);
440
* PUBLIC: int __dbcl_db_remove_ret __P((DB *, const char *, const char *,
441
* PUBLIC: u_int32_t, __db_remove_reply *));
444
__dbcl_db_remove_ret(dbp, name, subdb, flags, replyp)
449
__db_remove_reply *replyp;
453
if (replyp->status != 0)
454
return (replyp->status);
460
return (replyp->status);
464
* PUBLIC: int __dbcl_db_rename_ret __P((DB *, const char *, const char *,
465
* PUBLIC: const char *, u_int32_t, __db_rename_reply *));
468
__dbcl_db_rename_ret(dbp, name, subdb, newname, flags, replyp)
472
const char * newname;
474
__db_rename_reply *replyp;
478
if (replyp->status != 0)
479
return (replyp->status);
485
return (replyp->status);
489
* PUBLIC: int __dbcl_db_stat_ret __P((DB *, void *, u_int32_t,
490
* PUBLIC: __db_stat_reply *));
493
__dbcl_db_stat_ret(dbp, sp, flags, replyp)
497
__db_stat_reply *replyp;
500
u_int32_t *__db_stats;
502
if (replyp->status != 0)
503
return (replyp->status);
514
return (replyp->status);
518
* PUBLIC: int __dbcl_db_truncate_ret __P((DB *, DB_TXN *, u_int32_t *,
519
* PUBLIC: u_int32_t, __db_truncate_reply *));
522
__dbcl_db_truncate_ret(dbp, txnp, countp, flags, replyp)
527
__db_truncate_reply *replyp;
532
if (replyp->status != 0)
533
return (replyp->status);
534
count = replyp->count;
540
return (replyp->status);
544
* PUBLIC: int __dbcl_db_cursor_ret __P((DB *, DB_TXN *, DBC **, u_int32_t,
545
* PUBLIC: __db_cursor_reply *));
548
__dbcl_db_cursor_ret(dbp, txnp, dbcpp, flags, replyp)
553
__db_cursor_reply *replyp;
558
if (replyp->status != 0)
559
return (replyp->status);
560
dbcid = replyp->dbcidcl_id;
566
return (replyp->status);
570
* PUBLIC: int __dbcl_db_join_ret __P((DB *, DBC **, DBC **, u_int32_t,
571
* PUBLIC: __db_join_reply *));
574
__dbcl_db_join_ret(dbp, curs, dbcp, flags, replyp)
579
__db_join_reply *replyp;
584
if (replyp->status != 0)
585
return (replyp->status);
586
dbcid = replyp->dbcidcl_id;
592
return (replyp->status);
596
* PUBLIC: int __dbcl_dbc_close_ret __P((DBC *, __dbc_close_reply *));
599
__dbcl_dbc_close_ret(dbc, replyp)
601
__dbc_close_reply *replyp;
605
if (replyp->status != 0)
606
return (replyp->status);
612
return (replyp->status);
616
* PUBLIC: int __dbcl_dbc_count_ret __P((DBC *, db_recno_t *, u_int32_t,
617
* PUBLIC: __dbc_count_reply *));
620
__dbcl_dbc_count_ret(dbc, countp, flags, replyp)
624
__dbc_count_reply *replyp;
629
if (replyp->status != 0)
630
return (replyp->status);
631
dupcount = replyp->dupcount;
637
return (replyp->status);
641
* PUBLIC: int __dbcl_dbc_dup_ret __P((DBC *, DBC **, u_int32_t,
642
* PUBLIC: __dbc_dup_reply *));
645
__dbcl_dbc_dup_ret(dbc, dbcp, flags, replyp)
649
__dbc_dup_reply *replyp;
654
if (replyp->status != 0)
655
return (replyp->status);
656
dbcid = replyp->dbcidcl_id;
662
return (replyp->status);
666
* PUBLIC: int __dbcl_dbc_get_ret __P((DBC *, DBT *, DBT *, u_int32_t,
667
* PUBLIC: __dbc_get_reply *));
670
__dbcl_dbc_get_ret(dbc, key, data, flags, replyp)
675
__dbc_get_reply *replyp;
681
if (replyp->status != 0)
682
return (replyp->status);
683
/* Handle replyp->keydata; */
684
/* Handle replyp->datadata; */
690
return (replyp->status);
694
* PUBLIC: int __dbcl_dbc_pget_ret __P((DBC *, DBT *, DBT *, DBT *, u_int32_t,
695
* PUBLIC: __dbc_pget_reply *));
698
__dbcl_dbc_pget_ret(dbc, skey, pkey, data, flags, replyp)
704
__dbc_pget_reply *replyp;
711
if (replyp->status != 0)
712
return (replyp->status);
713
/* Handle replyp->skeydata; */
714
/* Handle replyp->pkeydata; */
715
/* Handle replyp->datadata; */
721
return (replyp->status);
725
* PUBLIC: int __dbcl_dbc_put_ret __P((DBC *, DBT *, DBT *, u_int32_t,
726
* PUBLIC: __dbc_put_reply *));
729
__dbcl_dbc_put_ret(dbc, key, data, flags, replyp)
734
__dbc_put_reply *replyp;
739
if (replyp->status != 0)
740
return (replyp->status);
741
/* Handle replyp->keydata; */
747
return (replyp->status);
750
#endif /* HAVE_RPC */