Lines Matching refs:phostent
105 struct hostent *phostent, *pres3; in main() local
183 phostent = (struct hostent*)malloc(sizeof(struct hostent)); in main()
185 pres3 = gethostbyname_r("blauwal", phostent, buffer, sizeof(buffer), h_errno); in main()
188 printf("Official Hostname: %s\n", phostent->h_name); in main()
189 for ( p = phostent->h_aliases; *p != NULL; p++ ) in main()
191 printf("Addresstype: %d\n", phostent->h_addrtype); in main()
192 printf("Address length: %d\n", phostent->h_length); in main()
193 if ( phostent->h_addrtype == AF_INET ) { in main()
194 for ( p = phostent->h_addr_list; *p != NULL; *p++ ) in main()
202 pres3 = gethostbyname_r("blauwal", phostent, smallbuf, sizeof(smallbuf), h_errno); in main()
216 pres3 = gethostbyname_r("blauwal", phostent, exactbuf, sizeof(exactbuf), &h_errno); in main()
226 pres3 = gethostbyname_r("nohost", phostent, buffer, sizeof(buffer), &h_errno); in main()
235 free(phostent); in main()