1/* Do not edit: automatically built by gen_rpc.awk. */ 2#include "db_config.h" 3 4#include "db_int.h" 5#include "dbinc/txn.h" 6 7/* 8 * PUBLIC: int __dbcl_env_create_ret __P((DB_ENV *, long, 9 * PUBLIC: __env_create_reply *)); 10 */ 11int 12__dbcl_env_create_ret(dbenv, timeout, replyp) 13 DB_ENV * dbenv; 14 long timeout; 15 __env_create_reply *replyp; 16{ 17 int ret; 18 long env; 19 20 if (replyp->status != 0) 21 return (replyp->status); 22 env = replyp->envcl_id; 23 24 /* 25 * XXX Code goes here 26 */ 27 28 return (replyp->status); 29} 30 31/* 32 * PUBLIC: int __dbcl_env_cdsgroup_begin_ret __P((DB_ENV *, DB_TXN **, 33 * PUBLIC: __env_cdsgroup_begin_reply *)); 34 */ 35int 36__dbcl_env_cdsgroup_begin_ret(dbenv, txnpp, replyp) 37 DB_ENV * dbenv; 38 DB_TXN ** txnpp; 39 __env_cdsgroup_begin_reply *replyp; 40{ 41 int ret; 42 long txnid; 43 44 if (replyp->status != 0) 45 return (replyp->status); 46 txnid = replyp->txnidcl_id; 47 48 /* 49 * XXX Code goes here 50 */ 51 52 return (replyp->status); 53} 54 55/* 56 * PUBLIC: int __dbcl_env_open_ret __P((DB_ENV *, const char *, u_int32_t, int, 57 * PUBLIC: __env_open_reply *)); 58 */ 59int 60__dbcl_env_open_ret(dbenv, home, flags, mode, replyp) 61 DB_ENV * dbenv; 62 const char * home; 63 u_int32_t flags; 64 int mode; 65 __env_open_reply *replyp; 66{ 67 int ret; 68 long env; 69 70 if (replyp->status != 0) 71 return (replyp->status); 72 env = replyp->envcl_id; 73 74 /* 75 * XXX Code goes here 76 */ 77 78 return (replyp->status); 79} 80 81/* 82 * PUBLIC: int __dbcl_env_remove_ret __P((DB_ENV *, const char *, u_int32_t, 83 * PUBLIC: __env_remove_reply *)); 84 */ 85int 86__dbcl_env_remove_ret(dbenv, home, flags, replyp) 87 DB_ENV * dbenv; 88 const char * home; 89 u_int32_t flags; 90 __env_remove_reply *replyp; 91{ 92 int ret; 93 94 if (replyp->status != 0) 95 return (replyp->status); 96 97 /* 98 * XXX Code goes here 99 */ 100 101 return (replyp->status); 102} 103 104/* 105 * PUBLIC: int __dbcl_env_txn_begin_ret __P((DB_ENV *, DB_TXN *, DB_TXN **, 106 * PUBLIC: u_int32_t, __env_txn_begin_reply *)); 107 */ 108int 109__dbcl_env_txn_begin_ret(dbenv, parent, txnpp, flags, replyp) 110 DB_ENV * dbenv; 111 DB_TXN * parent; 112 DB_TXN ** txnpp; 113 u_int32_t flags; 114 __env_txn_begin_reply *replyp; 115{ 116 int ret; 117 long txnid; 118 119 if (replyp->status != 0) 120 return (replyp->status); 121 txnid = replyp->txnidcl_id; 122 123 /* 124 * XXX Code goes here 125 */ 126 127 return (replyp->status); 128} 129 130/* 131 * PUBLIC: int __dbcl_env_txn_recover_ret __P((DB_ENV *, DB_PREPLIST *, long, 132 * PUBLIC: long *, u_int32_t, __env_txn_recover_reply *)); 133 */ 134int 135__dbcl_env_txn_recover_ret(dbenv, preplist, count, retp, flags, replyp) 136 DB_ENV * dbenv; 137 DB_PREPLIST * preplist; 138 long count; 139 long * retp; 140 u_int32_t flags; 141 __env_txn_recover_reply *replyp; 142{ 143 int ret; 144 u_int32_t *__db_txn; 145 u_int8_t *__db_gid; 146 long retcount; 147 148 if (replyp->status != 0) 149 return (replyp->status); 150 151 /* 152 * XXX Handle list 153 */ 154 155 156 /* 157 * XXX Handle list 158 */ 159 160 retcount = replyp->retcount; 161 162 /* 163 * XXX Code goes here 164 */ 165 166 return (replyp->status); 167} 168 169/* 170 * PUBLIC: int __dbcl_db_create_ret __P((DB *, DB_ENV *, u_int32_t, 171 * PUBLIC: __db_create_reply *)); 172 */ 173int 174__dbcl_db_create_ret(dbp, dbenv, flags, replyp) 175 DB * dbp; 176 DB_ENV * dbenv; 177 u_int32_t flags; 178 __db_create_reply *replyp; 179{ 180 int ret; 181 long db; 182 183 if (replyp->status != 0) 184 return (replyp->status); 185 db = replyp->dbcl_id; 186 187 /* 188 * XXX Code goes here 189 */ 190 191 return (replyp->status); 192} 193 194/* 195 * PUBLIC: int __dbcl_db_close_ret __P((DB *, u_int32_t, __db_close_reply *)); 196 */ 197int 198__dbcl_db_close_ret(dbp, flags, replyp) 199 DB * dbp; 200 u_int32_t flags; 201 __db_close_reply *replyp; 202{ 203 int ret; 204 205 if (replyp->status != 0) 206 return (replyp->status); 207 208 /* 209 * XXX Code goes here 210 */ 211 212 return (replyp->status); 213} 214 215/* 216 * PUBLIC: int __dbcl_db_cursor_ret __P((DB *, DB_TXN *, DBC **, u_int32_t, 217 * PUBLIC: __db_cursor_reply *)); 218 */ 219int 220__dbcl_db_cursor_ret(dbp, txnp, dbcpp, flags, replyp) 221 DB * dbp; 222 DB_TXN * txnp; 223 DBC ** dbcpp; 224 u_int32_t flags; 225 __db_cursor_reply *replyp; 226{ 227 int ret; 228 long dbcid; 229 230 if (replyp->status != 0) 231 return (replyp->status); 232 dbcid = replyp->dbcidcl_id; 233 234 /* 235 * XXX Code goes here 236 */ 237 238 return (replyp->status); 239} 240 241/* 242 * PUBLIC: int __dbcl_db_get_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t, 243 * PUBLIC: __db_get_reply *)); 244 */ 245int 246__dbcl_db_get_ret(dbp, txnp, key, data, flags, replyp) 247 DB * dbp; 248 DB_TXN * txnp; 249 DBT * key; 250 DBT * data; 251 u_int32_t flags; 252 __db_get_reply *replyp; 253{ 254 int ret; 255 /* DBT key; */ 256 /* DBT data; */ 257 258 if (replyp->status != 0) 259 return (replyp->status); 260 /* Handle replyp->keydata; */ 261 /* Handle replyp->datadata; */ 262 263 /* 264 * XXX Code goes here 265 */ 266 267 return (replyp->status); 268} 269 270/* 271 * PUBLIC: int __dbcl_db_join_ret __P((DB *, DBC **, DBC **, u_int32_t, 272 * PUBLIC: __db_join_reply *)); 273 */ 274int 275__dbcl_db_join_ret(dbp, curs, dbcp, flags, replyp) 276 DB * dbp; 277 DBC ** curs; 278 DBC ** dbcp; 279 u_int32_t flags; 280 __db_join_reply *replyp; 281{ 282 int ret; 283 long dbcid; 284 285 if (replyp->status != 0) 286 return (replyp->status); 287 dbcid = replyp->dbcidcl_id; 288 289 /* 290 * XXX Code goes here 291 */ 292 293 return (replyp->status); 294} 295 296/* 297 * PUBLIC: int __dbcl_db_key_range_ret __P((DB *, DB_TXN *, DBT *, 298 * PUBLIC: DB_KEY_RANGE *, u_int32_t, __db_key_range_reply *)); 299 */ 300int 301__dbcl_db_key_range_ret(dbp, txnp, key, range, flags, replyp) 302 DB * dbp; 303 DB_TXN * txnp; 304 DBT * key; 305 DB_KEY_RANGE * range; 306 u_int32_t flags; 307 __db_key_range_reply *replyp; 308{ 309 int ret; 310 double less; 311 double equal; 312 double greater; 313 314 if (replyp->status != 0) 315 return (replyp->status); 316 less = replyp->less; 317 equal = replyp->equal; 318 greater = replyp->greater; 319 320 /* 321 * XXX Code goes here 322 */ 323 324 return (replyp->status); 325} 326 327/* 328 * PUBLIC: int __dbcl_db_open_ret __P((DB *, DB_TXN *, const char *, 329 * PUBLIC: const char *, DBTYPE, u_int32_t, int, __db_open_reply *)); 330 */ 331int 332__dbcl_db_open_ret(dbp, txnp, name, subdb, type, flags, mode, replyp) 333 DB * dbp; 334 DB_TXN * txnp; 335 const char * name; 336 const char * subdb; 337 DBTYPE type; 338 u_int32_t flags; 339 int mode; 340 __db_open_reply *replyp; 341{ 342 int ret; 343 long db; 344 DBTYPE type; 345 int lorder; 346 347 if (replyp->status != 0) 348 return (replyp->status); 349 db = replyp->dbcl_id; 350 type = replyp->type; 351 lorder = replyp->lorder; 352 353 /* 354 * XXX Code goes here 355 */ 356 357 return (replyp->status); 358} 359 360/* 361 * PUBLIC: int __dbcl_db_pget_ret __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, 362 * PUBLIC: u_int32_t, __db_pget_reply *)); 363 */ 364int 365__dbcl_db_pget_ret(dbp, txnp, skey, pkey, data, flags, replyp) 366 DB * dbp; 367 DB_TXN * txnp; 368 DBT * skey; 369 DBT * pkey; 370 DBT * data; 371 u_int32_t flags; 372 __db_pget_reply *replyp; 373{ 374 int ret; 375 /* DBT skey; */ 376 /* DBT pkey; */ 377 /* DBT data; */ 378 379 if (replyp->status != 0) 380 return (replyp->status); 381 /* Handle replyp->skeydata; */ 382 /* Handle replyp->pkeydata; */ 383 /* Handle replyp->datadata; */ 384 385 /* 386 * XXX Code goes here 387 */ 388 389 return (replyp->status); 390} 391 392/* 393 * PUBLIC: int __dbcl_db_put_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t, 394 * PUBLIC: __db_put_reply *)); 395 */ 396int 397__dbcl_db_put_ret(dbp, txnp, key, data, flags, replyp) 398 DB * dbp; 399 DB_TXN * txnp; 400 DBT * key; 401 DBT * data; 402 u_int32_t flags; 403 __db_put_reply *replyp; 404{ 405 int ret; 406 /* DBT key; */ 407 408 if (replyp->status != 0) 409 return (replyp->status); 410 /* Handle replyp->keydata; */ 411 412 /* 413 * XXX Code goes here 414 */ 415 416 return (replyp->status); 417} 418 419/* 420 * PUBLIC: int __dbcl_db_remove_ret __P((DB *, const char *, const char *, 421 * PUBLIC: u_int32_t, __db_remove_reply *)); 422 */ 423int 424__dbcl_db_remove_ret(dbp, name, subdb, flags, replyp) 425 DB * dbp; 426 const char * name; 427 const char * subdb; 428 u_int32_t flags; 429 __db_remove_reply *replyp; 430{ 431 int ret; 432 433 if (replyp->status != 0) 434 return (replyp->status); 435 436 /* 437 * XXX Code goes here 438 */ 439 440 return (replyp->status); 441} 442 443/* 444 * PUBLIC: int __dbcl_db_rename_ret __P((DB *, const char *, const char *, 445 * PUBLIC: const char *, u_int32_t, __db_rename_reply *)); 446 */ 447int 448__dbcl_db_rename_ret(dbp, name, subdb, newname, flags, replyp) 449 DB * dbp; 450 const char * name; 451 const char * subdb; 452 const char * newname; 453 u_int32_t flags; 454 __db_rename_reply *replyp; 455{ 456 int ret; 457 458 if (replyp->status != 0) 459 return (replyp->status); 460 461 /* 462 * XXX Code goes here 463 */ 464 465 return (replyp->status); 466} 467 468/* 469 * PUBLIC: int __dbcl_db_stat_ret __P((DB *, DB_TXN *, void *, u_int32_t, 470 * PUBLIC: __db_stat_reply *)); 471 */ 472int 473__dbcl_db_stat_ret(dbp, txnp, sp, flags, replyp) 474 DB * dbp; 475 DB_TXN * txnp; 476 void * sp; 477 u_int32_t flags; 478 __db_stat_reply *replyp; 479{ 480 int ret; 481 u_int32_t *__db_stats; 482 483 if (replyp->status != 0) 484 return (replyp->status); 485 486 /* 487 * XXX Handle list 488 */ 489 490 491 /* 492 * XXX Code goes here 493 */ 494 495 return (replyp->status); 496} 497 498/* 499 * PUBLIC: int __dbcl_db_truncate_ret __P((DB *, DB_TXN *, u_int32_t *, 500 * PUBLIC: u_int32_t, __db_truncate_reply *)); 501 */ 502int 503__dbcl_db_truncate_ret(dbp, txnp, countp, flags, replyp) 504 DB * dbp; 505 DB_TXN * txnp; 506 u_int32_t * countp; 507 u_int32_t flags; 508 __db_truncate_reply *replyp; 509{ 510 int ret; 511 u_int32_t count; 512 513 if (replyp->status != 0) 514 return (replyp->status); 515 count = replyp->count; 516 517 /* 518 * XXX Code goes here 519 */ 520 521 return (replyp->status); 522} 523 524/* 525 * PUBLIC: int __dbcl_dbc_close_ret __P((DBC *, __dbc_close_reply *)); 526 */ 527int 528__dbcl_dbc_close_ret(dbc, replyp) 529 DBC * dbc; 530 __dbc_close_reply *replyp; 531{ 532 int ret; 533 534 if (replyp->status != 0) 535 return (replyp->status); 536 537 /* 538 * XXX Code goes here 539 */ 540 541 return (replyp->status); 542} 543 544/* 545 * PUBLIC: int __dbcl_dbc_count_ret __P((DBC *, db_recno_t *, u_int32_t, 546 * PUBLIC: __dbc_count_reply *)); 547 */ 548int 549__dbcl_dbc_count_ret(dbc, countp, flags, replyp) 550 DBC * dbc; 551 db_recno_t * countp; 552 u_int32_t flags; 553 __dbc_count_reply *replyp; 554{ 555 int ret; 556 db_recno_t dupcount; 557 558 if (replyp->status != 0) 559 return (replyp->status); 560 dupcount = replyp->dupcount; 561 562 /* 563 * XXX Code goes here 564 */ 565 566 return (replyp->status); 567} 568 569/* 570 * PUBLIC: int __dbcl_dbc_dup_ret __P((DBC *, DBC **, u_int32_t, 571 * PUBLIC: __dbc_dup_reply *)); 572 */ 573int 574__dbcl_dbc_dup_ret(dbc, dbcp, flags, replyp) 575 DBC * dbc; 576 DBC ** dbcp; 577 u_int32_t flags; 578 __dbc_dup_reply *replyp; 579{ 580 int ret; 581 long dbcid; 582 583 if (replyp->status != 0) 584 return (replyp->status); 585 dbcid = replyp->dbcidcl_id; 586 587 /* 588 * XXX Code goes here 589 */ 590 591 return (replyp->status); 592} 593 594/* 595 * PUBLIC: int __dbcl_dbc_get_ret __P((DBC *, DBT *, DBT *, u_int32_t, 596 * PUBLIC: __dbc_get_reply *)); 597 */ 598int 599__dbcl_dbc_get_ret(dbc, key, data, flags, replyp) 600 DBC * dbc; 601 DBT * key; 602 DBT * data; 603 u_int32_t flags; 604 __dbc_get_reply *replyp; 605{ 606 int ret; 607 /* DBT key; */ 608 /* DBT data; */ 609 610 if (replyp->status != 0) 611 return (replyp->status); 612 /* Handle replyp->keydata; */ 613 /* Handle replyp->datadata; */ 614 615 /* 616 * XXX Code goes here 617 */ 618 619 return (replyp->status); 620} 621 622/* 623 * PUBLIC: int __dbcl_dbc_pget_ret __P((DBC *, DBT *, DBT *, DBT *, u_int32_t, 624 * PUBLIC: __dbc_pget_reply *)); 625 */ 626int 627__dbcl_dbc_pget_ret(dbc, skey, pkey, data, flags, replyp) 628 DBC * dbc; 629 DBT * skey; 630 DBT * pkey; 631 DBT * data; 632 u_int32_t flags; 633 __dbc_pget_reply *replyp; 634{ 635 int ret; 636 /* DBT skey; */ 637 /* DBT pkey; */ 638 /* DBT data; */ 639 640 if (replyp->status != 0) 641 return (replyp->status); 642 /* Handle replyp->skeydata; */ 643 /* Handle replyp->pkeydata; */ 644 /* Handle replyp->datadata; */ 645 646 /* 647 * XXX Code goes here 648 */ 649 650 return (replyp->status); 651} 652 653/* 654 * PUBLIC: int __dbcl_dbc_put_ret __P((DBC *, DBT *, DBT *, u_int32_t, 655 * PUBLIC: __dbc_put_reply *)); 656 */ 657int 658__dbcl_dbc_put_ret(dbc, key, data, flags, replyp) 659 DBC * dbc; 660 DBT * key; 661 DBT * data; 662 u_int32_t flags; 663 __dbc_put_reply *replyp; 664{ 665 int ret; 666 /* DBT key; */ 667 668 if (replyp->status != 0) 669 return (replyp->status); 670 /* Handle replyp->keydata; */ 671 672 /* 673 * XXX Code goes here 674 */ 675 676 return (replyp->status); 677} 678 679/* 680 * PUBLIC: int __dbcl_txn_abort_ret __P((DB_TXN *, __txn_abort_reply *)); 681 */ 682int 683__dbcl_txn_abort_ret(txnp, replyp) 684 DB_TXN * txnp; 685 __txn_abort_reply *replyp; 686{ 687 int ret; 688 689 if (replyp->status != 0) 690 return (replyp->status); 691 692 /* 693 * XXX Code goes here 694 */ 695 696 return (replyp->status); 697} 698 699/* 700 * PUBLIC: int __dbcl_txn_commit_ret __P((DB_TXN *, u_int32_t, 701 * PUBLIC: __txn_commit_reply *)); 702 */ 703int 704__dbcl_txn_commit_ret(txnp, flags, replyp) 705 DB_TXN * txnp; 706 u_int32_t flags; 707 __txn_commit_reply *replyp; 708{ 709 int ret; 710 711 if (replyp->status != 0) 712 return (replyp->status); 713 714 /* 715 * XXX Code goes here 716 */ 717 718 return (replyp->status); 719} 720 721/* 722 * PUBLIC: int __dbcl_txn_discard_ret __P((DB_TXN *, u_int32_t, 723 * PUBLIC: __txn_discard_reply *)); 724 */ 725int 726__dbcl_txn_discard_ret(txnp, flags, replyp) 727 DB_TXN * txnp; 728 u_int32_t flags; 729 __txn_discard_reply *replyp; 730{ 731 int ret; 732 733 if (replyp->status != 0) 734 return (replyp->status); 735 736 /* 737 * XXX Code goes here 738 */ 739 740 return (replyp->status); 741} 742 743