/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dnode.c | 1359 epb = db->db.db_size >> DNODE_SHIFT; in dnode_hold_impl() 1365 dnc = dmu_buf_get_user(&db->db); in dnode_hold_impl() 1762 db = AVL_NEXT(&dn->dn_dbufs, db)) { in dnode_set_blksz() 1935 dmu_buf_will_dirty(&db->db, tx); in dnode_dirty_l1() 1963 if (db == NULL || db->db_level != 1 || in dnode_dirty_l1range() 1997 for (; db != NULL; db = AVL_NEXT(&dn->dn_dbufs, db)) { in dnode_dirty_l1range() 2077 dmu_buf_will_dirty(&db->db, tx); in dnode_free_range() 2078 data = db->db.db_data; in dnode_free_range() 2120 dmu_buf_will_dirty(&db->db, tx); in dnode_free_range() 2121 bzero(db->db.db_data, tail); in dnode_free_range() [all …]
|
H A D | space_map.c | 103 dmu_buf_t *db; in space_map_iterate() local 167 dmu_buf_rele(db, FTAG); in space_map_iterate() 185 dmu_buf_t *db; in space_map_reversed_last_block_entries() local 243 dmu_buf_rele(db, FTAG); in space_map_reversed_last_block_entries() 544 dmu_buf_t *db = *dbp; in space_map_write_seg() local 571 dmu_buf_rele(db, tag); in space_map_write_seg() 580 *dbp = db; in space_map_write_seg() 584 block_base = db->db_data; in space_map_write_seg() 652 dmu_buf_t *db; in space_map_write_impl() local 677 dmu_buf_will_dirty(db, tx); in space_map_write_impl() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | threadtest1.c | 146 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in db_execute() 149 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in db_execute() 202 sqlite *db; in worker_bee() local 210 db = sqlite_open(&zFilename[2], 0, &azErr); in worker_bee() 211 if( db==0 ){ in worker_bee() 215 sqlite_busy_handler(db, db_is_locked, zFilename); in worker_bee() 216 db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t); in worker_bee() 223 az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); in worker_bee() 226 az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); in worker_bee() 235 db_execute(db, zFilename, "DROP TABLE t%d;", t); in worker_bee() [all …]
|
H A D | crashtest1.c | 30 sqlite *db; in do_some_sql() local 42 db = sqlite_open("./test.db", 0, &zErr); in do_some_sql() 43 if( db==0 ){ in do_some_sql() 53 rc = sqlite_exec_printf(db, in do_some_sql() 69 sqlite *db; in main() local 76 db = sqlite_open("test.db", 0, &zErr); in main() 77 if( db==0 ){ in main() 81 sqlite_exec(db, "CREATE TABLE t1(a,b)", 0, 0, 0); in main() 82 sqlite_close(db); in main()
|
H A D | misuse.test | 25 db close 27 set ::DB [sqlite db test2.db] 66 db close 67 set ::DB [sqlite db test2.db] 95 db close 96 set ::DB [sqlite db test2.db] 124 db close 125 set ::DB [sqlite db test2.db] 153 db close 154 set ::DB [sqlite db test2.db] [all …]
|
H A D | version.test | 40 db close 41 set ::bt [btree_open test.db] 56 set rc [catch {sqlite db test.db} msg] 68 sqlite db test.db 82 sqlite db test.db 149 db close 154 sqlite db test.db 173 db close 184 set rc [catch {sqlite db test.db} msg] 189 set fd [open test.db w] [all …]
|
H A D | malloc.test | 34 catch {db close} 35 catch {file delete -force test.db} 38 set v [catch {sqlite db test.db} msg] 78 catch {db close} 82 set v [catch {sqlite db test.db} msg] 123 catch {db close} 127 set v [catch {sqlite db test.db} msg] 158 catch {db close} 162 set v [catch {sqlite db test.db} msg] 194 catch {db close} [all …]
|
H A D | trigger4.test | 39 db close 40 sqlite db test.db 69 db close 70 sqlite db test.db 89 db close 90 sqlite db test.db 118 db close 119 sqlite db test.db
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | shim_hooks.h | 51 extern void shim_dbm_close(DBM *db); 52 extern int shim_dbm_delete(DBM *db, datum key); 53 extern datum shim_dbm_fetch(DBM *db, datum key); 54 extern datum shim_dbm_fetch_noupdate(DBM *db, datum key); 55 extern datum shim_dbm_firstkey(DBM *db); 56 extern datum shim_dbm_nextkey(DBM *db); 57 extern datum shim_dbm_do_nextkey(DBM *db, datum inkey); 60 extern int shim_dbm_store(DBM *db, datum key, datum content,
|
H A D | shim.c | 91 shim_dbm_close(DBM *db) in shim_dbm_close() argument 96 map = get_map_ctrl(db); in shim_dbm_close() 122 map = get_map_ctrl(db); in shim_dbm_delete() 158 map = get_map_ctrl(db); in shim_dbm_fetch() 197 map = get_map_ctrl(db); in shim_dbm_fetch_noupdate() 220 shim_dbm_firstkey(DBM *db) in shim_dbm_firstkey() argument 229 map = get_map_ctrl(db); in shim_dbm_firstkey() 310 shim_dbm_nextkey(DBM *db) in shim_dbm_nextkey() argument 316 map = get_map_ctrl(db); in shim_dbm_nextkey() 357 map = get_map_ctrl(db); in shim_dbm_do_nextkey() [all …]
|
H A D | shim.h | 96 extern void shim_dbm_close(DBM *db); 97 extern int shim_dbm_delete(DBM *db, datum key); 98 extern datum shim_dbm_fetch(DBM *db, datum key); 99 extern datum shim_dbm_fetch_noupdate(DBM *db, datum key); 100 extern datum shim_dbm_firstkey(DBM *db); 101 extern datum shim_dbm_nextkey(DBM *db); 104 extern int shim_dbm_store(DBM *db, datum key, datum content,
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db.cc | 61 db::db(char* dbname) in db() function in db 84 INITRW(db); in db() 85 READLOCKOK(db); in db() 92 db::~db() in ~db() 432 db::reset_log() in reset_log() 619 db::load() in load() 662 db::init(db_scheme * s) in init() 689 db::checkpoint() in checkpoint() 813 db::remove_files() in remove_files() 825 db::sync_log() { in sync_log() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | test1.c | 95 sqlite *db; in sqlite_test_open() local 104 if( db==0 ){ in sqlite_test_open() 145 sqlite *db; in test_exec_printf() local 203 sqlite *db; in test_get_table_printf() local 250 sqlite *db; in test_last_rowid() local 274 sqlite *db; in sqlite_test_close() local 388 sqlite *db; in test_create_function() local 438 sqlite *db; in test_create_aggregate() local 664 sqlite *db; in test_register_func() local 717 sqlite *db; in sqlite_datatypes() local [all …]
|
H A D | trigger.c | 55 sqlite *db = pParse->db; in sqliteBeginTrigger() local 68 if( db->init.busy in sqliteBeginTrigger() 79 if( iDb>=2 && !db->init.busy ){ in sqliteBeginTrigger() 165 sqlite *db = pParse->db; /* The database */ in sqliteFinishTrigger() local 184 if( !db->init.busy ){ in sqliteFinishTrigger() 208 sqliteChangeCookie(db, v); in sqliteFinishTrigger() 394 sqlite *db = pParse->db; in sqliteDropTrigger() local 401 for(i=0; i<db->nDb; i++){ in sqliteDropTrigger() 425 sqlite *db = pParse->db; in sqliteDropTriggerPtr() local 433 pTable = sqliteFindTable(db, pTrigger->table,db->aDb[pTrigger->iTabDb].zName); in sqliteDropTriggerPtr() [all …]
|
H A D | vacuum.c | 96 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg); in execsql() 218 int sqliteRunVacuum(char **pzErrMsg, sqlite *db){ in sqliteRunVacuum() argument 237 if( db->flags & SQLITE_InTrans ){ in sqliteRunVacuum() 242 if( db->flags & SQLITE_Interrupt ){ in sqliteRunVacuum() 250 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt); in sqliteRunVacuum() 283 sVac.dbOld = db; in sqliteRunVacuum() 294 rc = sqlite_exec(db, in sqliteRunVacuum() 304 sqlite_exec(db, "COMMIT", 0, 0, 0); in sqliteRunVacuum() 305 sqliteResetInternalSchema(db, 0); in sqliteRunVacuum() 313 sqlite_exec(db, "ROLLBACK", 0, 0, 0); in sqliteRunVacuum() [all …]
|
H A D | vdbeaux.c | 40 p->db = db; in sqliteVdbeCreate() 41 if( db->pVdbe ){ in sqliteVdbeCreate() 42 db->pVdbe->pPrev = p; in sqliteVdbeCreate() 44 p->pNext = db->pVdbe; in sqliteVdbeCreate() 46 db->pVdbe = p; in sqliteVdbeCreate() 536 sqlite *db = p->db; in sqliteVdbeList() local 835 sqlite *db = p->db; in sqliteVdbeReset() local 884 if( db->aDb[i].pBt && db->aDb[i].inTrans==2 ){ in sqliteVdbeReset() 922 sqlite *db; in sqliteVdbeFinalize() local 928 db = p->db; in sqliteVdbeFinalize() [all …]
|
H A D | delete.c | 69 sqlite *db; /* Main database structure */ in sqliteDeleteFrom() local 83 db = pParse->db; in sqliteDeleteFrom() 102 assert( pTab->iDb<db->nDb ); in sqliteDeleteFrom() 103 zDb = db->aDb[pTab->iDb].zName; in sqliteDeleteFrom() 159 if( db->flags & SQLITE_CountRows ){ in sqliteDeleteFrom() 168 if( db->flags & SQLITE_CountRows ){ in sqliteDeleteFrom() 203 if( db->flags & SQLITE_CountRows ){ in sqliteDeleteFrom() 303 if( db->flags & SQLITE_CountRows ){ in sqliteDeleteFrom() 337 sqlite *db, /* The database containing the index */ in sqliteGenerateRowDelete() argument 345 sqliteGenerateRowIndexDelete(db, v, pTab, iCur, 0); in sqliteGenerateRowDelete() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | kdb_db2.c | 496 (*db->close) (db); in krb5_db2_db_set_name() 499 (*db->close) (db); in krb5_db2_db_set_name() 682 db_ctx->db = db; in krb5_db2_db_lock() 732 db = db_ctx->db; in krb5_db2_db_unlock() 734 (*db->close) (db); in krb5_db2_db_unlock() 787 (*db->close) (db); in krb5_db2_db_create() 1001 db = db_ctx->db; in krb5_db2_db_get_principal() 1106 db = db_ctx->db; in krb5_db2_db_put_principal() 1153 dbret = (*db->sync)(db, 0); in krb5_db2_db_put_principal() 1218 db = db_ctx->db; in krb5_db2_db_delete_principal() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/ |
H A D | fill_db_type_size.pl | 12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0}); 134 $db->do($sql); 138 $db->do("PRAGMA cache_size = 800000"); 139 $db->do("PRAGMA journal_mode = OFF"); 140 $db->do("PRAGMA count_changes = OFF"); 141 $db->do("PRAGMA temp_store = MEMORY"); 142 $db->do("PRAGMA locking = EXCLUSIVE"); 146 $sth = $db->prepare('select * from function_type_size order by type'); 184 $db->commit(); 185 $db->disconnect();
|
H A D | fill_db_type_value.pl | 13 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0}); 138 $db->do($sql); 142 $db->do("PRAGMA cache_size = 800000"); 143 $db->do("PRAGMA journal_mode = OFF"); 144 $db->do("PRAGMA count_changes = OFF"); 145 $db->do("PRAGMA temp_store = MEMORY"); 146 $db->do("PRAGMA locking = EXCLUSIVE"); 150 $sth = $db->prepare('select type, value from function_type_value order by type'); 194 $db->commit(); 195 $db->disconnect();
|
H A D | copy_function_pointers.pl | 12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0}); 16 $select = $db->prepare('SELECT DISTINCT function, ptr FROM function_ptr WHERE function LIKE "% %";'… 36 my $select = $db->prepare('SELECT distinct file, function FROM function_ptr WHERE ptr = ?;'); 37 my $insert = $db->prepare('INSERT OR IGNORE INTO function_ptr VALUES (?, ?, ?, 1);'); 54 $db->commit(); 55 $db->disconnect();
|
/illumos-gate/usr/src/cmd/sendmail/include/libsmdb/ |
H A D | smdb.h | 60 typedef int (*db_close_func) __P((SMDB_DATABASE *db)); 76 typedef int (*db_del_func) __P((SMDB_DATABASE *db, 91 typedef int (*db_fd_func) __P((SMDB_DATABASE *db, int* fd)); 108 typedef int (*db_get_func) __P((SMDB_DATABASE *db, 129 typedef int (*db_put_func) __P((SMDB_DATABASE *db, 145 typedef int (*db_sync_func) __P((SMDB_DATABASE *db, unsigned int flags)); 160 typedef int (*db_set_owner_func) __P((SMDB_DATABASE *db, uid_t uid, gid_t gid)); 175 typedef int (*db_cursor_func) __P((SMDB_DATABASE *db, 178 typedef int (*db_lockfd_func) __P((SMDB_DATABASE *db));
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_db.c | 196 rfs4_database_t *db; in rfs4_database_create() local 200 db->db_tables = NULL; in rfs4_database_create() 204 return (db); in rfs4_database_create() 221 mutex_enter(db->db_lock); in rfs4_database_shutdown() 226 db->db_shutdown_count++; in rfs4_database_shutdown() 230 cv_wait(&db->db_shutdown_wait, db->db_lock); in rfs4_database_shutdown() 232 mutex_exit(db->db_lock); in rfs4_database_shutdown() 313 table->dbt_db = db; in rfs4_table_create() 365 db->db_tables = table; in rfs4_table_create() 366 mutex_exit(db->db_lock); in rfs4_table_create() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | showdb.c | 14 static int db = -1; variable 27 lseek(db, (iPg-1)*pagesize, SEEK_SET); in print_page() 28 read(db, aData, pagesize); in print_page() 49 db = open(argv[1], O_RDONLY); in main() 50 if( db<0 ){ in main() 54 fstat(db, &sbuf); in main() 84 close(db); in main()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sqlite.h | 49 sqlite_close(sqlite *db __unused) in sqlite_close() 65 sqlite_compile(sqlite *db __unused, const char *zSql __unused, in sqlite_compile() 78 sqlite_last_insert_rowid(sqlite *db __unused) in sqlite_last_insert_rowid() 84 sqlite_busy_timeout(sqlite *db __unused, int ms __unused) in sqlite_busy_timeout() 89 sqlite_get_table(sqlite *db __unused, const char *zSql __unused, in sqlite_get_table() 104 sqlite_exec(sqlite *db __unused, const char *zSql __unused, in sqlite_exec()
|