Lines Matching defs:db
79 SMDB_DBM_DATABASE *db;
81 db = (SMDB_DBM_DATABASE *) malloc(sizeof(SMDB_DBM_DATABASE));
82 if (db != NULL)
84 db->smndbm_dbm = NULL;
85 db->smndbm_lock_fd = -1;
86 db->smndbm_cursor_in_use = false;
89 return db;
96 SMDB_DBM_DATABASE *db = (SMDB_DBM_DATABASE *) database->smdb_impl;
100 if (db->smndbm_lock_fd != -1)
101 close(db->smndbm_lock_fd);
103 free(db);
158 SMDB_DBM_DATABASE *db = (SMDB_DBM_DATABASE *) database->smdb_impl;
160 return db->smndbm_lock_fd;
285 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
287 if (!db->smndbm_cursor_in_use)
290 db->smndbm_cursor_in_use = false;
304 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
305 DBM *dbm = db->smndbm_dbm;
332 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
333 DBM *dbm = db->smndbm_dbm;
395 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
396 DBM *dbm = db->smndbm_dbm;
434 SMDB_DBM_DATABASE *db = (SMDB_DBM_DATABASE *) database->smdb_impl;
438 if (db->smndbm_cursor_in_use)
441 db->smndbm_cursor_in_use = true;
443 dbm_cursor->smndbmc_db = db;
501 SMDB_DBM_DATABASE *db;
555 db = smdbm_malloc_database();
556 if (db == NULL)
562 db->smndbm_lock_fd = lock_fd;
573 db->smndbm_dbm = dbm;
614 smdb_db->smdb_impl = db;
623 smdb_unlock_file(db->smndbm_lock_fd);
624 free(db);