Lines Matching full:db

25 	DB	*smdb2_db;
228 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
230 result = db2_error_to_smdb(db->close(db, 0));
246 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
252 return db2_error_to_smdb(db->del(db, NULL, &dbkey, flags));
260 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
262 return db2_error_to_smdb(db->fd(db, fd));
282 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
290 result = db->get(db, NULL, &dbkey, &dbdata, flags);
303 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
313 return db2_error_to_smdb(db->put(db, NULL, &dbkey, &dbdata,
327 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
329 result = db->fd(db, &fd);
346 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
348 return db2_error_to_smdb(db->sync(db, flags));
426 DB *db = ((SMDB_DB2_DATABASE *) database->smdb_impl)->smdb2_db; local
430 result = db->cursor(db, NULL, &db2_cursor, 0);
432 result = db->cursor(db, NULL, &db2_cursor);
452 smdb_db_open_internal(db_name, db_type, db_flags, db_params, db) in smdb_db_open_internal() argument
457 DB **db;
473 return db_open(db_name, db_type, db_flags, DBMMODE, NULL, params, db);
499 smdb_db_open_internal(db_name, db_type, db_flags, db_params, db) in smdb_db_open_internal() argument
504 DB **db;
508 result = db_create(db, NULL, 0);
509 if (result != 0 || *db == NULL)
512 (*db)->set_errcall(*db, db_err_cb);
515 result = (*db)->set_cachesize(*db, 0,
521 result = (*db)->set_h_nelem(*db, db_params->smdbp_num_elements);
527 result = (*db)->set_flags(*db, DB_DUP);
533 result = (*db)->open(*db,
534 DBTXN /* transaction for DB 4.1 */
539 (void) (*db)->close(*db, 0);
540 *db = NULL;
547 ** SMDB_DB_OPEN -- Opens a db database.
570 ** somehow the DB pointer is NULL.
593 DB *db; local
646 db = NULL;
658 db_flags, db_params, &db);
660 if (result == 0 && db != NULL)
662 result = db->fd(db, &db_fd);
682 db2->smdb2_db = db;
700 if (db != NULL)
701 db->close(db, 0);