DBC *curs;
__ham_hdup(orig, new)	DB *orig, *new;{	HTAB *hashp;	DBC *curs;	int ret;	if ((hashp = (HTAB *)__db_malloc(sizeof(HTAB))) == NULL)		return (ENOMEM);	new->internal = hashp;	hashp->dbp = new;	hashp->hlock = 0;	hashp->hdr = NULL;	hashp->hash = ((HTAB *)orig->internal)->hash;	if ((hashp->split_buf = (PAGE *)__db_malloc(orig->pgsize)) == NULL)		return (ENOMEM);	hashp->local_errno = 0;	hashp->hash_accesses = 0;	hashp->hash_collisions = 0;	hashp->hash_expansions = 0;	hashp->hash_overflows = 0;	hashp->hash_bigpages = 0;	/* Initialize the cursor queue. */	ret = __ham_c_init(new, NULL, &curs);	TAILQ_INSERT_TAIL(&new->curs_queue, curs, links);	return (ret);}