From: Juan Gomez Date: Tue, 30 Mar 1999 04:39:41 +0000 (+0000) Subject: MDBM support added. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~304 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c23e997e970c66357726b9852a5632a2949f58f;p=openldap MDBM support added. --- diff --git a/include/ldbm.h b/include/ldbm.h index ffe8804d6c..00582873e4 100644 --- a/include/ldbm.h +++ b/include/ldbm.h @@ -161,6 +161,41 @@ LDAP_END_DECL #define LDBM_REPLACE GDBM_REPLACE #define LDBM_SYNC 0x80000000 +#elif defined( HAVE_MDBM ) + +/***************************************************************** + * * + * use mdbm if possible * + * * + *****************************************************************/ + +#include + +LDAP_BEGIN_DECL + +typedef datum Datum; +typedef MDBM *LDBM; + +LDAP_END_DECL + +#include +#include +#include + +/* for ldbm_open */ +#define LDBM_READER O_RDONLY +#define LDBM_WRITER O_RDWR +#define LDBM_WRCREAT (O_RDWR|O_CREAT) +#define LDBM_NEWDB (O_RDWR|O_TRUNC|O_CREAT) +#define LDBM_FAST 0 + +#define LDBM_SUFFIX ".mdbm" + +/* for ldbm_insert */ +#define LDBM_INSERT MDBM_INSERT +#define LDBM_REPLACE MDBM_REPLACE +#define LDBM_SYNC 0x80000000 + #elif defined( HAVE_NDBM )