Lines Matching refs:ht
263 struct hostent *ht;
283 ht = va_arg(ap, struct hostent *);
286 if (ht->h_name != NULL)
287 desired_size += strlen(ht->h_name) + 1;
289 if (ht->h_aliases != NULL) {
291 for (iter = ht->h_aliases; *iter; ++iter) {
300 if (ht->h_addr_list != NULL) {
302 for (iter = ht->h_addr_list; *iter; ++iter)
305 desired_size += addr_size * _ALIGN(ht->h_length);
315 memcpy(&new_ht, ht, sizeof(struct hostent));
369 struct hostent *ht;
391 ht = va_arg(ap, struct hostent *);
401 memcpy(ht, buffer, sizeof(struct hostent));
411 NS_APPLY_OFFSET(ht->h_name, orig_buf, p, char *);
412 if (ht->h_aliases != NULL) {
413 NS_APPLY_OFFSET(ht->h_aliases, orig_buf, p, char **);
415 for (iter = ht->h_aliases; *iter; ++iter)
419 if (ht->h_addr_list != NULL) {
420 NS_APPLY_OFFSET(ht->h_addr_list, orig_buf, p, char **);
422 for (iter = ht->h_addr_list; *iter; ++iter)
426 *((struct hostent **)retval) = ht;