int flags;
u_int32_t flags;
__bam_c_rget(dbp, cp, data, flags)	DB *dbp;	CURSOR *cp;	DBT *data;	int flags;{	BTREE *t;	DBT dbt;	db_recno_t recno;	int exact, ret;	COMPQUIET(flags, 0);	/* Get the page with the current item on it. */	if ((ret = __bam_pget(dbp, &cp->page, &cp->pgno, 0)) != 0)		return (ret);	/* Get a copy of the key. */	memset(&dbt, 0, sizeof(DBT));	dbt.flags = DB_DBT_MALLOC | DB_DBT_INTERNAL;	if ((ret = __db_ret(dbp, cp->page, cp->indx, &dbt, NULL, NULL)) != 0)		goto err;	exact = 1;	if ((ret = __bam_search(dbp, &dbt, S_FIND, 1, &recno, &exact)) != 0)		goto err;	t = dbp->internal;	ret = __db_retcopy(data, &recno, sizeof(recno),	    &t->bt_rdata.data, &t->bt_rdata.ulen, dbp->db_malloc);	/* Release the stack. */	__bam_stkrel(dbp);err:	(void)memp_fput(dbp->mpf, cp->page, 0);	__db_free(dbt.data);	return (ret);}