Lines Matching refs:h_aliases
156 if (src->h_aliases != NULL) { in clone_hostent()
158 for (cp = src->h_aliases; *cp; ++cp) in clone_hostent()
161 dest->h_aliases = calloc(aliases_num + 1, sizeof(char *)); in clone_hostent()
162 ATF_REQUIRE(dest->h_aliases != NULL); in clone_hostent()
164 for (cp = src->h_aliases; *cp; ++cp) { in clone_hostent()
165 dest->h_aliases[cp - src->h_aliases] = strdup(*cp); in clone_hostent()
166 ATF_REQUIRE(dest->h_aliases[cp - src->h_aliases] != NULL); in clone_hostent()
197 if (ht->h_aliases != NULL) { in free_hostent()
198 for (cp = ht->h_aliases; *cp; ++cp) in free_hostent()
200 free(ht->h_aliases); in free_hostent()
230 c1 = ht1->h_aliases; in compare_hostent()
231 c2 = ht2->h_aliases; in compare_hostent()
233 if ((ht1->h_aliases == NULL || ht2->h_aliases == NULL) && in compare_hostent()
234 ht1->h_aliases != ht2->h_aliases) in compare_hostent()
414 if (ht->h_aliases != NULL) { in sdump_hostent()
415 if (*(ht->h_aliases) != NULL) { in sdump_hostent()
416 for (cp = ht->h_aliases; *cp; ++cp) { in sdump_hostent()
644 ht->h_aliases = sl1->sl_str; in hostent_read_snapshot_func()
696 if (ht->h_aliases == NULL) in hostent_test_correctness()
894 for (i = 0; result->h_aliases[i] != NULL; i++) { in hostent_test_getnameinfo_eq()
896 result->h_aliases[i]); in hostent_test_getnameinfo_eq()
897 if (strcmp(result->h_aliases[i], in hostent_test_getnameinfo_eq()