Lines Matching refs:statp
2109 _resolv_populate_res_for_net(res_state statp) in _resolv_populate_res_for_net() argument
2111 if (statp == NULL) { in _resolv_populate_res_for_net()
2118 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net()
2122 XLOG("%s: %u\n", __FUNCTION__, statp->netid); in _resolv_populate_res_for_net()
2129 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net()
2130 if (statp->_u._ext.ext != NULL) { in _resolv_populate_res_for_net()
2131 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
2132 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2135 <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
2136 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()
2139 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2146 statp->nscount = nserv; in _resolv_populate_res_for_net()
2150 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2151 register char **pp = statp->dnsrch; in _resolv_populate_res_for_net()
2153 while (pp < statp->dnsrch + MAXDNSRCH && *p != -1) { in _resolv_populate_res_for_net()
2154 *pp++ = &statp->defdname[0] + *p++; in _resolv_populate_res_for_net()