From: Ezra Peisach Date: Fri, 6 Jul 2001 16:57:25 +0000 (+0000) Subject: * db-dbm.h: New header file which lists the dbm interfaces X-Git-Tag: krb5-1.3-alpha1~1232 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21cd000fb49c243fdef35c384f76a83022c09779;p=krb5.git * db-dbm.h: New header file which lists the dbm interfaces * db-ndbm.h: Change prototype from dirinfo to dirfno which matches code and ndbm API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13572 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/db2/include/ChangeLog b/src/util/db2/include/ChangeLog index 76b41c245..295f48fb7 100644 --- a/src/util/db2/include/ChangeLog +++ b/src/util/db2/include/ChangeLog @@ -1,3 +1,10 @@ +2001-07-06 Ezra Peisach + + * db-dbm.h: New header file which lists the dbm interfaces. + + * db-ndbm.h: Change prototype from dirinfo to dirfno which matches + code and ndbm API. + 2000-07-01 Tom Yu * db-config.h.in: New file; contains useful tidbits from diff --git a/src/util/db2/include/db-dbm.h b/src/util/db2/include/db-dbm.h new file mode 100644 index 000000000..28c93786c --- /dev/null +++ b/src/util/db2/include/db-dbm.h @@ -0,0 +1,23 @@ +#ifndef _DBM_H_ +#define _DBM_H_ + +#include "db.h" + +#define dbminit kdb2_dbminit +#define fetch kdb2_fetch +#define firstkey kdb2_firstkey +#define nextkey kdb2_nextkey +#define delete kdb2_delete +#define store kdb2_store + +__BEGIN_DECLS +int dbminit __P((char *)); +datum fetch __P((datum)); +datum firstkey __P((void)); +datum nextkey __P((datum)); +int delete __P((datum)); +int store __P((datum, datum)); +__END_DECLS + + +#endif diff --git a/src/util/db2/include/db-ndbm.h b/src/util/db2/include/db-ndbm.h index 620144edf..e99f46fdc 100644 --- a/src/util/db2/include/db-ndbm.h +++ b/src/util/db2/include/db-ndbm.h @@ -70,7 +70,7 @@ typedef DB DBM; #define dbm_nextkey kdb2_dbm_nextkey #define dbm_open kdb2_dbm_open #define dbm_store kdb2_dbm_store -#define dbm_dirinfo kdb2_dbm_dirinfo +#define dbm_dirfno kdb2_dbm_dirfno #define dbm_error kdb2_dbm_error #define dbm_clearerr kdb2_dbm_clearerr