11
#if defined(HAVE_LIBGDBM)
14
#define DB_FILE GDBM_FILE
15
#define ypdb_fetch(a,b) gdbm_fetch(a,b)
16
#define ypdb_exists(a,b) gdbm_exists(a,b)
17
#define ypdb_free(a) free(a)
18
#define ypdb_firstkey(a) gdbm_firstkey(a)
19
#define ypdb_nextkey(a,b) gdbm_nextkey(a,b)
21
#elif defined(HAVE_NDBM)
26
#define ypdb_fetch(a,b) dbm_fetch(a,b)
29
extern int ypdb_exists (DB_FILE file, datum key);
30
/* extern datum ypdb_firstkey (DB_FILE file); */
31
#define ypdb_firstkey(a) dbm_firstkey(a)
32
extern datum ypdb_nextkey (DB_FILE file, datum key);
33
extern datum ypdb_fetch (DB_FILE file, datum key);
37
#error "No database found or selected !"
41
extern DB_FILE ypdb_open (const char *domain, const char *map);
42
extern int ypdb_close_all (void);
43
extern int ypdb_close (DB_FILE file);