Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddbuf.c541 db->db.db_size, db); in dbuf_evict_one()
751 ASSERT3U(db->db.db_offset, ==, db->db_blkid * db->db.db_size); in dbuf_verify()
1010 db, DBUF_GET_BUFC_TYPE(db), db->db.db_size); in dbuf_read_done()
1149 bzero(db->db.db_data, db->db.db_size); in dbuf_read_impl()
1179 db->db.db_object, db->db_level, db->db_blkid); in dbuf_read_impl()
1358 db->db.db_object, db->db_level, db->db_blkid); in dbuf_read()
1588 bzero(db->db.db_data, db->db.db_size); in dbuf_free_range()
2193 bzero(db->db.db_data, db->db.db_size); in dbuf_fill_done()
2344 db->db.db_size, db); in dbuf_destroy()
3005 db->db.db_size, db); in dbuf_hold_impl()
[all …]
H A Ddnode_sync.c82 ASSERT(db->db.db_data); in dnode_increase_indirection()
84 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); in dnode_increase_indirection()
85 bcopy(dn->dn_phys->dn_blkptr, db->db.db_data, in dnode_increase_indirection()
112 if (db->db.db_data) in dnode_increase_indirection()
113 child->db_blkptr = (blkptr_t *)db->db.db_data + i; in dnode_increase_indirection()
191 ASSERT3U(db->db.db_size, ==, 1 << dn->dn_phys->dn_indblkshift); in free_verify()
192 ASSERT3U(off+num, <=, db->db.db_size >> SPA_BLKPTRSHIFT); in free_verify()
307 bp = db->db.db_data; in free_children()
350 for (i = 0, bp = db->db.db_data; i < 1 << epbs; i++, bp++) in free_children()
352 bzero(db->db.db_data, db->db.db_size); in free_children()
[all …]
H A Ddmu.c180 if (db == NULL) { in dmu_buf_hold_noread_by_dnode()
185 *dbp = &db->db; in dmu_buf_hold_noread_by_dnode()
211 *dbp = &db->db; in dmu_buf_hold_noread()
394 *dbp = &db->db; in dmu_bonus_hold_by_dnode()
451 *dbp = &db->db; in dmu_bonus_hold_impl()
487 *dbp = &db->db; in dmu_spill_hold_by_dnode()
602 dbp[i] = &db->db; in dmu_buf_hold_array_by_dnode()
626 cv_wait(&db->db_changed, &db->db_mtx); in dmu_buf_hold_array_by_dnode()
1276 dmu_buf_t *db; in dmu_write_embedded() local
1782 if (offset == db->db.db_offset && blksz == db->db.db_size) { in dmu_assign_arcbuf_by_dnode()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dndbm.c242 for (db->dbm_hmask = 0; ; db->dbm_hmask = (db->dbm_hmask<<1)+1) { in dbm_forder()
244 db->dbm_bitno = db->dbm_blkno + db->dbm_hmask; in dbm_forder()
288 db->dbm_pagbno = db->dbm_blkno; in dbm_delete()
331 db->dbm_pagbno = db->dbm_blkno; in dbm_store()
377 db->dbm_pagbno = db->dbm_blkno; in dbm_store()
444 db->dbm_blkptr = db->dbm_blkno; in dbm_firsthash()
509 db->dbm_pagbno = db->dbm_blkptr; in dbm_slow_nextkey()
567 db->dbm_blkptr = db->dbm_blkno; in dbm_do_nextkey()
582 db->dbm_pagbno = db->dbm_blkptr; in dbm_do_nextkey()
698 db->dbm_blkptr = db->dbm_blkno; in dbm_do_nextkey()
[all …]
H A Dgtxt.c143 db->flag = 0; in load_db()
153 db->saved_locale, db->db_name) >= sizeof (pathname)) { in load_db()
171 return (db); in load_db()
182 (void) munmap((caddr_t)db->addr, db->length); in unload_db()
184 db->flag = 0; in unload_db()
207 db++; in lookup_cache()
209 for (; db < &db_info[db_count]; db++) { in lookup_cache()
226 if (db == NULL || (db->flag & DB_EXIST) == 0) in valid_msg()
240 return ((char *)(db->addr + *(int *)(db->addr + in msg()
322 db = NULL; in __gtxt()
[all …]
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dmain.c73 sqlite *db = pData->db; in sqliteInitCallback() local
87 assert( db->init.iDb>=0 && db->init.iDb<db->nDb ); in sqliteInitCallback()
249 initData.db = db; in sqliteInitOne()
425 initData.db = db; in sqliteInit()
490 db->aDb = db->aDbStatic; in sqlite_open()
589 assert( db->aDb==db->aDbStatic ); in sqlite_close()
728 if( db->pVdbe==0 ){ db->nChange = 0; } in sqlite_compile()
730 sParse.db = db; in sqlite_compile()
732 if( db->xTrace && !db->init.busy ){ in sqlite_compile()
749 db->xTrace(db->pTraceArg, zSql); in sqlite_compile()
[all …]
H A Dattach.c33 sqlite *db; in sqliteAttach() local
39 db = pParse->db; in sqliteAttach()
77 if( db->aDb==db->aDbStatic ){ in sqliteAttach()
80 memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2); in sqliteAttach()
82 aNew = sqliteRealloc(db->aDb, sizeof(db->aDb[0])*(db->nDb+1) ); in sqliteAttach()
86 aNew = &db->aDb[db->nDb++]; in sqliteAttach()
110 sqliteCodecAttach(db, db->nDb-1, zKey, nKey); in sqliteAttach()
148 db = pParse->db; in sqliteDetach()
175 db->aDb[i] = db->aDb[db->nDb]; in sqliteDetach()
176 memset(&db->aDb[db->nDb], 0, sizeof(db->aDb[0])); in sqliteDetach()
[all …]
H A Dbuild.c41 sqlite *db = pParse->db; in sqliteBeginParse() local
71 sqlite *db = pParse->db; in sqliteExec() local
274 db->aDb[j] = db->aDb[i]; in sqliteResetInternalSchema()
278 memset(&db->aDb[j], 0, (db->nDb-j)*sizeof(db->aDb[j])); in sqliteResetInternalSchema()
280 if( db->nDb<=2 && db->aDb!=db->aDbStatic ){ in sqliteResetInternalSchema()
281 memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0])); in sqliteResetInternalSchema()
283 db->aDb = db->aDbStatic; in sqliteResetInternalSchema()
436 sqlite *db = pParse->db; in sqliteStartTable() local
888 sqlite *db = pParse->db; in sqliteEndTable() local
1182 sqlite *db = pParse->db; in sqliteDropTable() local
[all …]
H A Dpragma.c96 sqlite *db = pParse->db; in changeTempStorage() local
108 db->temp_store = ts; in changeTempStorage()
132 sqlite *db = pParse->db; in flagPragma() local
165 sqlite *db = pParse->db; in sqlitePragma() local
226 db->cache_size = db->cache_size<0 ? -size : size; in sqlitePragma()
227 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
260 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
322 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
323 sqliteBtreeSetSafetyLevel(db->aDb[0].pBt, db->safety_level); in sqlitePragma()
350 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c210 if (db->in_count >= db->checkpoint) {
214 db->in_count -= db->in_count/4;
215 db->bytes_out -= db->bytes_out/4;
218 db->checkpoint = db->in_count + CHECK_GAP;
220 if (db->max_ent >= db->maxmaxcode) {
333 memset(db, 0, sizeof(*db) - sizeof(db->dict));
510 db->lens[max_ent] = db->lens[ent]+1;
581 db->unit, seq, db->seqno - 1);
653 dictp = &db->dict[db->dict[finchar].cptr];
724 db->lens[max_ent] = db->lens[oldcode]+1;
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c47 DB *db; in osa_adb_create_db() local
61 if (db->close(db) < 0) in osa_adb_create_db()
146 memset(db, 0, sizeof(*db)); in osa_adb_init_db()
226 free(db); in osa_adb_init_db()
273 free(db); in osa_adb_fini_db()
397 db->db = dbopen(db->filename, O_RDWR, 0600, DB_BTREE, &db->btinfo); in osa_adb_open_and_lock()
398 if (db->db != NULL) in osa_adb_open_and_lock()
405 db->db = dbopen(db->filename, O_RDWR, 0600, DB_HASH, &db->info); in osa_adb_open_and_lock()
406 if (db->db != NULL) in osa_adb_open_and_lock()
424 if(db->db != NULL && db->db->close(db->db) == -1) { in osa_adb_close_and_unlock()
[all …]
H A Dadb_policy.c95 switch(db->db->get(db->db, &dbkey, &dbdata, 0)) { in osa_adb_create_policy()
113 switch(db->db->put(db->db, &dbkey, &dbdata, R_NOOVERWRITE)) { in osa_adb_create_policy()
115 if((db->db->sync(db->db, 0)) == -1) in osa_adb_create_policy()
168 status = db->db->del(db->db, &dbkey, 0); in osa_adb_destroy_policy()
174 if ((db->db->sync(db->db, 0)) == -1) { in osa_adb_destroy_policy()
228 switch((db->db->get(db->db, &dbkey, &dbdata, 0))) { in osa_adb_get_policy()
298 switch(db->db->get(db->db, &dbkey, &tmpdb, 0)) { in osa_adb_put_policy()
316 switch(db->db->put(db->db, &dbkey, &dbdata, 0)) { in osa_adb_put_policy()
318 if((db->db->sync(db->db, 0)) == -1) in osa_adb_put_policy()
361 if((ret = db->db->seq(db->db, &dbkey, &dbdata, R_FIRST)) == -1) { in osa_adb_iter_policy()
[all …]
/illumos-gate/usr/src/lib/libdemangle/common/
H A Dcxx.c54 #define NAMT(db, n) (nlen(db) - n) argument
406 njoin(db, NAMT(db, n), ", "); in parse_encoding()
1319 njoin(db, NAMT(db, n), " "); in parse_new_expr()
1793 save_top(db, NAMT(db, n)); in parse_type()
2038 njoin(db, NAMT(db, n), ", "); in parse_sizeof_param_pack_expr()
2469 njoin(db, NAMT(db, n), ", "); in parse_unnamed_type_name()
3523 njoin(db, NAMT(db, n), "::"); in parse_unresolved_name()
3568 njoin(db, NAMT(db, n), "::"); in parse_unresolved_name()
3721 njoin(db, NAMT(db, n), ", "); in parse_function_type()
3825 tsave(db, NAMT(db, n1)); in parse_template_args()
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c249 if (db->in_count >= db->checkpoint) { in bsd_check()
255 db->in_count -= db->in_count/4; in bsd_check()
256 db->bytes_out -= db->bytes_out/4; in bsd_check()
259 db->checkpoint = db->in_count + CHECK_GAP; in bsd_check()
261 if (db->max_ent >= db->maxmaxcode) { in bsd_check()
420 bzero(db, sizeof (*db) - sizeof (db->dict)); in bsd_alloc()
425 db->lens = (ushort_t *)((caddr_t)db + ilen); in bsd_alloc()
449 kmem_free(db, db->totlen); in bsd_free()
1044 db->lens[max_ent] = db->lens[ent]+1; in bsd_incomp()
1183 if (db->hsize == 0 || seq != db->seqno++) { in bsd_decompress()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Ddbm.c194 DBM *db; in kdb2_dbm_close()
196 (void)(db->close)(db);
206 DBM *db; in kdb2_dbm_fetch()
217 status = (db->get)(db, &k, &r, 0);
237 DBM *db; in kdb2_dbm_firstkey()
245 status = (db->seq)(db, &k, &r, R_FIRST);
265 DBM *db; in kdb2_dbm_nextkey()
273 status = (db->seq)(db, &k, &r, R_NEXT);
303 status = (db->del)(db, &k, 0);
305 status = (db->del)(db, (DBT *)&key, 0);
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb2.c264 return db2_error_to_smdb(db->fd(db, fd));
331 result = db->fd(db, &fd);
496 result = (*db)->set_cachesize(*db, 0,
500 (void) (*db)->close((*db), 0);
509 (void) (*db)->close(*db, 0);
516 result = (*db)->set_flags(*db, DB_DUP);
519 (void) (*db)->close(*db, 0);
526 result = (*db)->open(*db,
531 (void) (*db)->close(*db, 0);
651 result = db->fd(db, &db_fd);
[all …]
H A Dsmdb1.c176 result = db->close(db);
198 return db->del(db, &dbkey, flags);
208 *fd = db->fd(db);
241 result = db->get(db, &dbkey, &dbdata, flags);
270 return db->put(db, &dbkey, &dbdata,
285 fd = db->fd(db);
304 return db->sync(db, flags);
332 return db->del(db, NULL, R_CURSOR);
466 DB *db; local
541 db_fd = db->fd(db);
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_validate.c77 static int g_save(db, type, ptr) in g_save() argument
78 g_set *db; in g_save()
93 ret = k5_mutex_lock(&db->mutex);
97 vdb = (DB **) &db->data;
123 gs = (g_set_elt *) &db->data;
139 g_set *db; in g_validate()
153 vdb = (DB **) &db->data;
181 gs = (g_set_elt *) &db->data;
198 g_set *db; in g_delete()
212 vdb = (DB **) &db->data;
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/
H A Dinit_constraints.pl23 $db->do('attach "smatch_db.sqlite" as old_db');
25 $db->disconnect();
28 my $db;
36 $db->do("PRAGMA cache_size = 800000");
37 $db->do("PRAGMA journal_mode = OFF");
38 $db->do("PRAGMA count_changes = OFF");
39 $db->do("PRAGMA temp_store = MEMORY");
40 $db->do("PRAGMA locking = EXCLUSIVE");
74 $db->commit();
82 $db->commit();
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dmain.test28 db complete {
32 db complete {
37 db complete {
77 db complete {
82 db complete {
87 db complete {
92 db complete {
99 db complete {
105 db complete {
111 db complete {
[all …]
H A Dthreadtest2.c59 int integrity_check(sqlite *db){ in integrity_check() argument
77 sqlite *db; in worker() local
83 sqlite_exec(db, "PRAGMA synchronous=OFF", 0, 0, 0); in worker()
84 integrity_check(db); in worker()
85 if( all_stop ){ sqlite_close(db); break; } in worker()
89 sqlite_close(db); in worker()
98 sqlite *db; in main() local
103 db = sqlite_open(DB_FILE, 0, 0); in main()
104 if( db==0 ){ in main()
108 rc = sqlite_exec(db, "CREATE TABLE t1(x);", 0,0,0); in main()
[all …]
H A Dattach2.test28 db eval {
34 sqlite db2 test2.db
46 proc db_list {db} {
53 db eval {DETACH t2}
63 db_list db
73 db_list db
88 # but we can still read from test1.db even though test2.db is locked.
94 # start a transaction on test.db even though test2.db is locked.
128 db close
129 set DB [sqlite db test.db]
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_dbimpl.c173 idx_p = db->hash_tbl_p[hash % db->array_size]; in _nscd_get_db_entry()
189 nscd_db_t *db, in _nscd_add_db_entry() argument
423 nscd_db_t *db, in _nscd_delete_db_entry_cookie() argument
435 if (db != c->db || c->hash == NULL || in _nscd_delete_db_entry_cookie()
487 nscd_db_t *db; in _nscd_alloc_db() local
506 free(db); in _nscd_alloc_db()
512 return (db); in _nscd_alloc_db()
522 nscd_db_t *db) in _nscd_free_db() argument
545 free(db); in _nscd_free_db()
578 if (db != c->db || in _nscd_walk_db()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dadb.h51 DB *db; member
118 osa_adb_ret_t osa_adb_release_lock(osa_adb_db_t db);
125 osa_adb_ret_t osa_adb_open_policy(osa_adb_policy_t *db,
127 osa_adb_ret_t osa_adb_close_princ(osa_adb_princ_t db);
129 osa_adb_ret_t osa_adb_create_princ(osa_adb_princ_t db,
137 osa_adb_ret_t osa_adb_get_princ(osa_adb_princ_t db,
140 osa_adb_ret_t osa_adb_get_policy(osa_adb_policy_t db,
143 osa_adb_ret_t osa_adb_put_princ(osa_adb_princ_t db,
145 osa_adb_ret_t osa_adb_put_policy(osa_adb_policy_t db,
147 osa_adb_ret_t osa_adb_iter_policy(osa_adb_policy_t db,
[all …]
/illumos-gate/usr/src/cmd/svc/seed/
H A DMakefile142 all: global.db nonglobal.db miniroot.db
165 global.db: common.db $(GLOBAL_ZONE_DESCRIPTIONS)
167 $(CP) common.db $@
170 nonglobal.db: common.db $(NONGLOBAL_ZONE_DESCRIPTIONS)
172 $(CP) common.db $@
175 miniroot.db: common.db $(MINIROOT_DESCRIPTIONS)
177 $(CP) common.db $@
190 .PARALLEL: global.db nonglobal.db miniroot.db
194 install_global: global.db
210 $(RM) common.db
[all …]

12345678910>>...14