Lines Matching refs:res
71 lcl->res = NULL;
100 if (lcl->res == NULL) {
101 struct __res_state *res;
102 res = (struct __res_state *)malloc(sizeof *res);
103 if (res == NULL)
105 memset(res, 0, sizeof *res);
106 lcl_res_set(this, res, free);
109 if ((lcl->res->options & RES_INIT) == 0U &&
110 res_ninit(lcl->res) < 0)
113 return (lcl->res);
117 lcl_res_set(struct irs_acc *this, struct __res_state *res,
121 if (lcl->res && lcl->free_res) {
122 res_nclose(lcl->res);
123 (*lcl->free_res)(lcl->res);
126 lcl->res = res;
136 (*lcl->free_res)(lcl->res);