Lines Matching refs:ht
265 struct hostent *ht; in host_marshal_func() local
285 ht = va_arg(ap, struct hostent *); in host_marshal_func()
288 if (ht->h_name != NULL) in host_marshal_func()
289 desired_size += strlen(ht->h_name) + 1; in host_marshal_func()
291 if (ht->h_aliases != NULL) { in host_marshal_func()
293 for (iter = ht->h_aliases; *iter; ++iter) { in host_marshal_func()
302 if (ht->h_addr_list != NULL) { in host_marshal_func()
304 for (iter = ht->h_addr_list; *iter; ++iter) in host_marshal_func()
307 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func()
317 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func()
371 struct hostent *ht; in host_unmarshal_func() local
393 ht = va_arg(ap, struct hostent *); in host_unmarshal_func()
403 memcpy(ht, buffer, sizeof(struct hostent)); in host_unmarshal_func()
413 NS_APPLY_OFFSET(ht->h_name, orig_buf, p, char *); in host_unmarshal_func()
414 if (ht->h_aliases != NULL) { in host_unmarshal_func()
415 NS_APPLY_OFFSET(ht->h_aliases, orig_buf, p, char **); in host_unmarshal_func()
417 for (iter = ht->h_aliases; *iter; ++iter) in host_unmarshal_func()
421 if (ht->h_addr_list != NULL) { in host_unmarshal_func()
422 NS_APPLY_OFFSET(ht->h_addr_list, orig_buf, p, char **); in host_unmarshal_func()
424 for (iter = ht->h_addr_list; *iter; ++iter) in host_unmarshal_func()
428 *((struct hostent **)retval) = ht; in host_unmarshal_func()