summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-04-20 11:35:45 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-04-20 11:35:45 +0000
commitf714b2a052fe802d639fab9acd6a68eabb461221 (patch)
treefbf8d7e02033bae15b1338301eef64aae9fa8fa1 /src/include
parent1f63c7863771bd5d1edf6309acc3a151110507c6 (diff)
downloadkrb5-f714b2a052fe802d639fab9acd6a68eabb461221.tar.gz
krb5-f714b2a052fe802d639fab9acd6a68eabb461221.tar.xz
krb5-f714b2a052fe802d639fab9acd6a68eabb461221.zip
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@536 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/dbm.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/krb5/dbm.h b/src/include/krb5/dbm.h
new file mode 100644
index 000000000..4da76aea8
--- /dev/null
+++ b/src/include/krb5/dbm.h
@@ -0,0 +1,38 @@
+/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ * DBM/NDBM include file; deals with converting old-style to new-style.
+ */
+
+#include <krb5/copyright.h>
+
+#ifndef KRB5_DBM_COMPAT__
+#define KRB5_DBM_COMPAT__
+
+#ifndef ODBM
+#include <ndbm.h>
+#else /*ODBM*/
+#include <dbm.h>
+#endif /*ODBM*/
+
+#ifndef ODBM
+#define dbm_next(db,key) dbm_nextkey(db)
+#else /* OLD DBM */
+typedef char DBM;
+
+#define dbm_open(file, flags, mode) ((dbminit(file) == 0)?"":((char *)0))
+#define dbm_fetch(db, key) fetch(key)
+#define dbm_store(db, key, content, flag) store(key, content)
+#define dbm_firstkey(db) firstkey()
+#define dbm_next(db,key) nextkey(key)
+#define dbm_close(db) dbmclose()
+#endif /* OLD DBM */
+
+#endif /* KRB5_DBM_COMPAT__ */