Lines Matching defs:res

52 	struct __res_state *	res;
69 struct __res_state *res,
118 if (pvt->res && pvt->free_res)
119 (*pvt->free_res)(pvt->res);
138 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
144 pvt->res->res_h_errno != HOST_NOT_FOUND &&
145 pvt->res->res_h_errno != NETDB_INTERNAL) {
147 therrno = pvt->res->res_h_errno;
159 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
162 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
163 RES_SET_H_ERRNO(pvt->res, therrno);
181 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
187 pvt->res->res_h_errno != HOST_NOT_FOUND &&
188 pvt->res->res_h_errno != NETDB_INTERNAL) {
190 therrno = pvt->res->res_h_errno;
198 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
201 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
202 RES_SET_H_ERRNO(pvt->res, therrno);
221 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
227 pvt->res->res_h_errno != HOST_NOT_FOUND &&
228 pvt->res->res_h_errno != NETDB_INTERNAL) {
230 therrno = pvt->res->res_h_errno;
239 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
242 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
243 RES_SET_H_ERRNO(pvt->res, therrno);
286 if (pvt->res)
287 res_nclose(pvt->res);
299 if (!pvt->res) {
300 struct __res_state *res;
301 res = (struct __res_state *)malloc(sizeof *res);
302 if (!res) {
306 memset(res, 0, sizeof *res);
307 ho_res_set(this, res, free);
310 return (pvt->res);
314 ho_res_set(struct irs_ho *this, struct __res_state *res,
319 if (pvt->res && pvt->free_res) {
320 res_nclose(pvt->res);
321 (*pvt->free_res)(pvt->res);
324 pvt->res = res;
330 (*ho->res_set)(ho, pvt->res, NULL);
349 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
357 pvt->res->res_h_errno != HOST_NOT_FOUND &&
358 pvt->res->res_h_errno != NETDB_INTERNAL) {
360 therrno = pvt->res->res_h_errno;
368 if (pvt->res->res_h_errno != TRY_AGAIN ||
372 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
373 RES_SET_H_ERRNO(pvt->res, therrno);
381 if (!pvt->res && !ho_res_get(this))
384 if (((pvt->res->options & RES_INIT) == 0U) &&
385 (res_ninit(pvt->res) == -1))