Lines Matching defs:he1
276 struct hostent he, *he1 = NULL, *he2 = NULL, *he3;
333 he1 = copyandmerge(he2, NULL, af, error_num);
334 if (he1 == NULL)
345 (he1 == NULL || (flags & AI_ALL) != 0)))) {
347 if (he1 == NULL && he2 == NULL) {
356 he3 = copyandmerge(he1, he2, af, error_num);
358 if (he1 != NULL)
359 freehostent(he1);
365 struct hostent *he1, *he2;
409 he1 = gethostbyaddr_p(cp, 4, AF_INET, net_data);
410 if (he1 == NULL) {
414 he2 = copyandmerge(he1, NULL, af, error_num);
421 memcpy(he1->h_addr, src, len);
433 he1 = gethostbyaddr_p(src, 16, AF_INET6, net_data);
434 if (he1 == NULL) {
438 return (copyandmerge(he1, NULL, af, error_num));
815 copyandmerge(struct hostent *he1, struct hostent *he2, int af, int *error_num) {
825 if (he1 != NULL) {
826 cpp = he1->h_addr_list;
831 cpp = he1->h_aliases;
844 if (he1 == NULL) {
869 if (he1 != NULL) {
870 cpp = he1->h_addr_list;
876 if (af == AF_INET6 && he1->h_addrtype == AF_INET) {
918 cpp = (he1 != NULL) ? he1->h_aliases : he2->h_aliases;
930 he->h_name = memget(strlen((he1 != NULL) ?
931 he1->h_name : he2->h_name) + 1);
934 strcpy(he->h_name, (he1 != NULL) ? he1->h_name : he2->h_name);