/bind-9.6-ESV-R11/contrib/dlz/drivers/ |
H A D | sdlz_helper.c | 339 const char *countzone_str, dbinstance_t **dbi) 345 REQUIRE(dbi != NULL && *dbi == NULL); 457 *dbi = (dbinstance_t *) db; 470 sdlzh_destroy_sqldbinstance(dbinstance_t *dbi) argument 475 mctx = dbi->mctx; 478 destroy_querylist(mctx, &dbi->allnodes_q); 479 destroy_querylist(mctx, &dbi->allowxfr_q); 480 destroy_querylist(mctx, &dbi->authority_q); 481 destroy_querylist(mctx, &dbi 336 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 | 138 dbinstance_t *dbi = NULL; local 150 dbi = (dbinstance_t *) dbdata; 153 if (dbi == NULL) { 167 if (dbi->allnodes_q == NULL) { 174 if (dbi->allowxfr_q == NULL) { 181 if (dbi->authority_q == NULL) { 188 if (dbi->findzone_q == NULL) { 199 if (dbi->countzone_q == NULL) { 206 if (dbi->lookup_q == NULL) { 233 dbi 783 dbinstance_t *dbi = NULL; local 993 dbinstance_t *dbi; local [all...] |
H A D | dlz_postgres_driver.c | 173 dbinstance_t *dbi = NULL; local 180 dbi = ndbi; 182 ndbi = ISC_LIST_NEXT(dbi, link); 184 if (dbi->dbconn != NULL) 185 PQfinish((PGconn *) dbi->dbconn); 187 destroy_sqldbinstance(dbi); 207 dbinstance_t *dbi = NULL; local 212 head = dbi = ISC_LIST_HEAD(*dblist); 217 if (isc_mutex_trylock(&dbi->instance_lock) == ISC_R_SUCCESS) 218 return dbi; /* succes 290 dbinstance_t *dbi = NULL; local 1056 dbinstance_t *dbi = NULL; local [all...] |
H A D | dlz_ldap_driver.c | 206 dlz_ldap_connect(ldap_instance_t *dbi, dbinstance_t *dbc) { argument 219 dbc->dbconn = ldap_init(dbi->hosts, LDAP_PORT); 226 &(dbi->protocol)); 233 ldap_result = ldap_bind_s((LDAP *) dbc->dbconn, dbi->user, 234 dbi->cred, dbi->method); 264 dbinstance_t *dbi = NULL; local 271 dbi = ndbi; 273 ndbi = ISC_LIST_NEXT(dbi, link); 275 if (dbi 296 dbinstance_t *dbi = NULL; local 569 dbinstance_t *dbi = NULL; local 936 dbinstance_t *dbi = NULL; local [all...] |
H A D | dlz_odbc_driver.c | 152 dbinstance_t *dbi = NULL; local 159 dbi = ndbi; 161 ndbi = ISC_LIST_NEXT(dbi, link); 164 if (dbi->dbconn != NULL) { 166 if (((odbc_db_t *) (dbi->dbconn))->stmnt != NULL) { 169 (dbi->dbconn))->stmnt); 170 ((odbc_db_t *) (dbi->dbconn))->stmnt = NULL; 174 if (((odbc_db_t *) (dbi->dbconn))->dbc != NULL) { 176 dbi->dbconn)->dbc); 179 (dbi 241 odbc_connect(odbc_instance_t *dbi, odbc_db_t **dbc) argument 344 dbinstance_t *dbi = NULL; local 486 dbinstance_t *dbi = NULL; local 827 odbc_process_rs(dns_sdlzlookup_t *lookup, dbinstance_t *dbi) argument 970 dbinstance_t *dbi = NULL; local 1005 dbinstance_t *dbi = NULL; local 1064 dbinstance_t *dbi = NULL; local 1196 dbinstance_t *dbi = NULL; local 1225 dbinstance_t *dbi = NULL; local [all...] |
/bind-9.6-ESV-R11/contrib/sdb/pgsql/ |
H A D | pgsqldb.c | 86 db_connect(struct dbinfo *dbi) { argument 87 dbi->conn = PQsetdbLogin(dbi->host, NULL, NULL, NULL, dbi->database, 88 dbi->user, dbi->passwd); 90 if (PQstatus(dbi->conn) == CONNECTION_OK) 101 maybe_reconnect(struct dbinfo *dbi) { argument 102 if (PQstatus(dbi->conn) == CONNECTION_OK) 105 return (db_connect(dbi)); 119 struct dbinfo *dbi = dbdata; local 178 struct dbinfo *dbi = dbdata; local 241 struct dbinfo *dbi; local 295 struct dbinfo *dbi = *dbdata; local [all...] |
/bind-9.6-ESV-R11/contrib/sdb/sqlite/ |
H A D | sqlitedb.c | 59 db_connect(dbinfo_t *dbi) argument 61 if (sqlite3_open(dbi->filename, &dbi->db) == SQLITE_OK) { 65 sqlite3_close(dbi->db); 66 dbi->db = NULL; 119 dbinfo_t *dbi = (dbinfo_t *) dbdata; local 130 dbi->table, name); 132 result = sqlite3_exec(dbi->db, sql, 191 dbinfo_t *dbi = (dbinfo_t *) dbdata; local 201 dbi 220 dbinfo_t *dbi = *dbdata; local 257 dbinfo_t *dbi; local [all...] |
H A D | zone2sqlite.c | 56 dbinfo_t dbi = { NULL, NULL, NULL }; variable 62 if (dbi.db) { 63 sqlite3_close(dbi.db); 64 dbi.db = NULL; 80 db_connect(dbinfo_t *dbi) argument 82 if (sqlite3_open(dbi->filename, &dbi->db) == SQLITE_OK) { 86 sqlite3_close(dbi->db); 87 dbi->db = NULL; 134 dbi [all...] |
/bind-9.6-ESV-R11/bin/tests/ |
H A D | db_test.c | 120 dbinfo *dbi; local 140 for (dbi = ISC_LIST_HEAD(dbs); 141 dbi != NULL; 142 dbi = ISC_LIST_NEXT(dbi, link)) { 143 if (dns_name_compare(dns_db_origin(dbi->db), origin) == 0) 147 return (dbi); 151 list(dbinfo *dbi, char *seektext) { argument 166 if (dbi->dbiterator == NULL) { 167 INSIST(dbi 244 dbinfo *dbi; local 311 dbinfo *dbi, *dbi_next; local 370 dbinfo *dbi; local [all...] |