/dragonfly/lib/libc/db/hash/ |
H A D | ndbm.c | 62 DBM *db; in dbm_open() local 78 if (db) in dbm_open() 81 return db; in dbm_open() 85 dbm_close(DBM *db) in dbm_close() argument 87 if (db) in dbm_close() 89 (db->close)(db); in dbm_close() 107 status = (db->get)(db, &dbtkey, &dbtretdata, 0); in dbm_fetch() 132 status = (db->seq)(db, &dbtretkey, &dbtretdata, R_FIRST); in dbm_firstkey() 155 status = (db->seq)(db, &dbtretkey, &dbtretdata, R_NEXT); in dbm_nextkey() 180 status = (db->del)(db, &dbtkey, 0); in dbm_delete() [all …]
|
/dragonfly/crypto/libressl/crypto/txt_db/ |
H A D | txt_db.c | 198 lh = db->index[idx]; in TXT_DB_get_by_index() 232 db->arg1 = sk_OPENSSL_PSTRING_find(db->data, r); in TXT_DB_create_index() 233 db->arg2 = i; in TXT_DB_create_index() 303 if ((db->qual[i] != NULL) && (db->qual[i](row) == 0)) in TXT_DB_insert() 308 db->arg1 = i; in TXT_DB_insert() 309 db->arg_row = r; in TXT_DB_insert() 322 if ((db->qual[i] != NULL) && (db->qual[i](row) == 0)) in TXT_DB_insert() 339 if (db == NULL) in TXT_DB_free() 346 free(db->index); in TXT_DB_free() 348 free(db->qual); in TXT_DB_free() [all …]
|
/dragonfly/lib/libc/db/test/btree.tests/ |
H A D | main.c | 117 DB *db; in main() local 235 if ((db->sync)(db) == RET_ERROR) in user() 237 else if ((db->close)(db) == RET_ERROR) in user() 277 status = (db->put)(db, &key, &data, R_APPEND); in append() 320 status = (*db->del)(db, NULL, R_CURSOR); in delcur() 338 status = (*db->del)(db, &key, 0); in delete() 363 status = (*db->seq)(db, &key, &data, R_FIRST); in first() 390 status = (*db->get)(db, &key, &data, 0); in get() 532 status = (*db->seq)(db, &key, &data, R_LAST); in last() 629 status = (*db->seq)(db, &key, &data, R_NEXT); in next() [all …]
|
/dragonfly/contrib/ncurses/ncurses/tinfo/ |
H A D | hashed_db.c | 48 DB *db; member 85 if (p->db == db) { in drop_connection() 103 p->db = db; in make_connection() 189 result = db->close(db, 0); in _nc_db_close() 191 result = db->close(db); in _nc_db_close() 210 (void) db->del(db, NULL, key, 0); in _nc_db_put() 213 result = db->put(db, key, data, R_NOOVERWRITE); in _nc_db_put() 230 result = db->get(db, NULL, key, data, 0); in _nc_db_get() 232 result = db->get(db, key, data, 0); in _nc_db_get() 254 result = db->seq(db, key, data, 0); in _nc_db_first() [all …]
|
/dragonfly/games/quiz/datfiles/ |
H A D | index | 1 /usr/share/games/quiz.db/africa:Africa{n}:cap{ital} 2 /usr/share/games/quiz.db/america:America{n}:cap{ital} 5 /usr/share/games/quiz.db/asia:Asia{n}:cap{ital} 6 /usr/share/games/quiz.db/babies:baby:adult 10 /usr/share/games/quiz.db/ed:function:ed-command 14 /usr/share/games/quiz.db/greek:greek:english 15 /usr/share/games/quiz.db/inca:inca:succ{essor} 16 /usr/share/games/quiz.db/latin:latin:english 21 /usr/share/games/quiz.db/murders:victim:killer 28 /usr/share/games/quiz.db/sexes:male:female [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | dcache.c | 204 db = *blist; in for_each_block() 210 db = next; in for_each_block() 280 if (db) in dcache_invalidate_line() 304 db->refs++; in dcache_hit() 305 return db; in dcache_hit() 377 if (db) in dcache_alloc() 387 db->refs = 0; in dcache_alloc() 395 return db; in dcache_alloc() 408 if (!db) in dcache_peek_byte() 436 if (db) in dcache_poke_byte() [all …]
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | myndbm.c | 41 DBM *db; in mydbm_open() local 48 db = xmalloc (sizeof (*db)); in mydbm_open() 50 db->modified = 0; in mydbm_open() 60 return db; in mydbm_open() 79 mydbm_close (DBM *db) in mydbm_close() argument 81 if (db->modified) in mydbm_close() 91 free (db->name); in mydbm_close() 93 free (db); in mydbm_close() 152 mydbm_nextkey (DBM *db) in mydbm_nextkey() argument 158 p = db->dbm_next; in mydbm_nextkey() [all …]
|
H A D | modules.c | 89 close_module (DBM *db) in close_module() argument 91 if (db != NULL) in close_module() 92 dbm_close (db); in close_module() 179 if (db != NULL) in my_module() 180 val = dbm_fetch (db, key); in my_module() 321 if (db != NULL) in my_module() 322 val = dbm_fetch (db, key); in my_module() 896 DBM *db; in cat_module() local 910 for (key = dbm_firstkey (db); key.dptr != NULL; key = dbm_nextkey (db)) in cat_module() 912 val = dbm_fetch (db, key); in cat_module() [all …]
|
/dragonfly/lib/libc/citrus/ |
H A D | citrus_db.c | 60 struct _citrus_db *db; in _citrus_db_open() local 79 db = malloc(sizeof(*db)); in _citrus_db_open() 80 if (db == NULL) in _citrus_db_open() 82 db->db_region = *r; in _citrus_db_open() 83 db->db_hashfunc = hashfunc; in _citrus_db_open() 85 *rdb = db; in _citrus_db_open() 91 _citrus_db_close(struct _citrus_db *db) in _citrus_db_close() argument 94 free(db); in _citrus_db_close() 108 _memstream_bind(&ms, &db->db_region); in _citrus_db_lookup() 286 _memstream_bind(&ms, &db->db_region); in _citrus_db_get_number_of_entries() [all …]
|
H A D | citrus_esdb.c | 77 struct _citrus_db *db; in conv_esdb() local 168 _db_close(db); in conv_esdb() 180 _db_close(db); in conv_esdb() 215 ret = conv_esdb(db, &fr); in _citrus_esdb_open() 227 _citrus_esdb_close(struct _citrus_esdb *db) in _citrus_esdb_close() argument 231 free(db->db_charsets[i].ec_csname); in _citrus_esdb_close() 232 db->db_num_charsets = 0; in _citrus_esdb_close() 233 free(db->db_charsets); db->db_charsets = NULL; in _citrus_esdb_close() 234 free(db->db_encname); db->db_encname = NULL; in _citrus_esdb_close() 235 db->db_len_variable = 0; in _citrus_esdb_close() [all …]
|
/dragonfly/usr.sbin/sa/ |
H A D | extern.h | 91 #define DB_CLOSE(db) \ argument 92 ((*(db)->close)(db)) 93 #define DB_GET(db, key, data, flags) \ argument 94 ((*(db)->get)((db), (key), (data), (flags))) 95 #define DB_PUT(db, key, data, flags) \ argument 96 ((*(db)->put)((db), (key), (data), (flags))) 97 #define DB_SYNC(db, flags) \ argument 98 ((*(db)->sync)((db), (flags))) 99 #define DB_SEQ(db, key, data, flags) \ argument 100 ((*(db)->seq)((db), (key), (data), (flags)))
|
/dragonfly/sys/bus/firewire/ |
H A D | fwohci.c | 893 db = &db_tr->db[0]; 1341 db = db_tr->db; 1345 db[ldesc].db.desc.depend = db[0].db.desc.depend; 1353 db[0].db.desc.cmd, 1409 db = db_tr->db; 1511 db[ldesc].db.desc.depend = db[0].db.desc.depend = 2454 db = db_tr->db; 2463 FWOHCI_DMA_WRITE(db[1].db.immed[0], db[1].db.immed[0]); 2464 FWOHCI_DMA_WRITE(db[1].db.immed[1], db[1].db.immed[1]); 2474 db[0].db.desc.depend = [all …]
|
/dragonfly/crypto/libressl/crypto/rsa/ |
H A D | rsa_oaep.c | 100 unsigned char *db, *seed; in RSA_padding_add_PKCS1_OAEP_mgf1() local 126 db = to + mdlen + 1; in RSA_padding_add_PKCS1_OAEP_mgf1() 131 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1() 132 db[emlen - flen - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1() 133 memcpy(db + emlen - flen - mdlen, from, flen); in RSA_padding_add_PKCS1_OAEP_mgf1() 145 db[i] ^= dbmask[i]; in RSA_padding_add_PKCS1_OAEP_mgf1() 178 unsigned char *db = NULL, *em = NULL; in RSA_padding_check_PKCS1_OAEP_mgf1() local 206 if ((db = malloc(dblen)) == NULL) { in RSA_padding_check_PKCS1_OAEP_mgf1() 243 if (PKCS1_MGF1(db, dblen, seed, mdlen, mgf1md)) in RSA_padding_check_PKCS1_OAEP_mgf1() 246 db[i] ^= maskeddb[i]; in RSA_padding_check_PKCS1_OAEP_mgf1() [all …]
|
/dragonfly/usr.sbin/cron/cron/ |
H A D | database.c | 143 link_user(cron_db *db, user *u) in link_user() argument 145 if (db->head == NULL) in link_user() 146 db->head = u; in link_user() 147 if (db->tail) in link_user() 148 db->tail->next = u; in link_user() 149 u->prev = db->tail; in link_user() 151 db->tail = u; in link_user() 156 unlink_user(cron_db *db, user *u) in unlink_user() argument 159 db->head = u->next; in unlink_user() 164 db->tail = u->prev; in unlink_user() [all …]
|
/dragonfly/bin/dd/ |
H A D | conv.c | 113 for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt) in block() 117 in.dbp = in.db; in block() 147 memmove(in.db, in.dbp - in.dbcnt, in.dbcnt); in block() 182 in.dbp = in.db + in.dbcnt; in block() 228 for (inp = in.db; (size_t)in.dbcnt >= cbsz; inp += cbsz, in.dbcnt -= cbsz) { in unblock() 242 memmove(in.db, in.dbp - in.dbcnt, in.dbcnt); in unblock() 243 in.dbp = in.db + in.dbcnt; in unblock() 254 for (t = in.db + in.dbcnt - 1; t >= in.db && *t == ' '; --t) in unblock_close() 256 if (t >= in.db) { in unblock_close() 257 cnt = t - in.db + 1; in unblock_close() [all …]
|
/dragonfly/usr.bin/kcollect/ |
H A D | kcollect.c | 613 DBM *db; in restore_headers() local 621 if (db == NULL) { in restore_headers() 648 dbm_close(db); in restore_headers() 653 dbm_close(db); in restore_headers() 665 DBM * db; in dump_dbm() local 669 if (db == NULL) { in dump_dbm() 735 dbm_close(db); in dump_dbm() 740 dbm_close(db); in dump_dbm() 834 for (key = dbm_firstkey(db); key.dptr; key = dbm_nextkey(db)) { in load_dbm() 853 dbm_close(db); in load_dbm() [all …]
|
/dragonfly/crypto/libressl/crypto/x509/ |
H A D | x509_conf.c | 164 if (!ctx->db || !ctx->db_meth) { in do_ext_nconf() 432 return ctx->db_meth->get_section(ctx->db, section); in STACK_OF() 441 ctx->db_meth->free_string(ctx->db, str); in X509V3_string_free() 450 ctx->db_meth->free_section(ctx->db, section); in X509V3_section_free() 456 return NCONF_get_string(db, section, value); in nconf_get_string() 460 nconf_get_section(void *db, const char *section) in STACK_OF() 462 return NCONF_get_section(db, section); in STACK_OF() 476 ctx->db = conf; in X509V3_set_nconf() 517 return CONF_get_string(db, section, value); in conf_lhash_get_string() 523 return CONF_get_section(db, section); in STACK_OF() [all …]
|
/dragonfly/crypto/libressl/include/openssl/ |
H A D | txt_db.h | 97 long TXT_DB_write(BIO *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db); 102 int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(OPENSSL_STRING *), 104 void TXT_DB_free(TXT_DB *db); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
|
/dragonfly/share/i18n/esdb/ |
H A D | Makefile | 27 esdb.dir.db: esdb.dir 32 esdb.alias.db: esdb.alias 35 FILES+= esdb.dir esdb.dir.db esdb.alias esdb.alias.db 36 CLEANFILES+= esdb.dir esdb.dir.db esdb.alias esdb.alias.db
|
/dragonfly/lib/libc/gen/ |
H A D | utmpx.c | 450 DB *db; in getlastlogx() local 455 db = dbopen(fname, O_RDONLY|O_SHLOCK|O_CLOEXEC, 0, DB_HASH, NULL); in getlastlogx() 457 if (db == NULL) in getlastlogx() 463 if ((db->get)(db, &key, &data, 0) != 0) in getlastlogx() 480 (db->close)(db); in getlastlogx() 489 DB *db; in updlastlogx() local 494 db = dbopen(fname, O_RDWR|O_CREAT|O_EXLOCK|O_CLOEXEC, 0644, DB_HASH, NULL); in updlastlogx() 496 if (db == NULL) in updlastlogx() 503 if ((db->put)(db, &key, &data, 0) != 0) in updlastlogx() 506 (db->close)(db); in updlastlogx()
|
/dragonfly/lib/libc/db/test/hash.tests/ |
H A D | driver2.c | 53 DB *db; in main() local 72 if (!(db = dbopen("bigtest", O_RDWR | O_CREAT, 0644, DB_HASH, &info))) { in main() 89 if ((db->put)(db, &key, &content, R_NOOVERWRITE)) { in main() 94 if ((db->close)(db)) { in main()
|
/dragonfly/sys/dev/drm/ |
H A D | drm_edid.c | 3471 structure_all = (db[8 + offset] << 8) | db[9 + offset]; in do_hdmi_vsdb_modes() 3475 mask = (db[10 + offset] << 8) | db[11 + offset]; in do_hdmi_vsdb_modes() 3549 return db[1]; in cea_db_extended_tag() 3555 return db[0] >> 5; in cea_db_tag() 3587 hdmi_id = db[1] | (db[2] << 8) | (db[3] << 16); in cea_db_is_hdmi_vsdb() 3602 oui = db[3] << 16 | db[2] << 8 | db[1]; in cea_db_is_hdmi_forum_vsdb() 3693 db = &cea[i]; in add_cea_modes() 3697 video = db + 1; in add_cea_modes() 3701 hdmi = db; in add_cea_modes() 3858 u8 *db; in drm_edid_to_eld() local [all …]
|
/dragonfly/contrib/elftoolchain/libelf/ |
H A D | libelf_xlate.c | 52 uintptr_t sb, se, db, de; in _libelf_xlate() local 114 db = (uintptr_t) dst->d_buf; in _libelf_xlate() 115 de = db + (size_t) dst->d_size; in _libelf_xlate() 121 if (db != sb && de > sb && se > db) { in _libelf_xlate() 126 if ((direction == ELF_TOMEMORY ? db : sb) % in _libelf_xlate() 138 (db == sb && !byteswap && fsz == msz)) in _libelf_xlate()
|
/dragonfly/crypto/libressl/apps/openssl/ |
H A D | ca.c | 939 pp = sk_OPENSSL_PSTRING_value(db->db->data, i); in ca_main() 983 TXT_DB_write(out, db->db); in ca_main() 985 sk_OPENSSL_PSTRING_num(db->db->data)); in ca_main() 1447 pp = sk_OPENSSL_PSTRING_value(db->db->data, i); in ca_main() 2134 rrow = TXT_DB_get_by_index(db->db, DB_name, crow); in do_body() 2273 if (!TXT_DB_insert(db->db, irow)) { in do_body() 2492 rrow = TXT_DB_get_by_index(db->db, DB_serial, row); in do_revoke() 2535 if (!TXT_DB_insert(db->db, irow)) { in do_revoke() 2538 db->db->error); in do_revoke() 2612 rrow = TXT_DB_get_by_index(db->db, DB_serial, row); in get_certificate_status() [all …]
|
/dragonfly/contrib/nvi2/common/ |
H A D | line.c | 151 switch (ep->db->get(ep->db, &key, &data, 0)) { in db_get() 225 if (ep->db->del(ep->db, &key, 0) == 1) { in db_delete() 277 if (ep->db->put(ep->db, &key, &data, R_IAFTER) == -1) { in db_append() 349 if (ep->db->put(ep->db, &key, &data, R_IBEFORE) == -1) { in db_insert() 414 if (ep->db->put(ep->db, &key, &data, 0) == -1) { in db_set() 505 switch (ep->db->seq(ep->db, &key, &data, R_LAST)) { in db_last() 558 if ((rval = ep->db->get(ep->db, &key, &data, 0)) == 0) in db_rget() 584 return ep->db->put(ep->db, &key, &data, 0); in db_rset()
|