Lines Matching refs:array
215 struct gaih_addrtuple *array = calloc (count, sizeof (*array)); in convert_hostent_to_gaih_addrtuple() local
216 if (array == NULL) in convert_hostent_to_gaih_addrtuple()
224 array[i].family = AF_INET6; in convert_hostent_to_gaih_addrtuple()
225 memcpy(array[i].addr + 3, h->h_addr_list[i], sizeof (uint32_t)); in convert_hostent_to_gaih_addrtuple()
226 array[i].addr[2] = htonl (0xffff); in convert_hostent_to_gaih_addrtuple()
230 array[i].family = family; in convert_hostent_to_gaih_addrtuple()
231 memcpy (array[i].addr, h->h_addr_list[i], h->h_length); in convert_hostent_to_gaih_addrtuple()
233 array[i].next = array + i + 1; in convert_hostent_to_gaih_addrtuple()
235 array[0].name = h->h_name; in convert_hostent_to_gaih_addrtuple()
236 array[count - 1].next = NULL; in convert_hostent_to_gaih_addrtuple()
238 *result = array; in convert_hostent_to_gaih_addrtuple()