Lines Matching defs:hp2
292 struct hostent *hp2 = gethostbyname2(name, AF_INET);
294 if (hp2 == NULL)
297 hp = _hpmapv6(hp2, errp);
299 if (hp2 && strcmp(hp->h_name, hp2->h_name) == 0) {
301 hp = _hpmerge(hpb, hp2, errp);
500 _hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp)
510 return _hpcopy(hp2, errp);
511 if (hp2 == NULL)
514 #define HP(i) (i == 1 ? hp1 : hp2)
516 hp->h_name = (hp1->h_name != NULL ? hp1->h_name : hp2->h_name);
532 if (hp1->h_length != hp2->h_length) {