summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-06 16:57:25 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-06 16:57:25 +0000
commit21cd000fb49c243fdef35c384f76a83022c09779 (patch)
treee0aa5c275f9b68c23ed0493ff8cd59bf681ed8ee /src
parent850b49f073460d88daa1f43be7d9ef8a952574f1 (diff)
downloadkrb5-21cd000fb49c243fdef35c384f76a83022c09779.tar.gz
krb5-21cd000fb49c243fdef35c384f76a83022c09779.tar.xz
krb5-21cd000fb49c243fdef35c384f76a83022c09779.zip
* 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
Diffstat (limited to 'src')
-rw-r--r--src/util/db2/include/ChangeLog7
-rw-r--r--src/util/db2/include/db-dbm.h23
-rw-r--r--src/util/db2/include/db-ndbm.h2
3 files changed, 31 insertions, 1 deletions
diff --git a/src/util/db2/include/ChangeLog b/src/util/db2/include/ChangeLog
index 76b41c2451..295f48fb75 100644
--- a/src/util/db2/include/ChangeLog
+++ b/src/util/db2/include/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-06 Ezra Peisach <epeisach@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* 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 0000000000..28c93786cd
--- /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 620144edf3..e99f46fdc9 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