head	1.2;
access;
symbols
	RPM_4_2_1:1.1.1.5
	RPM_4_2:1.1.1.5
	RPM_4_1_1:1.1.1.5
	RPM_4_1:1.1.1.4
	RPM_4_0_5:1.1.1.3
	RPM_4_0_4:1.1.1.2
	RPM_4_0_3:1.1.1.1
	RPM:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2008.01.02.09.52.38;	author rse;	state dead;
branches;
next	1.1;
commitid	z4cpSiAhOCXk5PLs;

1.1
date	2001.07.23.20.45.35;	author rse;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.07.23.20.45.35;	author rse;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.01.07.22.30.09;	author rse;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2003.01.18.13.48.54;	author rse;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2001.10.15.03.47.24;	author rse;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.01.18.14.04.56;	author rse;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove the ancient RPM 4.2.1 source tree copy
@
text
@/* Do not edit: automatically built by gen_rpc.awk. */
#include "db_config.h"

#ifdef HAVE_RPC
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#include <rpc/rpc.h>

#include <string.h>
#endif
#include "db_server.h"

#include "db_int.h"
#include "txn.h"

/*
 * PUBLIC: int __dbcl_env_close_ret __P((DB_ENV *, u_int32_t,
 * PUBLIC:      __env_close_reply *));
 */
int
__dbcl_env_close_ret(dbenv, flags, replyp)
	DB_ENV * dbenv;
	u_int32_t flags;
	__env_close_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_env_create_ret __P((DB_ENV *, long,
 * PUBLIC:      __env_create_reply *));
 */
int
__dbcl_env_create_ret(dbenv, timeout, replyp)
	DB_ENV * dbenv;
	long timeout;
	__env_create_reply *replyp;
{
	int ret;
	long env;

	if (replyp->status != 0)
		return (replyp->status);
	env = replyp->envcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_env_open_ret __P((DB_ENV *, const char *, u_int32_t, int,
 * PUBLIC:      __env_open_reply *));
 */
int
__dbcl_env_open_ret(dbenv, home, flags, mode, replyp)
	DB_ENV * dbenv;
	const char * home;
	u_int32_t flags;
	int mode;
	__env_open_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_env_remove_ret __P((DB_ENV *, const char *, u_int32_t,
 * PUBLIC:      __env_remove_reply *));
 */
int
__dbcl_env_remove_ret(dbenv, home, flags, replyp)
	DB_ENV * dbenv;
	const char * home;
	u_int32_t flags;
	__env_remove_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_txn_abort_ret __P((DB_TXN *, __txn_abort_reply *));
 */
int
__dbcl_txn_abort_ret(txnp, replyp)
	DB_TXN * txnp;
	__txn_abort_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_txn_begin_ret __P((DB_ENV *, DB_TXN *, DB_TXN **,
 * PUBLIC:      u_int32_t, __txn_begin_reply *));
 */
int
__dbcl_txn_begin_ret(dbenv, parent, txnpp, flags, replyp)
	DB_ENV * dbenv;
	DB_TXN * parent;
	DB_TXN ** txnpp;
	u_int32_t flags;
	__txn_begin_reply *replyp;
{
	int ret;
	long txnid;

	if (replyp->status != 0)
		return (replyp->status);
	txnid = replyp->txnidcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_txn_commit_ret __P((DB_TXN *, u_int32_t,
 * PUBLIC:      __txn_commit_reply *));
 */
int
__dbcl_txn_commit_ret(txnp, flags, replyp)
	DB_TXN * txnp;
	u_int32_t flags;
	__txn_commit_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_txn_discard_ret __P((DB_TXN *, u_int32_t,
 * PUBLIC:      __txn_discard_reply *));
 */
int
__dbcl_txn_discard_ret(txnp, flags, replyp)
	DB_TXN * txnp;
	u_int32_t flags;
	__txn_discard_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_txn_recover_ret __P((DB_ENV *, DB_PREPLIST *, long,
 * PUBLIC:      long *, u_int32_t, __txn_recover_reply *));
 */
int
__dbcl_txn_recover_ret(dbenv, preplist, count, retp, flags, replyp)
	DB_ENV * dbenv;
	DB_PREPLIST * preplist;
	long count;
	long * retp;
	u_int32_t flags;
	__txn_recover_reply *replyp;
{
	int ret;
	u_int32_t *__db_txn;
	u_int8_t *__db_gid;
	long retcount;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Handle list
	 */


	/*
	 * XXX Handle list
	 */

	retcount = replyp->retcount;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_close_ret __P((DB *, u_int32_t, __db_close_reply *));
 */
int
__dbcl_db_close_ret(dbp, flags, replyp)
	DB * dbp;
	u_int32_t flags;
	__db_close_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_create_ret __P((DB *, DB_ENV *, u_int32_t,
 * PUBLIC:      __db_create_reply *));
 */
int
__dbcl_db_create_ret(dbp, dbenv, flags, replyp)
	DB * dbp;
	DB_ENV * dbenv;
	u_int32_t flags;
	__db_create_reply *replyp;
{
	int ret;
	long db;

	if (replyp->status != 0)
		return (replyp->status);
	db = replyp->dbcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_get_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t,
 * PUBLIC:      __db_get_reply *));
 */
int
__dbcl_db_get_ret(dbp, txnp, key, data, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	DBT * key;
	DBT * data;
	u_int32_t flags;
	__db_get_reply *replyp;
{
	int ret;
	/* DBT key; */
	/* DBT data; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->keydata; */
	/* Handle replyp->datadata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_key_range_ret __P((DB *, DB_TXN *, DBT *,
 * PUBLIC:      DB_KEY_RANGE *, u_int32_t, __db_key_range_reply *));
 */
int
__dbcl_db_key_range_ret(dbp, txnp, key, range, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	DBT * key;
	DB_KEY_RANGE * range;
	u_int32_t flags;
	__db_key_range_reply *replyp;
{
	int ret;
	double less;
	double equal;
	double greater;

	if (replyp->status != 0)
		return (replyp->status);
	less = replyp->less;
	equal = replyp->equal;
	greater = replyp->greater;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_open_ret __P((DB *, const char *, const char *,
 * PUBLIC:      DBTYPE, u_int32_t, int, __db_open_reply *));
 */
int
__dbcl_db_open_ret(dbp, name, subdb, type, flags, mode, replyp)
	DB * dbp;
	const char * name;
	const char * subdb;
	DBTYPE type;
	u_int32_t flags;
	int mode;
	__db_open_reply *replyp;
{
	int ret;
	DBTYPE type;
	u_int32_t dbflags;
	int lorder;

	if (replyp->status != 0)
		return (replyp->status);
	type = replyp->type;
	dbflags = replyp->dbflags;
	lorder = replyp->lorder;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_pget_ret __P((DB *, DB_TXN *, DBT *, DBT *, DBT *,
 * PUBLIC:      u_int32_t, __db_pget_reply *));
 */
int
__dbcl_db_pget_ret(dbp, txnp, skey, pkey, data, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	DBT * skey;
	DBT * pkey;
	DBT * data;
	u_int32_t flags;
	__db_pget_reply *replyp;
{
	int ret;
	/* DBT skey; */
	/* DBT pkey; */
	/* DBT data; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->skeydata; */
	/* Handle replyp->pkeydata; */
	/* Handle replyp->datadata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_put_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t,
 * PUBLIC:      __db_put_reply *));
 */
int
__dbcl_db_put_ret(dbp, txnp, key, data, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	DBT * key;
	DBT * data;
	u_int32_t flags;
	__db_put_reply *replyp;
{
	int ret;
	/* DBT key; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->keydata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_remove_ret __P((DB *, const char *, const char *,
 * PUBLIC:      u_int32_t, __db_remove_reply *));
 */
int
__dbcl_db_remove_ret(dbp, name, subdb, flags, replyp)
	DB * dbp;
	const char * name;
	const char * subdb;
	u_int32_t flags;
	__db_remove_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_rename_ret __P((DB *, const char *, const char *,
 * PUBLIC:      const char *, u_int32_t, __db_rename_reply *));
 */
int
__dbcl_db_rename_ret(dbp, name, subdb, newname, flags, replyp)
	DB * dbp;
	const char * name;
	const char * subdb;
	const char * newname;
	u_int32_t flags;
	__db_rename_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_stat_ret __P((DB *, void *, u_int32_t,
 * PUBLIC:      __db_stat_reply *));
 */
int
__dbcl_db_stat_ret(dbp, sp, flags, replyp)
	DB * dbp;
	void * sp;
	u_int32_t flags;
	__db_stat_reply *replyp;
{
	int ret;
	u_int32_t *__db_stats;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Handle list
	 */


	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_truncate_ret __P((DB *, DB_TXN *, u_int32_t  *,
 * PUBLIC:      u_int32_t, __db_truncate_reply *));
 */
int
__dbcl_db_truncate_ret(dbp, txnp, countp, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	u_int32_t  * countp;
	u_int32_t flags;
	__db_truncate_reply *replyp;
{
	int ret;
	u_int32_t count;

	if (replyp->status != 0)
		return (replyp->status);
	count = replyp->count;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_cursor_ret __P((DB *, DB_TXN *, DBC **, u_int32_t,
 * PUBLIC:      __db_cursor_reply *));
 */
int
__dbcl_db_cursor_ret(dbp, txnp, dbcpp, flags, replyp)
	DB * dbp;
	DB_TXN * txnp;
	DBC ** dbcpp;
	u_int32_t flags;
	__db_cursor_reply *replyp;
{
	int ret;
	long dbcid;

	if (replyp->status != 0)
		return (replyp->status);
	dbcid = replyp->dbcidcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_db_join_ret __P((DB *, DBC **, DBC **, u_int32_t,
 * PUBLIC:      __db_join_reply *));
 */
int
__dbcl_db_join_ret(dbp, curs, dbcp, flags, replyp)
	DB * dbp;
	DBC ** curs;
	DBC ** dbcp;
	u_int32_t flags;
	__db_join_reply *replyp;
{
	int ret;
	long dbcid;

	if (replyp->status != 0)
		return (replyp->status);
	dbcid = replyp->dbcidcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_close_ret __P((DBC *, __dbc_close_reply *));
 */
int
__dbcl_dbc_close_ret(dbc, replyp)
	DBC * dbc;
	__dbc_close_reply *replyp;
{
	int ret;

	if (replyp->status != 0)
		return (replyp->status);

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_count_ret __P((DBC *, db_recno_t *, u_int32_t,
 * PUBLIC:      __dbc_count_reply *));
 */
int
__dbcl_dbc_count_ret(dbc, countp, flags, replyp)
	DBC * dbc;
	db_recno_t * countp;
	u_int32_t flags;
	__dbc_count_reply *replyp;
{
	int ret;
	db_recno_t dupcount;

	if (replyp->status != 0)
		return (replyp->status);
	dupcount = replyp->dupcount;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_dup_ret __P((DBC *, DBC **, u_int32_t,
 * PUBLIC:      __dbc_dup_reply *));
 */
int
__dbcl_dbc_dup_ret(dbc, dbcp, flags, replyp)
	DBC * dbc;
	DBC ** dbcp;
	u_int32_t flags;
	__dbc_dup_reply *replyp;
{
	int ret;
	long dbcid;

	if (replyp->status != 0)
		return (replyp->status);
	dbcid = replyp->dbcidcl_id;

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_get_ret __P((DBC *, DBT *, DBT *, u_int32_t,
 * PUBLIC:      __dbc_get_reply *));
 */
int
__dbcl_dbc_get_ret(dbc, key, data, flags, replyp)
	DBC * dbc;
	DBT * key;
	DBT * data;
	u_int32_t flags;
	__dbc_get_reply *replyp;
{
	int ret;
	/* DBT key; */
	/* DBT data; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->keydata; */
	/* Handle replyp->datadata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_pget_ret __P((DBC *, DBT *, DBT *, DBT *, u_int32_t,
 * PUBLIC:      __dbc_pget_reply *));
 */
int
__dbcl_dbc_pget_ret(dbc, skey, pkey, data, flags, replyp)
	DBC * dbc;
	DBT * skey;
	DBT * pkey;
	DBT * data;
	u_int32_t flags;
	__dbc_pget_reply *replyp;
{
	int ret;
	/* DBT skey; */
	/* DBT pkey; */
	/* DBT data; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->skeydata; */
	/* Handle replyp->pkeydata; */
	/* Handle replyp->datadata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

/*
 * PUBLIC: int __dbcl_dbc_put_ret __P((DBC *, DBT *, DBT *, u_int32_t,
 * PUBLIC:      __dbc_put_reply *));
 */
int
__dbcl_dbc_put_ret(dbc, key, data, flags, replyp)
	DBC * dbc;
	DBT * key;
	DBT * data;
	u_int32_t flags;
	__dbc_put_reply *replyp;
{
	int ret;
	/* DBT key; */

	if (replyp->status != 0)
		return (replyp->status);
	/* Handle replyp->keydata; */

	/*
	 * XXX Code goes here
	 */

	return (replyp->status);
}

#endif /* HAVE_RPC */
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import: RPM 4.0.3
@
text
@@


1.1.1.2
log
@Import: RPM 4.0.4
@
text
@a74 1
	long env;
a77 1
	env = replyp->envcl_id;
a358 1
	long db;
a364 1
	db = replyp->dbcl_id;
@


1.1.1.3
log
@Import: RPM 4.0.5
@
text
@d11 2
d14 1
a14 2
#include "dbinc_auto/db_server.h"
#include "dbinc/txn.h"
d347 2
a348 2
 * PUBLIC: int __dbcl_db_open_ret __P((DB *, DB_TXN *, const char *,
 * PUBLIC:      const char *, DBTYPE, u_int32_t, int, __db_open_reply *));
d351 1
a351 1
__dbcl_db_open_ret(dbp, txnp, name, subdb, type, flags, mode, replyp)
a352 1
	DB_TXN * txnp;
@


1.1.1.4
log
@Import: RPM 4.1
@
text
@a10 2
#include "db_server.h"

d12 2
a13 1
#include "txn.h"
d346 2
a347 2
 * PUBLIC: int __dbcl_db_open_ret __P((DB *, const char *, const char *,
 * PUBLIC:      DBTYPE, u_int32_t, int, __db_open_reply *));
d350 1
a350 1
__dbcl_db_open_ret(dbp, name, subdb, type, flags, mode, replyp)
d352 1
@


1.1.1.5
log
@Import: RPM 4.1.1
@
text
@d11 2
d14 1
a14 2
#include "dbinc_auto/db_server.h"
#include "dbinc/txn.h"
d347 2
a348 2
 * PUBLIC: int __dbcl_db_open_ret __P((DB *, DB_TXN *, const char *,
 * PUBLIC:      const char *, DBTYPE, u_int32_t, int, __db_open_reply *));
d351 1
a351 1
__dbcl_db_open_ret(dbp, txnp, name, subdb, type, flags, mode, replyp)
a352 1
	DB_TXN * txnp;
@


