Lines Matching defs:db
19 #include <dns/db.h>
45 active_node(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node) {
53 result = dns_db_allrdatasets(db, node, version, 0, &rdsiter);
74 result = dns_db_deleterdataset(db, node, version,
85 next_active(dns_db_t *db, dns_dbversion_t *version, dns_dbiterator_t *dbiter,
95 active = active_node(db, version, *nodep);
97 dns_db_detachnode(db, nodep);
109 dns_db_t *db;
136 db = NULL;
138 dns_rdataclass_in, 0, NULL, &db);
140 result = dns_db_load(db, filename);
145 result = dns_db_newversion(db, &wversion);
148 result = dns_db_createiterator(db, 0, &dbiter);
153 result = next_active(db, wversion, dbiter, name, &node);
158 result = next_active(db, wversion, dbiter, nextname,
163 target = dns_db_origin(db);
166 fatal("db iteration failed");
168 dns_nsec_build(db, wversion, node, target, 3600); /* XXX BEW */
169 dns_db_detachnode(db, &node);
173 fatal("db iteration failed");
178 dns_db_closeversion(db, &wversion, ISC_TRUE);
183 result = dns_db_dump(db, NULL, newfilename);
185 dns_db_detach(&db);