Searched refs:phostent (Results 1 – 1 of 1) sorted by relevance
/aoo4110/main/sal/workben/ |
H A D | tgetpwnam.cxx | 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() 226 pres3 = gethostbyname_r("nohost", phostent, buffer, sizeof(buffer), &h_errno); in main() [all …]
|
Completed in 9 milliseconds