Lines Matching refs:statp
221 res_state statp;
273 statp = __res_state();
274 if ((statp->options & RES_INIT) == 0) {
275 if (res_ninit(statp) < 0) {
281 options = statp->options;
282 statp->options &= ~RES_USE_INET6;
295 *errp = statp->res_h_errno;
309 *errp = statp->res_h_errno;
311 statp->options = options;
312 return _hpsort(hp, statp);
319 res_state statp;
368 statp = __res_state();
369 if ((statp->options & RES_INIT) == 0) {
370 if (res_ninit(statp) < 0) {
371 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
376 options = statp->options;
377 statp->options &= ~RES_USE_INET6;
381 *errp = statp->res_h_errno;
383 statp->options = options;
588 _hpsort(struct hostent *hp, res_state statp)
594 int nsort = statp->nsort;
601 if (statp->_u._ext.ext->sort_list[j].af !=
604 sp = (u_char *)&statp->_u._ext.ext->sort_list[j].addr;
605 mp = (u_char *)&statp->_u._ext.ext->sort_list[j].mask;
607 sp = (u_char *)&statp->sort_list[j].addr;
608 mp = (u_char *)&statp->sort_list[j].mask;