Lines Matching refs:di_dbm
40 GDBM_FILE di_dbm; member
48 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
76 if ((dp->di_dbm = gdbm_open((char *)file, 0, flags, mode, NULL)) == 0) { in newdbmobject()
92 if (dp->di_dbm) in dbm_dealloc()
93 gdbm_close(dp->di_dbm); in dbm_dealloc()
100 if (dp->di_dbm == NULL) { in dbm_length()
111 for (key=gdbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
112 key = gdbm_nextkey(dp->di_dbm,okey)) { in dbm_length()
152 if (dp->di_dbm == NULL) { in dbm_subscript()
157 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
201 if (dp->di_dbm == NULL) { in dbm_ass_sub()
208 if (gdbm_delete(dp->di_dbm, krec) < 0) { in dbm_ass_sub()
223 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()
278 if (self->di_dbm) in _gdbm_gdbm_close_impl()
279 gdbm_close(self->di_dbm); in _gdbm_gdbm_close_impl()
280 self->di_dbm = NULL; in _gdbm_gdbm_close_impl()
309 key = gdbm_firstkey(self->di_dbm); in _gdbm_gdbm_keys_impl()
324 nextkey = gdbm_nextkey(self->di_dbm, key); in _gdbm_gdbm_keys_impl()
338 if ((dp)->di_dbm == NULL) { in dbm_contains()
359 return gdbm_exists(dp->di_dbm, key); in dbm_contains()
393 key = gdbm_firstkey(self->di_dbm); in _gdbm_gdbm_firstkey_impl()
432 nextkey = gdbm_nextkey(self->di_dbm, dbm_key); in _gdbm_gdbm_nextkey_impl()
461 if (gdbm_reorganize(self->di_dbm) < 0) { in _gdbm_gdbm_reorganize_impl()
485 gdbm_sync(self->di_dbm); in _gdbm_gdbm_sync_impl()