Lines Matching defs:statp

160 	res_state statp;
174 statp = __res_state();
175 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES |
433 size_t buflen, res_state statp)
440 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
447 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
452 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) {
467 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
477 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
480 RES_SET_H_ERRNO(statp, NETDB_SUCCESS);
488 res_state statp;
490 statp = __res_state();
491 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) {
492 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
495 if (statp->options & RES_USE_INET6) {
496 if (fakeaddr(name, AF_INET, he, buffer, buflen, statp) == 0) {
501 result, h_errnop, statp) == 0)
505 result, h_errnop, statp));
512 res_state statp;
514 statp = __res_state();
515 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) {
516 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
520 h_errnop, statp));
525 size_t buflen, struct hostent **result, int *h_errnop, res_state statp)
552 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
553 *h_errnop = statp->res_h_errno;
564 (cp = res_hostalias(statp, name, abuf, sizeof abuf)))
567 if (fakeaddr(name, af, hp, buf, buflen, statp) == 0) {
591 res_state statp;
609 statp = __res_state();
610 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) {
611 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
612 *h_errnop = statp->res_h_errno;
619 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
620 *h_errnop = statp->res_h_errno;
640 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
641 *h_errnop = statp->res_h_errno;
646 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
647 *h_errnop = statp->res_h_errno;