Lines Matching refs:status
48 int status_as_is; /* error status from trying as-is */
55 static void search_callback(void *arg, int status, int timeouts,
57 static void end_squery(struct search_query *squery, ares_status_t status,
67 ares_status_t status;
79 status = ares__single_domain(channel, name, &s);
80 if (status != ARES_SUCCESS) {
81 callback(arg, (int)status, 0, NULL, 0);
148 status = ares__cat_domain(name, squery->domains[0], &s);
149 if (status == ARES_SUCCESS) {
156 callback(arg, (int)status, 0, NULL, 0);
172 static void search_callback(void *arg, int status, int timeouts,
182 if (status != ARES_ENODATA && status != ARES_ESERVFAIL &&
183 status != ARES_ENOTFOUND) {
184 end_squery(squery, (ares_status_t)status, abuf, (size_t)alen);
186 /* Save the status if we were trying as-is. */
188 squery->status_as_is = status;
198 if (status == ARES_ENODATA) {
231 static void end_squery(struct search_query *squery, ares_status_t status,
234 squery->callback(squery->arg, (int)status, (int)squery->timeouts, abuf,
274 ares_status_t status;
294 while ((status = ares__read_line(fp, &line, &linesize)) ==
320 if (status != ARES_SUCCESS && status != ARES_EOF) {
321 return status;