Lines Matching full:ht
262 struct hostent *ht; in host_marshal_func() local
282 ht = va_arg(ap, struct hostent *); in host_marshal_func()
285 if (ht->h_name != NULL) in host_marshal_func()
286 desired_size += strlen(ht->h_name) + 1; in host_marshal_func()
288 if (ht->h_aliases != NULL) { in host_marshal_func()
290 for (iter = ht->h_aliases; *iter; ++iter) { in host_marshal_func()
299 if (ht->h_addr_list != NULL) { in host_marshal_func()
301 for (iter = ht->h_addr_list; *iter; ++iter) in host_marshal_func()
304 desired_size += addr_size * _ALIGN(ht->h_length); in host_marshal_func()
314 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func()
368 struct hostent *ht; in host_unmarshal_func() local
390 ht = va_arg(ap, struct hostent *); in host_unmarshal_func()
400 memcpy(ht, buffer, sizeof(struct hostent)); in host_unmarshal_func()
410 NS_APPLY_OFFSET(ht->h_name, orig_buf, p, char *); in host_unmarshal_func()
411 if (ht->h_aliases != NULL) { in host_unmarshal_func()
412 NS_APPLY_OFFSET(ht->h_aliases, orig_buf, p, char **); in host_unmarshal_func()
414 for (iter = ht->h_aliases; *iter; ++iter) in host_unmarshal_func()
418 if (ht->h_addr_list != NULL) { in host_unmarshal_func()
419 NS_APPLY_OFFSET(ht->h_addr_list, orig_buf, p, char **); in host_unmarshal_func()
421 for (iter = ht->h_addr_list; *iter; ++iter) in host_unmarshal_func()
425 *((struct hostent **)retval) = ht; in host_unmarshal_func()