Lines Matching defs:ho
81 static void free_host(struct hostent *ho);
98 struct irs_ho *ho;
101 if (!(ho = memget(sizeof *ho))) {
105 memset(ho, 0x0, sizeof *ho);
108 memput(ho, sizeof *ho);
115 ho->private = pvt;
116 ho->close = ho_close;
117 ho->byname = ho_byname;
118 ho->byname2 = ho_byname2;
119 ho->byaddr = ho_byaddr;
120 ho->next = ho_next;
121 ho->rewind = ho_rewind;
122 ho->minimize = ho_minimize;
123 ho->addrinfo = ho_addrinfo;
125 return (ho);
171 struct hostent *ho = &pvt->host;
177 if (ho->h_name != NULL &&
178 strcmp(name, ho->h_name) == 0 &&
179 af == ho->h_addrtype) {
180 return (ho);
198 free_host(ho);
199 if (irp_unmarshall_ho(ho, body) != 0) {
200 ho = NULL;
203 ho = NULL;
210 return (ho);
224 struct hostent *ho = &pvt->host;
232 if (ho->h_name != NULL &&
233 af == ho->h_addrtype &&
234 len == ho->h_length) {
235 for (p = ho->h_addr_list ; *p != NULL ; p++) {
237 return (ho);
261 free_host(ho);
262 if (irp_unmarshall_ho(ho, body) != 0) {
263 ho = NULL;
266 ho = NULL;
273 return (ho);
287 struct hostent *ho = &pvt->host;
308 free_host(ho);
309 if (irp_unmarshall_ho(ho, body) != 0) {
310 ho = NULL;
313 ho = NULL;
320 return (ho);
367 * void free_host(struct hostent *ho)
372 free_host(struct hostent *ho) {
375 if (ho == NULL) {
379 if (ho->h_name != NULL)
380 free(ho->h_name);
382 if (ho->h_aliases != NULL) {
383 for (p = ho->h_aliases ; *p != NULL ; p++)
385 free(ho->h_aliases);
388 if (ho->h_addr_list != NULL) {
389 for (p = ho->h_addr_list ; *p != NULL ; p++)
391 free(ho->h_addr_list);