Home
last modified time | relevance | path

Searched refs:_res (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_data.c81 #undef _res
83 struct __res_state _res variable
122 if (!_res.retrans) in res_init()
124 if (!_res.retry) in res_init()
125 _res.retry = 4; in res_init()
133 if (!_res.id) in res_init()
134 _res.id = res_nrandomid(&_res); in res_init()
201 _res.qhook = hook; in res_send_setqhook()
206 _res.rhook = hook; in res_send_setrhook()
238 res_nclose(&_res); in res_close()
[all …]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_init.c70 struct state _res = { variable
106 _res.nscount = 1; in res_init()
185 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname)); in res_init()
201 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1); in res_init()
220 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname) - 1); in res_init()
231 cp = _res.defdname; in res_init()
232 pp = _res.dnsrch; in res_init()
271 _res.nscount = nserv; in res_init()
286 pp = _res.dnsrch; in res_init()
287 *pp++ = _res.defdname; in res_init()
[all …]
H A Dres_send.c158 if (_res.options & RES_DEBUG) {
163 if (!(_res.options & RES_INIT))
180 if (_res.options & RES_DEBUG)
192 try = _res.retry;
229 if (_res.options & RES_DEBUG)
249 if (_res.options & RES_DEBUG)
274 if (_res.options & RES_DEBUG)
291 if (_res.options & RES_DEBUG)
356 if (_res.nscount == 1 ||
368 if (_res.options &
[all …]
H A Dres_query.c81 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
84 if (_res.options & RES_DEBUG)
92 if (_res.options & RES_DEBUG)
101 if (_res.options & RES_DEBUG)
111 if (_res.options & RES_DEBUG)
158 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
175 if ((n == 0 && _res.options & RES_DEFNAMES) ||
176 (n != 0 && *--cp != '.' && _res.options & RES_DNSRCH)) {
177 for (domain = _res.dnsrch; *domain; domain++) {
201 (_res.options & RES_DNSRCH) == 0)
[all …]
H A Dres_mkquery.c92 if (_res.nsaddr.sin_addr.S_un.S_addr == htonl(INADDR_LOOPBACK)) { in _confcheck()
139 if (_res.options & RES_DEBUG)
148 if ((_res.options & RES_INIT) == 0 && res_init() == -1) {
154 _res.options &= ~RES_INIT;
170 hp->id = htons(++_res.id);
172 hp->pr = (_res.options & RES_PRIMARY) != 0;
173 hp->rd = (_res.options & RES_RECURSE) != 0;
H A Dres_sethost.c52 _res.options |= RES_STAYOPEN | RES_USEVC;
58 _res.options &= ~(RES_STAYOPEN | RES_USEVC); in res_endhostent()
H A Dres_gethost.c170 if (_res.options & RES_DEBUG)
200 if (_res.options & RES_DEBUG)
256 if (_res.options & RES_DEBUG)
289 if (_res.options & RES_DEBUG)
H A Dresolv.h98 extern struct state _res;
H A Dmapfile-vers67 _res {
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dsm_resolve.c401 old_options = _res.options;
402 _res.options |= RES_DEBUG;
408 save_retrans = _res.retrans;
409 _res.retrans = retrans;
413 save_retry = _res.retry;
414 _res.retry = retry;
421 _res.options = old_options;
428 _res.retrans = save_retrans;
430 _res.retry = save_retry;
H A Ddomain.c61 # define RES_DNSRCH_VARIABLE _res.dnsrch
359 if (tTd(8, 8) || _res.options & RES_DEBUG)
657 int saveopts = _res.options;
669 _res.options &= ~(RES_DNSRCH|RES_DEFNAMES);
671 _res.options = saveopts;
815 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
856 if (n >= 0 && *--cp != '.' && bitset(RES_DNSRCH, _res.options))
864 else if (n == 0 && bitset(RES_DEFNAMES, _res.options))
866 *dp++ = _res.defdname;
H A Ddaemon.c2304 _res.options = oldopts;
2341 _res.options = oldopts;
4001 retrans = _res.retrans;
4006 retry = _res.retry;
4007 _res.retry = map->map_retry;
4070 _res.retrans = retrans;
4072 _res.retry = retry;
4400 saveretry = _res.retry;
4401 if (_res.retry * _res.retrans > 20)
4402 _res.retry = 20 / _res.retrans;
[all …]
H A Dmain.c687 if (!bitset(RES_INIT, _res.options))
690 _res.options |= RES_DEBUG;
692 _res.options &= ~RES_DEBUG;
694 _res.options |= RES_NOALIASES;
696 TimeOuts.res_retry[RES_TO_DEFAULT] = _res.retry;
697 TimeOuts.res_retry[RES_TO_FIRST] = _res.retry;
698 TimeOuts.res_retry[RES_TO_NORMAL] = _res.retry;
700 TimeOuts.res_retrans[RES_TO_FIRST] = _res.retrans;
701 TimeOuts.res_retrans[RES_TO_NORMAL] = _res.retrans;
1384 _res.retry = TimeOuts.res_retry[RES_TO_DEFAULT];
[all …]
H A Dconf.c4233 resv6 = bitset(RES_USE_INET6, _res.options);
4234 _res.options |= RES_USE_INET6;
4239 _res.options &= ~RES_USE_INET6;
5543 if (!*_res.defdname)
5546 len_domain = strlen(_res.defdname);
5549 _res.defdname) == 0) &&
H A Dsavemail.c596 _res.retry = TimeOuts.res_retry[RES_TO_FIRST];
597 _res.retrans = TimeOuts.res_retrans[RES_TO_FIRST];
H A Ddeliver.c1860 _res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */
3433 _res.options |= RES_DEFNAMES | RES_DNSRCH; /* XXX */
5705 int oldoptions = _res.options;
5775 _res.options &= ~(RES_DEFNAMES | RES_DNSRCH); /* XXX */
5903 _res.options = oldoptions;
H A Dreadcf.c2753 _res.options &= ~rfp->rf_bits;
2755 _res.options |= rfp->rf_bits;
2759 (unsigned int) _res.options, HasWildcardMX);
H A Dqueue.c4349 _res.retry = TimeOuts.res_retry[RES_TO_FIRST];
4350 _res.retrans = TimeOuts.res_retrans[RES_TO_FIRST];
4354 _res.retry = TimeOuts.res_retry[RES_TO_NORMAL];
4355 _res.retrans = TimeOuts.res_retrans[RES_TO_NORMAL];
H A Dsrvrsmtp.c3723 _res.retry = TimeOuts.res_retry[RES_TO_FIRST];
3724 _res.retrans = TimeOuts.res_retrans[RES_TO_FIRST];
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirs_data.c46 #undef _res
52 extern struct __res_state _res;
176 (*net_data->irs->res_set)(net_data->irs, &_res, NULL); in net_data_create()
209 return (&_res); in __res_state()
215 return (&_res); in __res_state()
228 return(&_res.res_h_errno); in __h_errno()
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dsm_gethost.c58 resv6 = bitset(RES_USE_INET6, _res.options);
59 _res.options |= RES_USE_INET6;
64 _res.options &= ~RES_USE_INET6;
/illumos-gate/usr/src/lib/libresolv2/common/sunw/
H A Dsunw_mtctxres.c29 #ifdef _res
30 #undef _res
/illumos-gate/usr/src/head/
H A Dresolv.h317 #define _res (*__res_state()) macro
320 extern struct __res_state _res;
/illumos-gate/usr/src/lib/libresolv2/common/
H A Dmapfile-vers94 _res { ASSERT = { TYPE = OBJECT; SIZE = 552; }; };
96 _res { ASSERT = { TYPE = OBJECT; SIZE = 512; }; };
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c1553 _res.options |= RES_STAYOPEN; /* just keep this udp socket open */ in keep_open_dns_socket()