Lines Matching refs:statp
2111 _resolv_populate_res_for_net(res_state statp) in _resolv_populate_res_for_net() argument
2113 if (statp == NULL) { in _resolv_populate_res_for_net()
2120 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net()
2124 XLOG("%s: %u\n", __FUNCTION__, statp->netid); in _resolv_populate_res_for_net()
2131 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net()
2132 if (statp->_u._ext.ext != NULL) { in _resolv_populate_res_for_net()
2133 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
2134 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2137 <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
2138 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()
2141 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2148 statp->nscount = nserv; in _resolv_populate_res_for_net()
2152 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2153 register char **pp = statp->dnsrch; in _resolv_populate_res_for_net()
2155 while (pp < statp->dnsrch + MAXDNSRCH && *p != -1) { in _resolv_populate_res_for_net()
2156 *pp++ = &statp->defdname[0] + *p++; in _resolv_populate_res_for_net()