Lines Matching refs:ho
83 static void free_host(struct hostent *ho);
100 struct irs_ho *ho;
103 if (!(ho = memget(sizeof *ho))) {
107 memset(ho, 0x0, sizeof *ho);
110 memput(ho, sizeof *ho);
117 ho->private = pvt;
118 ho->close = ho_close;
119 ho->byname = ho_byname;
120 ho->byname2 = ho_byname2;
121 ho->byaddr = ho_byaddr;
122 ho->next = ho_next;
123 ho->rewind = ho_rewind;
124 ho->minimize = ho_minimize;
125 ho->addrinfo = ho_addrinfo;
127 return (ho);
173 struct hostent *ho = &pvt->host;
179 if (ho->h_name != NULL &&
180 strcmp(name, ho->h_name) == 0 &&
181 af == ho->h_addrtype) {
182 return (ho);
200 free_host(ho);
201 if (irp_unmarshall_ho(ho, body) != 0) {
202 ho = NULL;
205 ho = NULL;
212 return (ho);
226 struct hostent *ho = &pvt->host;
234 if (ho->h_name != NULL &&
235 af == ho->h_addrtype &&
236 len == ho->h_length) {
237 for (p = ho->h_addr_list ; *p != NULL ; p++) {
239 return (ho);
263 free_host(ho);
264 if (irp_unmarshall_ho(ho, body) != 0) {
265 ho = NULL;
268 ho = NULL;
275 return (ho);
289 struct hostent *ho = &pvt->host;
310 free_host(ho);
311 if (irp_unmarshall_ho(ho, body) != 0) {
312 ho = NULL;
315 ho = NULL;
322 return (ho);
369 * void free_host(struct hostent *ho)
374 free_host(struct hostent *ho) {
377 if (ho == NULL) {
381 if (ho->h_name != NULL)
382 free(ho->h_name);
384 if (ho->h_aliases != NULL) {
385 for (p = ho->h_aliases ; *p != NULL ; p++)
387 free(ho->h_aliases);
390 if (ho->h_addr_list != NULL) {
391 for (p = ho->h_addr_list ; *p != NULL ; p++)
393 free(ho->h_addr_list);