Lines Matching refs:res_state
342 struct __res_state res_state;
348 bzero(&res_state, sizeof (struct __res_state));
349 if (res_ninit(&res_state))
352 if (*res_state.defdname == '\0') {
353 res_ndestroy(&res_state);
357 (void) strlcpy(buf, res_state.defdname, buflen);
358 res_ndestroy(&res_state);
722 struct __res_state res_state;
728 bzero(&res_state, sizeof (struct __res_state));
729 if (res_ninit(&res_state) < 0)
732 cnt = res_getservers(&res_state, set, MAXNS);
750 res_ndestroy(&res_state);