Lines Matching refs:db1
57 ** SMDB_TYPE_TO_DB1_TYPE -- Translates smdb database type to db1 type.
85 ** SMDB_PUT_FLAGS_TO_DB1_FLAGS -- Translates smdb put flags to db1 put flags.
91 ** The db1 flags that are equivalent to the smdb flags.
118 ** The db1 flags that are equivalent to the smdb flags.
155 SMDB_DB1_DATABASE *db1;
157 db1 = (SMDB_DB1_DATABASE *) malloc(sizeof(SMDB_DB1_DATABASE));
159 if (db1 != NULL)
161 db1->smdb1_lock_fd = -1;
162 db1->smdb1_cursor_in_use = false;
165 return db1;
173 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
177 if (db1->smdb1_lock_fd != -1)
178 (void) close(db1->smdb1_lock_fd);
180 free(db1);
219 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
221 return db1->smdb1_lock_fd;
312 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
314 if (!db1->smdb1_cursor_in_use)
317 db1->smdb1_cursor_in_use = false;
329 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
330 DB *db = db1->smdb1_db;
345 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
346 DB *db = db1->smdb1_db;
373 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
374 DB *db = db1->smdb1_db;
393 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
397 if (db1->smdb1_cursor_in_use)
411 db1->smdb1_cursor_in_use = true;
412 db1_cursor->db = db1;
423 ** SMDB_DB_OPEN -- Opens a db1 database.
465 SMDB_DB1_DATABASE *db1;
507 db1 = smdb1_malloc_database();
508 if (smdb_db == NULL || db1 == NULL)
512 free(db1);
515 db1->smdb1_lock_fd = lock_fd;
556 db1->smdb1_db = db;
567 smdb_db->smdb_impl = db1;
577 (void) smdb_unlock_file(db1->smdb1_lock_fd);
578 free(db1);