Lines Matching defs:db
28 #include <dns/db.h>
54 active_node(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node) {
62 result = dns_db_allrdatasets(db, node, version, 0, &rdsiter);
83 result = dns_db_deleterdataset(db, node, version,
94 next_active(dns_db_t *db, dns_dbversion_t *version, dns_dbiterator_t *dbiter,
104 active = active_node(db, version, *nodep);
106 dns_db_detachnode(db, nodep);
118 dns_db_t *db;
145 db = NULL;
147 dns_rdataclass_in, 0, NULL, &db);
149 result = dns_db_load(db, filename);
154 result = dns_db_newversion(db, &wversion);
157 result = dns_db_createiterator(db, 0, &dbiter);
162 result = next_active(db, wversion, dbiter, name, &node);
167 result = next_active(db, wversion, dbiter, nextname,
172 target = dns_db_origin(db);
175 fatal("db iteration failed");
177 dns_nsec_build(db, wversion, node, target, 3600); /* XXX BEW */
178 dns_db_detachnode(db, &node);
182 fatal("db iteration failed");
187 dns_db_closeversion(db, &wversion, ISC_TRUE);
192 result = dns_db_dump(db, NULL, newfilename);
194 dns_db_detach(&db);