Lines Matching refs:res
113 if (nis->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 nis_res_set(this, res, free);
122 if ((nis->res->options & RES_INIT) == 0 &&
123 res_ninit(nis->res) < 0)
126 return (nis->res);
130 nis_res_set(struct irs_acc *this, struct __res_state *res,
134 if (nis->res && nis->free_res) {
135 res_nclose(nis->res);
136 (*nis->free_res)(nis->res);
139 nis->res = res;
147 if (nis->res && nis->free_res)
148 (*nis->free_res)(nis->res);