Lines Matching refs:res
76 dns->res = NULL;
113 if (dns->res == NULL) {
114 struct __res_state *res;
115 res = (struct __res_state *)malloc(sizeof *res);
116 if (res == NULL)
118 memset(res, 0, sizeof *res);
119 dns_res_set(this, res, free);
122 if ((dns->res->options & RES_INIT) == 0U &&
123 res_ninit(dns->res) < 0)
126 return (dns->res);
130 dns_res_set(struct irs_acc *this, struct __res_state *res,
134 if (dns->res && dns->free_res) {
135 res_nclose(dns->res);
136 (*dns->free_res)(dns->res);
138 dns->res = res;
147 if (dns->res && dns->free_res)
148 (*dns->free_res)(dns->res);