Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libresolv2/common/resolv/
H A Dres_data.c85 #undef _res
87 struct __res_state _res variable
95 #define _res (*__res_state()) macro
126 if (!_res.retrans) in res_init()
127 _res.retrans = RES_TIMEOUT; in res_init()
128 if (!_res.retry) in res_init()
129 _res.retry = 4; in res_init()
130 if (!(_res.options & RES_INIT)) in res_init()
131 _res.options = RES_DEFAULT; in res_init()
137 if (!_res.id) in res_init()
[all …]
/titanic_50/usr/src/lib/libresolv/
H A Dres_init.c70 struct state _res = { variable
103 _res.nsaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); /* INADDR_ANY */ in res_init()
104 _res.nsaddr.sin_family = AF_INET; in res_init()
105 _res.nsaddr.sin_port = htons(NAMESERVER_PORT); in res_init()
106 _res.nscount = 1; in res_init()
179 strcpy(_res.defdname, buf); in res_init()
181 strcpy(_res.defdname, cp+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()
203 if ((cp = strchr(_res.defdname, (int)'\n')) != NULL) in res_init()
[all …]
H A Dres_send.c107 if (_res.nsaddr.sin_addr.S_un.S_addr == htonl(INADDR_LOOPBACK)) { in _confcheck()
158 if (_res.options & RES_DEBUG) {
163 if (!(_res.options & RES_INIT))
172 v_circuit = (_res.options & RES_USEVC) || buflen > PACKETSZ;
177 for (try = 0; try < _res.retry; try++) {
178 for (ns = 0; ns < _res.nscount; ns++) {
180 if (_res.options & RES_DEBUG)
182 ns+1, inet_ntoa(_res.nsaddr_list[ns].sin_addr));
192 try = _res.retry;
198 if (_res.options & RES_DEBUG) {
[all …]
H A Dres_query.c83 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
86 if (_res.options & RES_DEBUG)
94 if (_res.options & RES_DEBUG)
103 if (_res.options & RES_DEBUG)
113 if (_res.options & RES_DEBUG)
160 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
177 if ((n == 0 && _res.options & RES_DEFNAMES) ||
178 (n != 0 && *--cp != '.' && _res.options & RES_DNSRCH)) {
179 for (domain = _res.dnsrch; *domain; domain++) {
203 (_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.h100 extern struct state _res;
H A Dmapfile-vers67 _res;
/titanic_50/usr/src/lib/libresolv2/common/irs/
H A Dirs_data.c50 #undef _res
56 extern struct __res_state _res;
180 (*net_data->irs->res_set)(net_data->irs, &_res, NULL); in net_data_create()
213 return (&_res); in __res_state()
219 return (&_res); in __res_state()
232 return(&_res.res_h_errno); in __h_errno()
/titanic_50/usr/src/cmd/sendmail/src/
H A Dsm_resolve.c403 old_options = _res.options;
404 _res.options |= RES_DEBUG;
410 save_retrans = _res.retrans;
411 _res.retrans = retrans;
415 save_retry = _res.retry;
416 _res.retry = retry;
423 _res.options = old_options;
430 _res.retrans = save_retrans;
432 _res.retry = save_retry;
H A Ddomain.c63 # define RES_DNSRCH_VARIABLE _res.dnsrch
361 if (tTd(8, 8) || _res.options & RES_DEBUG)
659 int saveopts = _res.options;
671 _res.options &= ~(RES_DNSRCH|RES_DEFNAMES);
673 _res.options = saveopts;
817 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
858 if (n >= 0 && *--cp != '.' && bitset(RES_DNSRCH, _res.options))
866 else if (n == 0 && bitset(RES_DEFNAMES, _res.options))
868 *dp++ = _res.defdname;
H A Ddaemon.c2295 int oldopts = _res.options;
2297 _res.options &= ~(RES_DEFNAMES|RES_DNSRCH);
2304 _res.options = oldopts;
2333 int oldopts = _res.options;
2335 _res.options &= ~(RES_DEFNAMES|RES_DNSRCH);
2341 _res.options = oldopts;
4001 retrans = _res.retrans;
4002 _res.retrans = map->map_timeout;
4006 retry = _res.retry;
4007 _res.retry = map->map_retry;
[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;
699 TimeOuts.res_retrans[RES_TO_DEFAULT] = _res.retrans;
700 TimeOuts.res_retrans[RES_TO_FIRST] = _res.retrans;
701 TimeOuts.res_retrans[RES_TO_NORMAL] = _res.retrans;
[all …]
H A Dconf.c4232 resv6 = bitset(RES_USE_INET6, _res.options);
4233 _res.options |= RES_USE_INET6;
4238 _res.options &= ~RES_USE_INET6;
5542 if (!*_res.defdname)
5545 len_domain = strlen(_res.defdname);
5548 _res.defdname) == 0) &&
H A Dsavemail.c594 _res.retry = TimeOuts.res_retry[RES_TO_FIRST];
595 _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];
/titanic_50/usr/src/cmd/sendmail/libmilter/
H A Dsm_gethost.c60 resv6 = bitset(RES_USE_INET6, _res.options);
61 _res.options |= RES_USE_INET6;
66 _res.options &= ~RES_USE_INET6;
/titanic_50/usr/src/lib/libresolv2/common/sunw/
H A Dsunw_mtctxres.c29 #ifdef _res
30 #undef _res
/titanic_50/usr/src/head/
H A Dresolv.h317 #define _res (*__res_state()) macro
320 extern struct __res_state _res;
/titanic_50/usr/src/lib/libresolv2/common/
H A Dmapfile-vers88 _res;
/titanic_50/usr/src/cmd/nscd/
H A Dnscd_frontend.c1544 _res.options |= RES_STAYOPEN; /* just keep this udp socket open */ in keep_open_dns_socket()