Lines Matching defs:res
93 struct __res_state * res;
107 struct __res_state *res,
157 if (pvt->res && pvt->free_res)
158 (*pvt->free_res)(pvt->res);
233 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
321 if (pvt->res)
322 res_nclose(pvt->res);
333 if (!pvt->res) {
334 struct __res_state *res;
335 res = (struct __res_state *)malloc(sizeof *res);
336 if (!res) {
340 memset(res, 0, sizeof *res);
341 nw_res_set(this, res, free);
344 return (pvt->res);
348 nw_res_set(struct irs_nw *this, struct __res_state *res,
352 if (pvt->res && pvt->free_res) {
353 res_nclose(pvt->res);
354 (*pvt->free_res)(pvt->res);
357 pvt->res = res;
365 if (!pvt->res && !nw_res_get(this))
367 if (((pvt->res->options & RES_INIT) == 0U) &&
368 res_ninit(pvt->res) == -1)