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

#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>

#include <rpc/rpc.h>

#include <errno.h>
#include <string.h>
#endif

#include "db_int.h"
#include "db_server.h"
#include "db_server_int.h"
#include "rpc_server_ext.h"

#include "gen_server_ext.h"

/* BEGIN __envcachesize_1_proc */
void
__envcachesize_1_proc(dbenvcl_id, gbytes, bytes, 
		ncache, replyp)
	long dbenvcl_id;
	u_int32_t gbytes;
	u_int32_t bytes;
	u_int32_t ncache;
	__envcachesize_reply *replyp;
/* END __envcachesize_1_proc */
{
	int ret;
	DB_ENV * dbenv;
	ct_entry *dbenv_ctp;

	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, H_ENV);
	dbenv = (DB_ENV *)dbenv_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __envclose_1_proc */
void
__envclose_1_proc(dbenvcl_id, flags, replyp)
	long dbenvcl_id;
	u_int32_t flags;
	__envclose_reply *replyp;
/* END __envclose_1_proc */
{
	int ret;
	DB_ENV * dbenv;
	ct_entry *dbenv_ctp;

	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, H_ENV);
	dbenv = (DB_ENV *)dbenv_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __envcreate_1_proc */
void
__envcreate_1_proc(timeout, replyp)
	u_int32_t timeout;
	__envcreate_reply *replyp;
/* END __envcreate_1_proc */
{
	int ret;


	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __envopen_1_proc */
void
__envopen_1_proc(dbenvcl_id, home, 
		flags, mode, replyp)
	long dbenvcl_id;
	char *home;
	u_int32_t flags;
	u_int32_t mode;
	__envopen_reply *replyp;
/* END __envopen_1_proc */
{
	int ret;
	DB_ENV * dbenv;
	ct_entry *dbenv_ctp;

	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, H_ENV);
	dbenv = (DB_ENV *)dbenv_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __envremove_1_proc */
void
__envremove_1_proc(dbenvcl_id, home, 
		flags, replyp)
	long dbenvcl_id;
	char *home;
	u_int32_t flags;
	__envremove_reply *replyp;
/* END __envremove_1_proc */
{
	int ret;
	DB_ENV * dbenv;
	ct_entry *dbenv_ctp;

	ACTIVATE_CTP(dbenv_ctp, dbenvcl_id, H_ENV);
	dbenv = (DB_ENV *)dbenv_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __txnabort_1_proc */
void
__txnabort_1_proc(txnpcl_id, replyp)
	long txnpcl_id;
	__txnabort_reply *replyp;
/* END __txnabort_1_proc */
{
	int ret;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __txnbegin_1_proc */
void
__txnbegin_1_proc(envpcl_id, parentcl_id, 
		flags, replyp)
	long envpcl_id;
	long parentcl_id;
	u_int32_t flags;
	__txnbegin_reply *replyp;
/* END __txnbegin_1_proc */
{
	int ret;
	DB_ENV * envp;
	ct_entry *envp_ctp;
	DB_TXN * parent;
	ct_entry *parent_ctp;

	ACTIVATE_CTP(envp_ctp, envpcl_id, H_ENV);
	envp = (DB_ENV *)envp_ctp->ct_anyp;
	ACTIVATE_CTP(parent_ctp, parentcl_id, H_TXN);
	parent = (DB_TXN *)parent_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __txncommit_1_proc */
void
__txncommit_1_proc(txnpcl_id, flags, replyp)
	long txnpcl_id;
	u_int32_t flags;
	__txncommit_reply *replyp;
/* END __txncommit_1_proc */
{
	int ret;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbbtmaxkey_1_proc */
void
__dbbtmaxkey_1_proc(dbpcl_id, maxkey, replyp)
	long dbpcl_id;
	u_int32_t maxkey;
	__dbbtmaxkey_reply *replyp;
/* END __dbbtmaxkey_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbbtminkey_1_proc */
void
__dbbtminkey_1_proc(dbpcl_id, minkey, replyp)
	long dbpcl_id;
	u_int32_t minkey;
	__dbbtminkey_reply *replyp;
/* END __dbbtminkey_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbclose_1_proc */
void
__dbclose_1_proc(dbpcl_id, flags, replyp)
	long dbpcl_id;
	u_int32_t flags;
	__dbclose_reply *replyp;
/* END __dbclose_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbcreate_1_proc */
void
__dbcreate_1_proc(flags, envpcl_id, replyp)
	u_int32_t flags;
	long envpcl_id;
	__dbcreate_reply *replyp;
/* END __dbcreate_1_proc */
{
	int ret;
	DB_ENV * envp;
	ct_entry *envp_ctp;

	ACTIVATE_CTP(envp_ctp, envpcl_id, H_ENV);
	envp = (DB_ENV *)envp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbdel_1_proc */
void
__dbdel_1_proc(dbpcl_id, txnpcl_id, keydlen, 
		keydoff, keyflags, keydata, keysize, 
		flags, replyp)
	long dbpcl_id;
	long txnpcl_id;
	u_int32_t keydlen;
	u_int32_t keydoff;
	u_int32_t keyflags;
	void *keydata;
	u_int32_t keysize;
	u_int32_t flags;
	__dbdel_reply *replyp;
/* END __dbdel_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;
	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbflags_1_proc */
void
__dbflags_1_proc(dbpcl_id, flags, replyp)
	long dbpcl_id;
	u_int32_t flags;
	__dbflags_reply *replyp;
/* END __dbflags_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbget_1_proc */
void
__dbget_1_proc(dbpcl_id, txnpcl_id, keydlen, 
		keydoff, keyflags, keydata, keysize, 
		datadlen, datadoff, dataflags, datadata, 
		datasize, flags, replyp, freep)
	long dbpcl_id;
	long txnpcl_id;
	u_int32_t keydlen;
	u_int32_t keydoff;
	u_int32_t keyflags;
	void *keydata;
	u_int32_t keysize;
	u_int32_t datadlen;
	u_int32_t datadoff;
	u_int32_t dataflags;
	void *datadata;
	u_int32_t datasize;
	u_int32_t flags;
	__dbget_reply *replyp;
	int * freep;
/* END __dbget_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;
	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbhffactor_1_proc */
void
__dbhffactor_1_proc(dbpcl_id, ffactor, replyp)
	long dbpcl_id;
	u_int32_t ffactor;
	__dbhffactor_reply *replyp;
/* END __dbhffactor_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbhnelem_1_proc */
void
__dbhnelem_1_proc(dbpcl_id, nelem, replyp)
	long dbpcl_id;
	u_int32_t nelem;
	__dbhnelem_reply *replyp;
/* END __dbhnelem_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dblorder_1_proc */
void
__dblorder_1_proc(dbpcl_id, lorder, replyp)
	long dbpcl_id;
	u_int32_t lorder;
	__dblorder_reply *replyp;
/* END __dblorder_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbopen_1_proc */
void
__dbopen_1_proc(dbpcl_id, name, subdb, 
		type, flags, mode, replyp)
	long dbpcl_id;
	char *name;
	char *subdb;
	u_int32_t type;
	u_int32_t flags;
	u_int32_t mode;
	__dbopen_reply *replyp;
/* END __dbopen_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbpagesize_1_proc */
void
__dbpagesize_1_proc(dbpcl_id, pagesize, replyp)
	long dbpcl_id;
	u_int32_t pagesize;
	__dbpagesize_reply *replyp;
/* END __dbpagesize_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbput_1_proc */
void
__dbput_1_proc(dbpcl_id, txnpcl_id, keydlen, 
		keydoff, keyflags, keydata, keysize, 
		datadlen, datadoff, dataflags, datadata, 
		datasize, flags, replyp, freep)
	long dbpcl_id;
	long txnpcl_id;
	u_int32_t keydlen;
	u_int32_t keydoff;
	u_int32_t keyflags;
	void *keydata;
	u_int32_t keysize;
	u_int32_t datadlen;
	u_int32_t datadoff;
	u_int32_t dataflags;
	void *datadata;
	u_int32_t datasize;
	u_int32_t flags;
	__dbput_reply *replyp;
	int * freep;
/* END __dbput_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;
	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbredelim_1_proc */
void
__dbredelim_1_proc(dbpcl_id, delim, replyp)
	long dbpcl_id;
	u_int32_t delim;
	__dbredelim_reply *replyp;
/* END __dbredelim_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbrelen_1_proc */
void
__dbrelen_1_proc(dbpcl_id, len, replyp)
	long dbpcl_id;
	u_int32_t len;
	__dbrelen_reply *replyp;
/* END __dbrelen_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbrepad_1_proc */
void
__dbrepad_1_proc(dbpcl_id, pad, replyp)
	long dbpcl_id;
	u_int32_t pad;
	__dbrepad_reply *replyp;
/* END __dbrepad_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbremove_1_proc */
void
__dbremove_1_proc(dbpcl_id, name, subdb, 
		flags, replyp)
	long dbpcl_id;
	char *name;
	char *subdb;
	u_int32_t flags;
	__dbremove_reply *replyp;
/* END __dbremove_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbstat_1_proc */
void
__dbstat_1_proc(dbpcl_id, 
		flags, replyp, freep)
	long dbpcl_id;
	u_int32_t flags;
	__dbstat_reply *replyp;
	int * freep;
/* END __dbstat_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbswapped_1_proc */
void
__dbswapped_1_proc(dbpcl_id, replyp)
	long dbpcl_id;
	__dbswapped_reply *replyp;
/* END __dbswapped_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbsync_1_proc */
void
__dbsync_1_proc(dbpcl_id, flags, replyp)
	long dbpcl_id;
	u_int32_t flags;
	__dbsync_reply *replyp;
/* END __dbsync_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbcursor_1_proc */
void
__dbcursor_1_proc(dbpcl_id, txnpcl_id, 
		flags, replyp)
	long dbpcl_id;
	long txnpcl_id;
	u_int32_t flags;
	__dbcursor_reply *replyp;
/* END __dbcursor_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;
	DB_TXN * txnp;
	ct_entry *txnp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;
	ACTIVATE_CTP(txnp_ctp, txnpcl_id, H_TXN);
	txnp = (DB_TXN *)txnp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbjoin_1_proc */
void
__dbjoin_1_proc(dbpcl_id, curslist, 
		flags, replyp)
	long dbpcl_id;
	u_int32_t * curslist;
	u_int32_t flags;
	__dbjoin_reply *replyp;
/* END __dbjoin_1_proc */
{
	int ret;
	DB * dbp;
	ct_entry *dbp_ctp;

	ACTIVATE_CTP(dbp_ctp, dbpcl_id, H_DB);
	dbp = (DB *)dbp_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_close_1_proc */
void
__dbc_close_1_proc(dbccl_id, replyp)
	long dbccl_id;
	__dbc_close_reply *replyp;
/* END __dbc_close_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_count_1_proc */
void
__dbc_count_1_proc(dbccl_id, flags, replyp)
	long dbccl_id;
	u_int32_t flags;
	__dbc_count_reply *replyp;
/* END __dbc_count_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_del_1_proc */
void
__dbc_del_1_proc(dbccl_id, flags, replyp)
	long dbccl_id;
	u_int32_t flags;
	__dbc_del_reply *replyp;
/* END __dbc_del_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_dup_1_proc */
void
__dbc_dup_1_proc(dbccl_id, flags, replyp)
	long dbccl_id;
	u_int32_t flags;
	__dbc_dup_reply *replyp;
/* END __dbc_dup_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_get_1_proc */
void
__dbc_get_1_proc(dbccl_id, keydlen, keydoff, 
		keyflags, keydata, keysize, datadlen, 
		datadoff, dataflags, datadata, datasize, 
		flags, replyp, freep)
	long dbccl_id;
	u_int32_t keydlen;
	u_int32_t keydoff;
	u_int32_t keyflags;
	void *keydata;
	u_int32_t keysize;
	u_int32_t datadlen;
	u_int32_t datadoff;
	u_int32_t dataflags;
	void *datadata;
	u_int32_t datasize;
	u_int32_t flags;
	__dbc_get_reply *replyp;
	int * freep;
/* END __dbc_get_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

/* BEGIN __dbc_put_1_proc */
void
__dbc_put_1_proc(dbccl_id, keydlen, keydoff, 
		keyflags, keydata, keysize, datadlen, 
		datadoff, dataflags, datadata, datasize, 
		flags, replyp)
	long dbccl_id;
	u_int32_t keydlen;
	u_int32_t keydoff;
	u_int32_t keyflags;
	void *keydata;
	u_int32_t keysize;
	u_int32_t datadlen;
	u_int32_t datadoff;
	u_int32_t dataflags;
	void *datadata;
	u_int32_t datasize;
	u_int32_t flags;
	__dbc_put_reply *replyp;
/* END __dbc_put_1_proc */
{
	int ret;
	DBC * dbc;
	ct_entry *dbc_ctp;

	ACTIVATE_CTP(dbc_ctp, dbccl_id, H_CURSOR);
	dbc = (DBC *)dbc_ctp->ct_anyp;

	/*
	 * XXX Code goes here
	 */

	replyp->status = ret;
	return;
}

