Lines Matching refs:_nres
79 extern struct __res_state _nres;
85 #define res_need_init() ((_nres.options & RES_INIT) == 0U)
103 _nres.options = ores->options; in res_init()
105 _nres.retrans = ores->retrans; in res_init()
107 _nres.retry = ores->retry; in res_init()
129 if (!_nres.retrans) in res_init()
130 _nres.retrans = RES_TIMEOUT; in res_init()
131 if (!_nres.retry) in res_init()
132 _nres.retry = 4; in res_init()
133 if (!(_nres.options & RES_INIT)) in res_init()
134 _nres.options = RES_DEFAULT; in res_init()
140 if (!_nres.id) in res_init()
141 _nres.id = res_randomid(); in res_init()
143 rv = __res_vinit(&_nres, 1); in res_init()
145 __res_put_old_state(&_nres); in res_init()
165 res_pquery(&_nres, msg, len, file); in fp_nquery()
179 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_mkquery()
182 return (res_nmkquery(&_nres, op, dname, class, type, in res_mkquery()
191 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_mkupdate()
195 return (res_nmkupdate(&_nres, rrecp_in, buf, buflen)); in res_mkupdate()
206 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_query()
209 return (res_nquery(&_nres, name, class, type, answer, anslen)); in res_query()
214 _nres.qhook = hook; in res_send_setqhook()
219 _nres.rhook = hook; in res_send_setrhook()
224 return (res_ourserver_p(&_nres, (const struct sockaddr *)(const void *)inp)); in res_isourserver()
234 return (res_nsend(&_nres, buf, buflen, ans, anssiz)); in res_send()
247 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz)); in res_sendsigned()
253 res_nclose(&_nres); in res_close()
260 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_update()
264 return (res_nupdate(&_nres, rrecp_in, NULL)); in res_update()
275 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_search()
279 return (res_nsearch(&_nres, name, class, type, answer, anslen)); in res_search()
290 RES_SET_H_ERRNO(&_nres, NETDB_INTERNAL); in res_querydomain()
294 return (res_nquerydomain(&_nres, name, domain, in res_querydomain()
302 return res_nopt(&_nres, a, b, c, d); in res_opt()
315 if (!*_nres.defdname) in local_hostname_length()
318 len_domain = strlen(_nres.defdname); in local_hostname_length()
320 !strcasecmp(hostname + len_host - len_domain, _nres.defdname) && in local_hostname_length()