Lines Matching refs:db1

55 **  SMDB_TYPE_TO_DB1_TYPE -- Translates smdb database type to db1 type.
83 ** SMDB_PUT_FLAGS_TO_DB1_FLAGS -- Translates smdb put flags to db1 put flags.
89 ** The db1 flags that are equivalent to the smdb flags.
116 ** The db1 flags that are equivalent to the smdb flags.
153 SMDB_DB1_DATABASE *db1;
155 db1 = (SMDB_DB1_DATABASE *) malloc(sizeof(SMDB_DB1_DATABASE));
157 if (db1 != NULL)
159 db1->smdb1_lock_fd = -1;
160 db1->smdb1_cursor_in_use = false;
163 return db1;
171 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
175 if (db1->smdb1_lock_fd != -1)
176 (void) close(db1->smdb1_lock_fd);
178 free(db1);
217 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
219 return db1->smdb1_lock_fd;
310 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
312 if (!db1->smdb1_cursor_in_use)
315 db1->smdb1_cursor_in_use = false;
327 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
328 DB *db = db1->smdb1_db;
343 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
344 DB *db = db1->smdb1_db;
371 SMDB_DB1_DATABASE *db1 = db1_cursor->db;
372 DB *db = db1->smdb1_db;
391 SMDB_DB1_DATABASE *db1 = (SMDB_DB1_DATABASE *) database->smdb_impl;
395 if (db1->smdb1_cursor_in_use)
409 db1->smdb1_cursor_in_use = true;
410 db1_cursor->db = db1;
421 ** SMDB_DB_OPEN -- Opens a db1 database.
463 SMDB_DB1_DATABASE *db1;
505 db1 = smdb1_malloc_database();
506 if (smdb_db == NULL || db1 == NULL)
510 free(db1);
513 db1->smdb1_lock_fd = lock_fd;
552 db1->smdb1_db = db;
563 smdb_db->smdb_impl = db1;
573 (void) smdb_unlock_file(db1->smdb1_lock_fd);
574 free(db1);