7 /* create or open database, CDB style
11 /* MKMAP *mkmap_cdb_open(path)
15 /* This module implements support for creating DJB's CDB "constant
18 /* mkmap_cdb_open() take a file name, append the ".cdb.tmp" suffix,
19 /* create the named DB database. On close, this file renamed to
20 /* file name with ".cdb" suffix appended (without ".tmp" part).
21 /* This routine is a CDB-specific helper for the more
22 /* general mkmap_open() interface.
24 /* All errors are fatal.
26 /* dict_cdb(3), CDB dictionary interface.
30 /* The Secure Mailer license must be distributed with this software.
32 /* Written by Michael Tokarev <mjt@tls.msk.ru> based on mkmap_db by
34 /* IBM T.J. Watson Research
36 /* Yorktown Heights, NY 10598, USA
45 /* Utility library. */
50 /* Application-specific. */
55 /* This is a dummy module, since CDB has all the functionality
56 * built-in, as cdb creation requires one global lock anyway. */
58 MKMAP
*mkmap_cdb_open(const char *unused_path
)
60 MKMAP
*mkmap
= (MKMAP
*) mymalloc(sizeof(*mkmap
));
61 mkmap
->open
= dict_cdb_open
;
62 mkmap
->after_open
= 0;
63 mkmap
->after_close
= 0;