/bind-9.11.3/bin/tools/ |
H A D | named-nzd2nzf.c | 30 MDB_dbi dbi; local 61 status = mdb_dbi_open(txn, NULL, 0, &dbi); 68 status = mdb_cursor_open(txn, dbi, &cursor);
|
/bind-9.11.3/contrib/dlz/drivers/ |
H A D | sdlz_helper.c | 328 const char *countzone_str, dbinstance_t **dbi) 334 REQUIRE(dbi != NULL && *dbi == NULL); 446 *dbi = (dbinstance_t *) db; 459 sdlzh_destroy_sqldbinstance(dbinstance_t *dbi) argument 464 mctx = dbi->mctx; 467 destroy_querylist(mctx, &dbi->allnodes_q); 468 destroy_querylist(mctx, &dbi->allowxfr_q); 469 destroy_querylist(mctx, &dbi->authority_q); 470 destroy_querylist(mctx, &dbi 325 sdlzh_build_sqldbinstance(isc_mem_t *mctx, const char *allnodes_str, const char *allowxfr_str, const char *authority_str, const char *findzone_str, const char *lookup_str, const char *countzone_str, dbinstance_t **dbi) argument [all...] |
H A D | dlz_mysql_driver.c | 129 dbinstance_t *dbi = NULL; local 141 dbi = (dbinstance_t *) dbdata; 144 if (dbi == NULL) { 158 if (dbi->allnodes_q == NULL) { 165 if (dbi->allowxfr_q == NULL) { 172 if (dbi->authority_q == NULL) { 179 if (dbi->findzone_q == NULL) { 190 if (dbi->countzone_q == NULL) { 197 if (dbi->lookup_q == NULL) { 224 dbi 780 dbinstance_t *dbi = NULL; local 990 dbinstance_t *dbi; local [all...] |
H A D | dlz_postgres_driver.c | 164 dbinstance_t *dbi = NULL; local 171 dbi = ndbi; 173 ndbi = ISC_LIST_NEXT(dbi, link); 175 if (dbi->dbconn != NULL) 176 PQfinish((PGconn *) dbi->dbconn); 178 destroy_sqldbinstance(dbi); 198 dbinstance_t *dbi = NULL; local 203 head = dbi = ISC_LIST_HEAD(*dblist); 208 if (isc_mutex_trylock(&dbi->instance_lock) == ISC_R_SUCCESS) 209 return dbi; /* succes 281 dbinstance_t *dbi = NULL; local 1058 dbinstance_t *dbi = NULL; local [all...] |
H A D | dlz_ldap_driver.c | 199 dlz_ldap_connect(ldap_instance_t *dbi, dbinstance_t *dbc) { argument 212 dbc->dbconn = ldap_init(dbi->hosts, LDAP_PORT); 219 &(dbi->protocol)); 226 ldap_result = ldap_bind_s((LDAP *) dbc->dbconn, dbi->user, 227 dbi->cred, dbi->method); 257 dbinstance_t *dbi = NULL; local 264 dbi = ndbi; 266 ndbi = ISC_LIST_NEXT(dbi, link); 268 if (dbi 289 dbinstance_t *dbi = NULL; local 562 dbinstance_t *dbi = NULL; local 938 dbinstance_t *dbi = NULL; local [all...] |
H A D | dlz_odbc_driver.c | 143 dbinstance_t *dbi = NULL; local 150 dbi = ndbi; 152 ndbi = ISC_LIST_NEXT(dbi, link); 155 if (dbi->dbconn != NULL) { 157 if (((odbc_db_t *) (dbi->dbconn))->stmnt != NULL) { 160 (dbi->dbconn))->stmnt); 161 ((odbc_db_t *) (dbi->dbconn))->stmnt = NULL; 165 if (((odbc_db_t *) (dbi->dbconn))->dbc != NULL) { 167 dbi->dbconn)->dbc); 170 (dbi 232 odbc_connect(odbc_instance_t *dbi, odbc_db_t **dbc) argument 335 dbinstance_t *dbi = NULL; local 477 dbinstance_t *dbi = NULL; local 818 odbc_process_rs(dns_sdlzlookup_t *lookup, dbinstance_t *dbi) argument 962 dbinstance_t *dbi = NULL; local 999 dbinstance_t *dbi = NULL; local 1058 dbinstance_t *dbi = NULL; local 1190 dbinstance_t *dbi = NULL; local 1220 dbinstance_t *dbi = NULL; local [all...] |
/bind-9.11.3/contrib/dlz/modules/common/ |
H A D | dlz_dbi.c | 311 dbinstance_t **dbi, log_t log) 424 *dbi = (dbinstance_t *) db; 437 destroy_dbinstance(dbinstance_t *dbi) { argument 439 destroy_querylist(&dbi->allnodes_q); 440 destroy_querylist(&dbi->allowxfr_q); 441 destroy_querylist(&dbi->authority_q); 442 destroy_querylist(&dbi->findzone_q); 443 destroy_querylist(&dbi->countzone_q); 444 destroy_querylist(&dbi->lookup_q); 447 (void) dlz_mutex_destroy(&dbi 308 build_dbinstance(const char *allnodes_str, const char *allowxfr_str, const char *authority_str, const char *findzone_str, const char *lookup_str, const char *countzone_str, dbinstance_t **dbi, log_t log) argument [all...] |
/bind-9.11.3/contrib/sdb/pgsql/ |
H A D | pgsqldb.c | 77 db_connect(struct dbinfo *dbi) { argument 78 dbi->conn = PQsetdbLogin(dbi->host, NULL, NULL, NULL, dbi->database, 79 dbi->user, dbi->passwd); 81 if (PQstatus(dbi->conn) == CONNECTION_OK) 92 maybe_reconnect(struct dbinfo *dbi) { argument 93 if (PQstatus(dbi->conn) == CONNECTION_OK) 96 return (db_connect(dbi)); 117 struct dbinfo *dbi = dbdata; local 180 struct dbinfo *dbi = dbdata; local 243 struct dbinfo *dbi; local 297 struct dbinfo *dbi = *dbdata; local [all...] |
/bind-9.11.3/contrib/sdb/sqlite/ |
H A D | sqlitedb.c | 50 db_connect(dbinfo_t *dbi) argument 52 if (sqlite3_open(dbi->filename, &dbi->db) == SQLITE_OK) { 56 sqlite3_close(dbi->db); 57 dbi->db = NULL; 116 dbinfo_t *dbi = (dbinfo_t *) dbdata; local 131 dbi->table, name); 133 result = sqlite3_exec(dbi->db, sql, 192 dbinfo_t *dbi = (dbinfo_t *) dbdata; local 202 dbi 221 dbinfo_t *dbi = *dbdata; local 258 dbinfo_t *dbi; local [all...] |
H A D | zone2sqlite.c | 45 dbinfo_t dbi = { NULL, NULL, NULL }; variable 51 if (dbi.db) { 52 sqlite3_close(dbi.db); 53 dbi.db = NULL; 69 db_connect(dbinfo_t *dbi) argument 71 if (sqlite3_open(dbi->filename, &dbi->db) == SQLITE_OK) { 75 sqlite3_close(dbi->db); 76 dbi->db = NULL; 123 dbi [all...] |
/bind-9.11.3/contrib/dlz/modules/ldap/ |
H A D | dlz_ldap_dynamic.c | 193 ldap_connect(ldap_instance_t *dbi, dbinstance_t *dbc) { argument 206 dbc->dbconn = ldap_init(dbi->hosts, LDAP_PORT); 213 &(dbi->protocol)); 220 ldap_result = ldap_bind_s((LDAP *) dbc->dbconn, dbi->user, 221 dbi->cred, dbi->method); 249 dbinstance_t *dbi = NULL; local 256 dbi = ndbi; 258 ndbi = DLZ_LIST_NEXT(dbi, link); 260 if (dbi 281 dbinstance_t *dbi = NULL; local 538 dbinstance_t *dbi = NULL; local 888 dbinstance_t *dbi = NULL; local [all...] |
/bind-9.11.3/contrib/dlz/modules/mysql/ |
H A D | dlz_mysql_dynamic.c | 135 dbinstance_t *dbi = NULL; local 139 dbi = ndbi; 140 ndbi = DLZ_LIST_NEXT(dbi, link); 142 mysql_destroy(dbi); 161 dbinstance_t *dbi = NULL, *head; local 165 head = dbi = DLZ_LIST_HEAD(*(mysql->db)); 170 if (dlz_mutex_trylock(&dbi->lock) == 0) 171 return (dbi); /* success, return the DBI for use. */ 174 dbi = DLZ_LIST_NEXT(dbi, lin 231 dbinstance_t *dbi = NULL; local 805 dbinstance_t *dbi = NULL; local [all...] |
/bind-9.11.3/contrib/dlz/modules/sqlite3/ |
H A D | dlz_sqlite3_dynamic.c | 141 dbinstance_t *dbi = NULL; local 145 dbi = ndbi; 146 ndbi = DLZ_LIST_NEXT(dbi, link); 148 sqlite3_destroy(dbi); 167 dbinstance_t *dbi = NULL, *head; local 171 head = dbi = DLZ_LIST_HEAD(*(sqlite3->db)); 176 if (dlz_mutex_trylock(&dbi->lock) == 0) 177 return (dbi); /* success, return the DBI for use. */ 180 dbi = DLZ_LIST_NEXT(dbi, lin 253 dbinstance_t *dbi = NULL; local 882 dbinstance_t *dbi = NULL; local [all...] |
/bind-9.11.3/bin/tests/ |
H A D | db_test.c | 112 dbinfo *dbi; local 131 for (dbi = ISC_LIST_HEAD(dbs); 132 dbi != NULL; 133 dbi = ISC_LIST_NEXT(dbi, link)) { 134 if (dns_name_compare(dns_db_origin(dbi->db), origin) == 0) 138 return (dbi); 142 list(dbinfo *dbi, char *seektext) { argument 157 if (dbi->dbiterator == NULL) { 158 INSIST(dbi 234 dbinfo *dbi; local 303 dbinfo *dbi, *dbi_next; local 362 dbinfo *dbi; local [all...] |
/bind-9.11.3/contrib/dlz/modules/mysqldyn/ |
H A D | dlz_mysqldyn_mod.c | 216 mysql_instance_t *dbi; member in struct:mysql_transaction 266 db_connect(mysql_data_t *state, mysql_instance_t *dbi) { argument 273 if (dbi->connected) 278 modname, dbi->id); 280 conn = mysql_real_connect(dbi->sock, state->db_host, 288 modname, mysql_error(dbi->sock)); 290 dlz_mutex_unlock(&dbi->mutex); 294 dbi->connected = 1; 303 * Find an available dbi 324 sanitize(mysql_instance_t *dbi, cons argument 373 build_query(mysql_data_t *state, mysql_instance_t *dbi, const char *command, ...) argument 571 db_execute(mysql_data_t *state, mysql_instance_t *dbi, const char *query) argument 595 db_query(mysql_data_t *state, mysql_instance_t *dbi, const char *query) argument 1075 mysql_instance_t *dbi = NULL; local [all...] |
/bind-9.11.3/bin/named/ |
H A D | server.c | 485 nzd_open(dns_view_t *view, unsigned int flags, MDB_txn **txnp, MDB_dbi *dbi); 6974 cfg_aclconfctx_t *actx, MDB_txn *txn, MDB_dbi dbi) 6984 status = mdb_cursor_open(txn, dbi, &cursor); 7076 MDB_dbi dbi; local 7082 result = nzd_open(view, MDB_RDONLY, &txn, &dbi); 7094 view, actx, txn, dbi); 7106 dbi); 7122 MDB_dbi dbi; local 7131 CHECK(nzd_open(view, MDB_RDONLY, &txn, &dbi)); 7151 status = mdb_get(txn, dbi, 6972 for_all_newzone_cfgs(newzone_cfg_cb_t callback, cfg_obj_t *config, cfg_obj_t *vconfig, isc_mem_t *mctx, dns_view_t *view, cfg_aclconfctx_t *actx, MDB_txn *txn, MDB_dbi dbi) argument 11346 nzd_save(MDB_txn **txnp, MDB_dbi dbi, dns_zone_t *zone, const cfg_obj_t *zconfig) argument 11461 MDB_dbi dbi; local 11489 nzd_open(dns_view_t *view, unsigned int flags, MDB_txn **txnp, MDB_dbi *dbi) argument 11645 MDB_dbi dbi; local 11684 MDB_dbi dbi; local 12016 MDB_dbi dbi; local 12181 MDB_dbi dbi; local 12487 MDB_dbi dbi; local [all...] |