Lines Matching defs:statp

82 	res_state statp = &_res;
103 if (!statp->retrans)
104 statp->retrans = RES_TIMEOUT;
105 if (!statp->retry)
106 statp->retry = RES_DFLRETRY;
107 if (!(statp->options & RES_INIT))
108 statp->options = RES_DEFAULT;
110 return (__res_vinit(statp, 1));
125 res_state statp = &_res;
126 if ((statp->options & RES_INIT) == 0U && res_init() == -1)
129 res_pquery(statp, msg, len, file);
142 res_state statp = &_res;
143 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
144 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
147 return (res_nmkquery(statp, op, dname, class, type,
154 res_state statp = &_res;
155 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
156 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
160 return (res_nmkupdate(statp, rrecp_in, buf, buflen));
169 res_state statp = &_res;
170 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
171 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
174 return (res_nquery(statp, name, class, type, answer, anslen));
196 res_state statp = &_res;
197 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
202 return (res_nsend(statp, buf, buflen, ans, anssiz));
210 res_state statp = &_res;
211 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
216 return (res_nsendsigned(statp, buf, buflen, key, ans, anssiz));
227 res_state statp = &_res;
228 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
229 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
233 return (res_nupdate(statp, rrecp_in, NULL));
242 res_state statp = &_res;
243 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
244 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
248 return (res_nsearch(statp, name, class, type, answer, anslen));
258 res_state statp = &_res;
259 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
260 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
264 return (res_nquerydomain(statp, name, domain,
271 res_state statp = &_res;
272 if ((statp->options & RES_INIT) == 0U && res_init() == -1) {
273 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
277 return (res_nrandomid(statp));
297 res_state statp;
299 statp = &_res;
300 if (!*statp->defdname)
303 len_domain = strlen(statp->defdname);
305 !strcasecmp(hostname + len_host - len_domain, statp->defdname) &&