* db-dbm.h: New header file which lists the dbm interfaces
authorEzra Peisach <epeisach@mit.edu>
Fri, 6 Jul 2001 16:57:25 +0000 (16:57 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 6 Jul 2001 16:57:25 +0000 (16:57 +0000)
* 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

src/util/db2/include/ChangeLog
src/util/db2/include/db-dbm.h [new file with mode: 0644]
src/util/db2/include/db-ndbm.h

index 76b41c24519fb8ed4d2309d1c8452468380a1dd7..295f48fb7587a9c46df1e33483052188175a3d4e 100644 (file)
@@ -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 (file)
index 0000000..28c9378
--- /dev/null
@@ -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
index 620144edf3bcd186db645c9545c371989a08fea0..e99f46fdc9e52f7d822b116d5a0ff51f8d70ef39 100644 (file)
@@ -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