Lines Matching refs:result

34 #include <dns/result.h>
45 check_result(isc_result_t result, const char *message) {
46 if (result != ISC_R_SUCCESS) {
48 isc_result_totext(result));
57 isc_result_t result;
62 result = dns_db_allrdatasets(db, node, version, 0, &rdsiter);
63 check_result(result, "dns_db_allrdatasets()");
64 result = dns_rdatasetiter_first(rdsiter);
65 while (result == ISC_R_SUCCESS) {
71 result = dns_rdatasetiter_next(rdsiter);
73 result = ISC_R_NOMORE;
75 if (result != ISC_R_NOMORE)
83 result = dns_db_deleterdataset(db, node, version,
85 if (result == DNS_R_UNCHANGED)
86 result = ISC_R_SUCCESS;
87 check_result(result, "dns_db_deleterdataset");
97 isc_result_t result;
102 result = dns_dbiterator_current(dbiter, nodep, name);
103 if (result == ISC_R_SUCCESS) {
107 result = dns_dbiterator_next(dbiter);
110 } while (result == ISC_R_SUCCESS && !active);
112 return (result);
117 isc_result_t result;
142 result = dns_name_fromtext(name, &b, dns_rootname, ISC_FALSE, NULL);
143 check_result(result, "dns_name_fromtext()");
146 result = dns_db_create(mctx, "rbt", name, dns_dbtype_zone,
148 check_result(result, "dns_db_create()");
149 result = dns_db_load(db, filename);
150 if (result == DNS_R_SEENINCLUDE)
151 result = ISC_R_SUCCESS;
152 check_result(result, "dns_db_load()");
154 result = dns_db_newversion(db, &wversion);
155 check_result(result, "dns_db_newversion()");
157 result = dns_db_createiterator(db, 0, &dbiter);
158 check_result(result, "dns_db_createiterator()");
159 result = dns_dbiterator_first(dbiter);
160 check_result(result, "dns_dbiterator_first()");
162 result = next_active(db, wversion, dbiter, name, &node);
163 while (result == ISC_R_SUCCESS) {
165 result = dns_dbiterator_next(dbiter);
166 if (result == ISC_R_SUCCESS)
167 result = next_active(db, wversion, dbiter, nextname,
169 if (result == ISC_R_SUCCESS)
171 else if (result == ISC_R_NOMORE)
181 if (result != ISC_R_NOMORE)
192 result = dns_db_dump(db, NULL, newfilename);
193 check_result(result, "dns_db_dump");
200 isc_result_t result;
204 result = isc_mem_create(0, 0, &mctx);
205 check_result(result, "isc_mem_create()");