Lines Matching refs:res
49 struct __res_state * res;
63 struct __res_state *res,
109 if (pvt->res && pvt->free_res)
110 (*pvt->free_res)(pvt->res);
153 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
157 if (pvt->res->res_h_errno != TRY_AGAIN &&
176 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
180 if (pvt->res->res_h_errno != TRY_AGAIN &&
204 if (pvt->res)
205 res_nclose(pvt->res);
217 if (!pvt->res) {
218 struct __res_state *res;
219 res = (struct __res_state *)malloc(sizeof *res);
220 if (!res) {
224 memset(res, 0, sizeof *res);
225 nw_res_set(this, res, free);
228 return (pvt->res);
232 nw_res_set(struct irs_nw *this, struct __res_state *res,
237 if (pvt->res && pvt->free_res) {
238 res_nclose(pvt->res);
239 (*pvt->free_res)(pvt->res);
242 pvt->res = res;
248 (*nw->res_set)(nw, pvt->res, NULL);
256 if (!pvt->res && !nw_res_get(this))
258 if (((pvt->res->options & RES_INIT) == 0U) &&
259 res_ninit(pvt->res) == -1)