#ifdef __cplusplus
extern "C" {
#endif
#ifndef H_SCCSID
#include <sccs.h>
#endif /* ~H_SCCSID */
H_SCCSID(@(#)dbm.h	1.10	AIX)	/* Modified 9/16/89 23:55:45 */
/* 
 * (C) Copyright IBM Corp. 1989 
 * All Rights Reserved 
 * Licensed Materials - Property of IBM 
 */
/*  *	@(#) dbm.h 1.1 86/03/28 
 *
 *	Copyright (C) Microsoft Corporation, 1983
 *
 *	This Module contains Proprietary Information of Microsoft
 *	Corporation and AT&T, and should be treated as Confidential.
 */
/*
 *	dbm.h - declarations for the data base management package.
 *
 *	MODIFICATION HISTORY
 *	M000	22 Jun 83	vwh
 *	- Moved variable declarations from dbm.h to dbm.c (this file)
 *	and made them static!  `pagbuf' and `dirbuf' were declared
 *	in dbm.h and in other modules attempting to use the dbm routines.
 *	Made routines not documented in dbm(3) static.
 */
# ifndef PBLKSIZ
# define PBLKSIZ 1024           /* data file block size */
# endif
# ifndef DBLKSIZ
# define DBLKSIZ 2048           /* directory file block size */
# endif

#define	BYTESIZ	8

# ifndef NULL
# define NULL   0
# endif


typedef	struct {
	char	*dptr;
	int	dsize;
} datum;

int	dbminit(char*);
#ifndef __cplusplus
/* delete is a reserved keyword in C++ so this function can never be called */
int	delete();
#endif
int	store(datum,datum);
datum   fetch (datum);
datum   makdatum ();
datum   firstkey ();
datum   nextkey (datum);
#ifdef __cplusplus
}
#endif
