/* Do not edit: automatically built by gen_rpc.awk. */
#include "db_config.h"

#include "db_int.h"
#ifndef NO_SYSTEM_INCLUDES
#include <rpc/rpc.h>
#endif
#include "db_server.h"
#include "dbinc/db_server_int.h"
#include "dbinc_auto/rpc_server_ext.h"

__env_create_reply *
__db_env_create_4005__SVCSUFFIX__(msg, req)
	__env_create_msg *msg;
	struct svc_req *req;
{
	static __env_create_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_create_proc(msg->timeout,
	    &reply);

	return (&reply);
}

__env_cdsgroup_begin_reply *
__db_env_cdsgroup_begin_4005__SVCSUFFIX__(msg, req)
	__env_cdsgroup_begin_msg *msg;
	struct svc_req *req;
{
	static __env_cdsgroup_begin_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_cdsgroup_begin_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_close_reply *
__db_env_close_4005__SVCSUFFIX__(msg, req)
	__env_close_msg *msg;
	struct svc_req *req;
{
	static __env_close_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_close_proc(msg->dbenvcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_dbremove_reply *
__db_env_dbremove_4005__SVCSUFFIX__(msg, req)
	__env_dbremove_msg *msg;
	struct svc_req *req;
{
	static __env_dbremove_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_dbremove_proc(msg->dbenvcl_id,
	    msg->txnpcl_id,
	    (*msg->name == '\0') ? NULL : msg->name,
	    (*msg->subdb == '\0') ? NULL : msg->subdb,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_dbrename_reply *
__db_env_dbrename_4005__SVCSUFFIX__(msg, req)
	__env_dbrename_msg *msg;
	struct svc_req *req;
{
	static __env_dbrename_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_dbrename_proc(msg->dbenvcl_id,
	    msg->txnpcl_id,
	    (*msg->name == '\0') ? NULL : msg->name,
	    (*msg->subdb == '\0') ? NULL : msg->subdb,
	    (*msg->newname == '\0') ? NULL : msg->newname,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_get_cachesize_reply *
__db_env_get_cachesize_4005__SVCSUFFIX__(msg, req)
	__env_get_cachesize_msg *msg;
	struct svc_req *req;
{
	static __env_get_cachesize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_get_cachesize_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_get_encrypt_flags_reply *
__db_env_get_encrypt_flags_4005__SVCSUFFIX__(msg, req)
	__env_get_encrypt_flags_msg *msg;
	struct svc_req *req;
{
	static __env_get_encrypt_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_get_encrypt_flags_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_get_flags_reply *
__db_env_get_flags_4005__SVCSUFFIX__(msg, req)
	__env_get_flags_msg *msg;
	struct svc_req *req;
{
	static __env_get_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_get_flags_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_get_home_reply *
__db_env_get_home_4005__SVCSUFFIX__(msg, req)
	__env_get_home_msg *msg;
	struct svc_req *req;
{
	static __env_get_home_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_get_home_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_get_open_flags_reply *
__db_env_get_open_flags_4005__SVCSUFFIX__(msg, req)
	__env_get_open_flags_msg *msg;
	struct svc_req *req;
{
	static __env_get_open_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_get_open_flags_proc(msg->dbenvcl_id,
	    &reply);

	return (&reply);
}

__env_open_reply *
__db_env_open_4005__SVCSUFFIX__(msg, req)
	__env_open_msg *msg;
	struct svc_req *req;
{
	static __env_open_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_open_proc(msg->dbenvcl_id,
	    (*msg->home == '\0') ? NULL : msg->home,
	    msg->flags,
	    msg->mode,
	    &reply);

	return (&reply);
}

__env_remove_reply *
__db_env_remove_4005__SVCSUFFIX__(msg, req)
	__env_remove_msg *msg;
	struct svc_req *req;
{
	static __env_remove_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_remove_proc(msg->dbenvcl_id,
	    (*msg->home == '\0') ? NULL : msg->home,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_set_cachesize_reply *
__db_env_set_cachesize_4005__SVCSUFFIX__(msg, req)
	__env_set_cachesize_msg *msg;
	struct svc_req *req;
{
	static __env_set_cachesize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_set_cachesize_proc(msg->dbenvcl_id,
	    msg->gbytes,
	    msg->bytes,
	    msg->ncache,
	    &reply);

	return (&reply);
}

__env_set_encrypt_reply *
__db_env_set_encrypt_4005__SVCSUFFIX__(msg, req)
	__env_set_encrypt_msg *msg;
	struct svc_req *req;
{
	static __env_set_encrypt_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_set_encrypt_proc(msg->dbenvcl_id,
	    (*msg->passwd == '\0') ? NULL : msg->passwd,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_set_flags_reply *
__db_env_set_flags_4005__SVCSUFFIX__(msg, req)
	__env_set_flags_msg *msg;
	struct svc_req *req;
{
	static __env_set_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_set_flags_proc(msg->dbenvcl_id,
	    msg->flags,
	    msg->onoff,
	    &reply);

	return (&reply);
}

__env_txn_begin_reply *
__db_env_txn_begin_4005__SVCSUFFIX__(msg, req)
	__env_txn_begin_msg *msg;
	struct svc_req *req;
{
	static __env_txn_begin_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__env_txn_begin_proc(msg->dbenvcl_id,
	    msg->parentcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__env_txn_recover_reply *
__db_env_txn_recover_4005__SVCSUFFIX__(msg, req)
	__env_txn_recover_msg *msg;
	struct svc_req *req;
{
	static __env_txn_recover_reply reply; /* must be static */
	static int __env_txn_recover_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__env_txn_recover_free)
		xdr_free((xdrproc_t)xdr___env_txn_recover_reply, (void *)&reply);
	__env_txn_recover_free = 0;

	/* Reinitialize allocated fields */
	reply.txn.txn_val = NULL;
	reply.gid.gid_val = NULL;

	__env_txn_recover_proc(msg->dbenvcl_id,
	    msg->count,
	    msg->flags,
	    &reply,
	    &__env_txn_recover_free);
	return (&reply);
}

__db_create_reply *
__db_db_create_4005__SVCSUFFIX__(msg, req)
	__db_create_msg *msg;
	struct svc_req *req;
{
	static __db_create_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_create_proc(msg->dbenvcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_associate_reply *
__db_db_associate_4005__SVCSUFFIX__(msg, req)
	__db_associate_msg *msg;
	struct svc_req *req;
{
	static __db_associate_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_associate_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->sdbpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_close_reply *
__db_db_close_4005__SVCSUFFIX__(msg, req)
	__db_close_msg *msg;
	struct svc_req *req;
{
	static __db_close_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_close_proc(msg->dbpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_cursor_reply *
__db_db_cursor_4005__SVCSUFFIX__(msg, req)
	__db_cursor_msg *msg;
	struct svc_req *req;
{
	static __db_cursor_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_cursor_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_del_reply *
__db_db_del_4005__SVCSUFFIX__(msg, req)
	__db_del_msg *msg;
	struct svc_req *req;
{
	static __db_del_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_del_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_get_reply *
__db_db_get_4005__SVCSUFFIX__(msg, req)
	__db_get_msg *msg;
	struct svc_req *req;
{
	static __db_get_reply reply; /* must be static */
	static int __db_get_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__db_get_free)
		xdr_free((xdrproc_t)xdr___db_get_reply, (void *)&reply);
	__db_get_free = 0;

	/* Reinitialize allocated fields */
	reply.keydata.keydata_val = NULL;
	reply.datadata.datadata_val = NULL;

	__db_get_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__db_get_free);
	return (&reply);
}

__db_get_bt_minkey_reply *
__db_db_get_bt_minkey_4005__SVCSUFFIX__(msg, req)
	__db_get_bt_minkey_msg *msg;
	struct svc_req *req;
{
	static __db_get_bt_minkey_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_bt_minkey_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_dbname_reply *
__db_db_get_dbname_4005__SVCSUFFIX__(msg, req)
	__db_get_dbname_msg *msg;
	struct svc_req *req;
{
	static __db_get_dbname_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_dbname_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_encrypt_flags_reply *
__db_db_get_encrypt_flags_4005__SVCSUFFIX__(msg, req)
	__db_get_encrypt_flags_msg *msg;
	struct svc_req *req;
{
	static __db_get_encrypt_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_encrypt_flags_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_flags_reply *
__db_db_get_flags_4005__SVCSUFFIX__(msg, req)
	__db_get_flags_msg *msg;
	struct svc_req *req;
{
	static __db_get_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_flags_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_h_ffactor_reply *
__db_db_get_h_ffactor_4005__SVCSUFFIX__(msg, req)
	__db_get_h_ffactor_msg *msg;
	struct svc_req *req;
{
	static __db_get_h_ffactor_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_h_ffactor_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_h_nelem_reply *
__db_db_get_h_nelem_4005__SVCSUFFIX__(msg, req)
	__db_get_h_nelem_msg *msg;
	struct svc_req *req;
{
	static __db_get_h_nelem_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_h_nelem_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_lorder_reply *
__db_db_get_lorder_4005__SVCSUFFIX__(msg, req)
	__db_get_lorder_msg *msg;
	struct svc_req *req;
{
	static __db_get_lorder_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_lorder_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_open_flags_reply *
__db_db_get_open_flags_4005__SVCSUFFIX__(msg, req)
	__db_get_open_flags_msg *msg;
	struct svc_req *req;
{
	static __db_get_open_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_open_flags_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_pagesize_reply *
__db_db_get_pagesize_4005__SVCSUFFIX__(msg, req)
	__db_get_pagesize_msg *msg;
	struct svc_req *req;
{
	static __db_get_pagesize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_pagesize_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_q_extentsize_reply *
__db_db_get_q_extentsize_4005__SVCSUFFIX__(msg, req)
	__db_get_q_extentsize_msg *msg;
	struct svc_req *req;
{
	static __db_get_q_extentsize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_q_extentsize_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_re_delim_reply *
__db_db_get_re_delim_4005__SVCSUFFIX__(msg, req)
	__db_get_re_delim_msg *msg;
	struct svc_req *req;
{
	static __db_get_re_delim_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_re_delim_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_re_len_reply *
__db_db_get_re_len_4005__SVCSUFFIX__(msg, req)
	__db_get_re_len_msg *msg;
	struct svc_req *req;
{
	static __db_get_re_len_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_re_len_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_get_re_pad_reply *
__db_db_get_re_pad_4005__SVCSUFFIX__(msg, req)
	__db_get_re_pad_msg *msg;
	struct svc_req *req;
{
	static __db_get_re_pad_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_get_re_pad_proc(msg->dbpcl_id,
	    &reply);

	return (&reply);
}

__db_join_reply *
__db_db_join_4005__SVCSUFFIX__(msg, req)
	__db_join_msg *msg;
	struct svc_req *req;
{
	static __db_join_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_join_proc(msg->dbpcl_id,
	    msg->curs.curs_val,
	    msg->curs.curs_len,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_key_range_reply *
__db_db_key_range_4005__SVCSUFFIX__(msg, req)
	__db_key_range_msg *msg;
	struct svc_req *req;
{
	static __db_key_range_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_key_range_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_open_reply *
__db_db_open_4005__SVCSUFFIX__(msg, req)
	__db_open_msg *msg;
	struct svc_req *req;
{
	static __db_open_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_open_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    (*msg->name == '\0') ? NULL : msg->name,
	    (*msg->subdb == '\0') ? NULL : msg->subdb,
	    msg->type,
	    msg->flags,
	    msg->mode,
	    &reply);

	return (&reply);
}

__db_pget_reply *
__db_db_pget_4005__SVCSUFFIX__(msg, req)
	__db_pget_msg *msg;
	struct svc_req *req;
{
	static __db_pget_reply reply; /* must be static */
	static int __db_pget_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__db_pget_free)
		xdr_free((xdrproc_t)xdr___db_pget_reply, (void *)&reply);
	__db_pget_free = 0;

	/* Reinitialize allocated fields */
	reply.skeydata.skeydata_val = NULL;
	reply.pkeydata.pkeydata_val = NULL;
	reply.datadata.datadata_val = NULL;

	__db_pget_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->skeydlen,
	    msg->skeydoff,
	    msg->skeyulen,
	    msg->skeyflags,
	    msg->skeydata.skeydata_val,
	    msg->skeydata.skeydata_len,
	    msg->pkeydlen,
	    msg->pkeydoff,
	    msg->pkeyulen,
	    msg->pkeyflags,
	    msg->pkeydata.pkeydata_val,
	    msg->pkeydata.pkeydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__db_pget_free);
	return (&reply);
}

__db_put_reply *
__db_db_put_4005__SVCSUFFIX__(msg, req)
	__db_put_msg *msg;
	struct svc_req *req;
{
	static __db_put_reply reply; /* must be static */
	static int __db_put_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__db_put_free)
		xdr_free((xdrproc_t)xdr___db_put_reply, (void *)&reply);
	__db_put_free = 0;

	/* Reinitialize allocated fields */
	reply.keydata.keydata_val = NULL;

	__db_put_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__db_put_free);
	return (&reply);
}

__db_remove_reply *
__db_db_remove_4005__SVCSUFFIX__(msg, req)
	__db_remove_msg *msg;
	struct svc_req *req;
{
	static __db_remove_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_remove_proc(msg->dbpcl_id,
	    (*msg->name == '\0') ? NULL : msg->name,
	    (*msg->subdb == '\0') ? NULL : msg->subdb,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_rename_reply *
__db_db_rename_4005__SVCSUFFIX__(msg, req)
	__db_rename_msg *msg;
	struct svc_req *req;
{
	static __db_rename_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_rename_proc(msg->dbpcl_id,
	    (*msg->name == '\0') ? NULL : msg->name,
	    (*msg->subdb == '\0') ? NULL : msg->subdb,
	    (*msg->newname == '\0') ? NULL : msg->newname,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_set_bt_minkey_reply *
__db_db_set_bt_minkey_4005__SVCSUFFIX__(msg, req)
	__db_set_bt_minkey_msg *msg;
	struct svc_req *req;
{
	static __db_set_bt_minkey_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_bt_minkey_proc(msg->dbpcl_id,
	    msg->minkey,
	    &reply);

	return (&reply);
}

__db_set_encrypt_reply *
__db_db_set_encrypt_4005__SVCSUFFIX__(msg, req)
	__db_set_encrypt_msg *msg;
	struct svc_req *req;
{
	static __db_set_encrypt_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_encrypt_proc(msg->dbpcl_id,
	    (*msg->passwd == '\0') ? NULL : msg->passwd,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_set_flags_reply *
__db_db_set_flags_4005__SVCSUFFIX__(msg, req)
	__db_set_flags_msg *msg;
	struct svc_req *req;
{
	static __db_set_flags_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_flags_proc(msg->dbpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_set_h_ffactor_reply *
__db_db_set_h_ffactor_4005__SVCSUFFIX__(msg, req)
	__db_set_h_ffactor_msg *msg;
	struct svc_req *req;
{
	static __db_set_h_ffactor_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_h_ffactor_proc(msg->dbpcl_id,
	    msg->ffactor,
	    &reply);

	return (&reply);
}

__db_set_h_nelem_reply *
__db_db_set_h_nelem_4005__SVCSUFFIX__(msg, req)
	__db_set_h_nelem_msg *msg;
	struct svc_req *req;
{
	static __db_set_h_nelem_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_h_nelem_proc(msg->dbpcl_id,
	    msg->nelem,
	    &reply);

	return (&reply);
}

__db_set_lorder_reply *
__db_db_set_lorder_4005__SVCSUFFIX__(msg, req)
	__db_set_lorder_msg *msg;
	struct svc_req *req;
{
	static __db_set_lorder_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_lorder_proc(msg->dbpcl_id,
	    msg->lorder,
	    &reply);

	return (&reply);
}

__db_set_pagesize_reply *
__db_db_set_pagesize_4005__SVCSUFFIX__(msg, req)
	__db_set_pagesize_msg *msg;
	struct svc_req *req;
{
	static __db_set_pagesize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_pagesize_proc(msg->dbpcl_id,
	    msg->pagesize,
	    &reply);

	return (&reply);
}

__db_set_q_extentsize_reply *
__db_db_set_q_extentsize_4005__SVCSUFFIX__(msg, req)
	__db_set_q_extentsize_msg *msg;
	struct svc_req *req;
{
	static __db_set_q_extentsize_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_q_extentsize_proc(msg->dbpcl_id,
	    msg->extentsize,
	    &reply);

	return (&reply);
}

__db_set_re_delim_reply *
__db_db_set_re_delim_4005__SVCSUFFIX__(msg, req)
	__db_set_re_delim_msg *msg;
	struct svc_req *req;
{
	static __db_set_re_delim_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_re_delim_proc(msg->dbpcl_id,
	    msg->delim,
	    &reply);

	return (&reply);
}

__db_set_re_len_reply *
__db_db_set_re_len_4005__SVCSUFFIX__(msg, req)
	__db_set_re_len_msg *msg;
	struct svc_req *req;
{
	static __db_set_re_len_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_re_len_proc(msg->dbpcl_id,
	    msg->len,
	    &reply);

	return (&reply);
}

__db_set_re_pad_reply *
__db_db_set_re_pad_4005__SVCSUFFIX__(msg, req)
	__db_set_re_pad_msg *msg;
	struct svc_req *req;
{
	static __db_set_re_pad_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_set_re_pad_proc(msg->dbpcl_id,
	    msg->pad,
	    &reply);

	return (&reply);
}

__db_stat_reply *
__db_db_stat_4005__SVCSUFFIX__(msg, req)
	__db_stat_msg *msg;
	struct svc_req *req;
{
	static __db_stat_reply reply; /* must be static */
	static int __db_stat_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__db_stat_free)
		xdr_free((xdrproc_t)xdr___db_stat_reply, (void *)&reply);
	__db_stat_free = 0;

	/* Reinitialize allocated fields */
	reply.stats.stats_val = NULL;

	__db_stat_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->flags,
	    &reply,
	    &__db_stat_free);
	return (&reply);
}

__db_sync_reply *
__db_db_sync_4005__SVCSUFFIX__(msg, req)
	__db_sync_msg *msg;
	struct svc_req *req;
{
	static __db_sync_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_sync_proc(msg->dbpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__db_truncate_reply *
__db_db_truncate_4005__SVCSUFFIX__(msg, req)
	__db_truncate_msg *msg;
	struct svc_req *req;
{
	static __db_truncate_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__db_truncate_proc(msg->dbpcl_id,
	    msg->txnpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__dbc_c_close_reply *
__db_dbc_c_close_4005__SVCSUFFIX__(msg, req)
	__dbc_c_close_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_close_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__dbc_c_close_proc(msg->dbccl_id,
	    &reply);

	return (&reply);
}

__dbc_c_count_reply *
__db_dbc_c_count_4005__SVCSUFFIX__(msg, req)
	__dbc_c_count_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_count_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__dbc_c_count_proc(msg->dbccl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__dbc_c_del_reply *
__db_dbc_c_del_4005__SVCSUFFIX__(msg, req)
	__dbc_c_del_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_del_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__dbc_c_del_proc(msg->dbccl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__dbc_c_dup_reply *
__db_dbc_c_dup_4005__SVCSUFFIX__(msg, req)
	__dbc_c_dup_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_dup_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__dbc_c_dup_proc(msg->dbccl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__dbc_c_get_reply *
__db_dbc_c_get_4005__SVCSUFFIX__(msg, req)
	__dbc_c_get_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_get_reply reply; /* must be static */
	static int __dbc_c_get_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__dbc_c_get_free)
		xdr_free((xdrproc_t)xdr___dbc_c_get_reply, (void *)&reply);
	__dbc_c_get_free = 0;

	/* Reinitialize allocated fields */
	reply.keydata.keydata_val = NULL;
	reply.datadata.datadata_val = NULL;

	__dbc_c_get_proc(msg->dbccl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__dbc_c_get_free);
	return (&reply);
}

__dbc_c_pget_reply *
__db_dbc_c_pget_4005__SVCSUFFIX__(msg, req)
	__dbc_c_pget_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_pget_reply reply; /* must be static */
	static int __dbc_c_pget_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__dbc_c_pget_free)
		xdr_free((xdrproc_t)xdr___dbc_c_pget_reply, (void *)&reply);
	__dbc_c_pget_free = 0;

	/* Reinitialize allocated fields */
	reply.skeydata.skeydata_val = NULL;
	reply.pkeydata.pkeydata_val = NULL;
	reply.datadata.datadata_val = NULL;

	__dbc_c_pget_proc(msg->dbccl_id,
	    msg->skeydlen,
	    msg->skeydoff,
	    msg->skeyulen,
	    msg->skeyflags,
	    msg->skeydata.skeydata_val,
	    msg->skeydata.skeydata_len,
	    msg->pkeydlen,
	    msg->pkeydoff,
	    msg->pkeyulen,
	    msg->pkeyflags,
	    msg->pkeydata.pkeydata_val,
	    msg->pkeydata.pkeydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__dbc_c_pget_free);
	return (&reply);
}

__dbc_c_put_reply *
__db_dbc_c_put_4005__SVCSUFFIX__(msg, req)
	__dbc_c_put_msg *msg;
	struct svc_req *req;
{
	static __dbc_c_put_reply reply; /* must be static */
	static int __dbc_c_put_free = 0; /* must be static */

	COMPQUIET(req, NULL);
	if (__dbc_c_put_free)
		xdr_free((xdrproc_t)xdr___dbc_c_put_reply, (void *)&reply);
	__dbc_c_put_free = 0;

	/* Reinitialize allocated fields */
	reply.keydata.keydata_val = NULL;

	__dbc_c_put_proc(msg->dbccl_id,
	    msg->keydlen,
	    msg->keydoff,
	    msg->keyulen,
	    msg->keyflags,
	    msg->keydata.keydata_val,
	    msg->keydata.keydata_len,
	    msg->datadlen,
	    msg->datadoff,
	    msg->dataulen,
	    msg->dataflags,
	    msg->datadata.datadata_val,
	    msg->datadata.datadata_len,
	    msg->flags,
	    &reply,
	    &__dbc_c_put_free);
	return (&reply);
}

__txn_abort_reply *
__db_txn_abort_4005__SVCSUFFIX__(msg, req)
	__txn_abort_msg *msg;
	struct svc_req *req;
{
	static __txn_abort_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__txn_abort_proc(msg->txnpcl_id,
	    &reply);

	return (&reply);
}

__txn_commit_reply *
__db_txn_commit_4005__SVCSUFFIX__(msg, req)
	__txn_commit_msg *msg;
	struct svc_req *req;
{
	static __txn_commit_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__txn_commit_proc(msg->txnpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__txn_discard_reply *
__db_txn_discard_4005__SVCSUFFIX__(msg, req)
	__txn_discard_msg *msg;
	struct svc_req *req;
{
	static __txn_discard_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__txn_discard_proc(msg->txnpcl_id,
	    msg->flags,
	    &reply);

	return (&reply);
}

__txn_prepare_reply *
__db_txn_prepare_4005__SVCSUFFIX__(msg, req)
	__txn_prepare_msg *msg;
	struct svc_req *req;
{
	static __txn_prepare_reply reply; /* must be static */
	COMPQUIET(req, NULL);

	__txn_prepare_proc(msg->txnpcl_id,
	    (u_int8_t *)msg->gid,
	    &reply);

	return (&reply);
}

