summaryrefslogtreecommitdiff
path: root/security/nss/lib/softoken/cdbhdl.h
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-04-05 09:17:51 +0000
committerrelyea%netscape.com <devnull@localhost>2002-04-05 09:17:51 +0000
commit8bc70077478cd23ecbc920eee8b891027f19eaf5 (patch)
tree465b0f6928cf4c2fb7c885dbd918c88652d91cda /security/nss/lib/softoken/cdbhdl.h
parentf0e1bb9db3d973eb5906180c71b5d51093c3c53d (diff)
downloadnss-hg-8bc70077478cd23ecbc920eee8b891027f19eaf5.tar.gz
Multi-access database changes.
Diffstat (limited to 'security/nss/lib/softoken/cdbhdl.h')
-rw-r--r--security/nss/lib/softoken/cdbhdl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/cdbhdl.h b/security/nss/lib/softoken/cdbhdl.h
index b606e9876..faa8a21ad 100644
--- a/security/nss/lib/softoken/cdbhdl.h
+++ b/security/nss/lib/softoken/cdbhdl.h
@@ -51,4 +51,19 @@ struct NSSLOWCERTCertDBHandleStr {
PZMonitor *dbMon;
};
+#ifdef DBM_USING_NSPR
+#define NO_RDONLY PR_RDONLY
+#define NO_RDWR PR_RDWR
+#define NO_CREATE (PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE)
+#else
+#define NO_RDONLY O_RDONLY
+#define NO_RDWR O_RDWR
+#define NO_CREATE (O_RDWR | O_CREAT | O_TRUNC)
+#endif
+
+typedef DB * (*rdbfunc)(const char *appName, const char *prefix,
+ const char *type, int flags);
+
+DB * rdbopen(const char *appName, const char *prefix,
+ const char *type, int flags);
#endif