Lines Matching defs:hp
180 struct hostent *hp;
727 hp = myhostname(jbuf, sizeof(jbuf));
758 if (hp != NULL)
760 for (av = hp->h_aliases; av != NULL && *av != NULL; av++)
767 for (i = 0; i >= 0 && hp->h_addr_list[i] != NULL; i++)
780 switch (hp->h_addrtype)
784 if (hp->h_length != INADDRSZ)
787 memmove(&ia, hp->h_addr_list[i], INADDRSZ);
795 if (hp->h_length != IN6ADDRSZ)
798 memmove(&ia6, hp->h_addr_list[i], IN6ADDRSZ);
815 freehostent(hp);
816 hp = NULL;
3565 struct hostent *hp;
3567 hp = myhostname(hostbuf, sizeof(hostbuf));
3569 if (hp != NULL)
3571 freehostent(hp);
3572 hp = NULL;