Lines Matching refs:hostent

58 static int gethostbyname_internal(const char *, int, struct hostent *, char *,
59 size_t, struct hostent **, int *, res_state);
73 NETDB_THREAD_ALLOC(hostent)
102 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf,
270 struct hostent *ht;
272 struct hostent new_ht;
290 ht = va_arg(ap, struct hostent *);
292 desired_size = _ALIGNBYTES + sizeof(struct hostent) + sizeof(char *);
322 memcpy(&new_ht, ht, sizeof(struct hostent));
326 p = buffer + sizeof(struct hostent) + sizeof(char *);
327 memcpy(buffer + sizeof(struct hostent), &p, sizeof(char *));
364 memcpy(buffer, &new_ht, sizeof(struct hostent));
376 struct hostent *ht;
398 ht = va_arg(ap, struct hostent *);
403 buffer_size - sizeof(struct hostent) - sizeof(char *)) {
408 memcpy(ht, buffer, sizeof(struct hostent));
409 memcpy(&p, buffer + sizeof(struct hostent), sizeof(char *));
412 memcpy(orig_buf, buffer + sizeof(struct hostent) + sizeof(char *) +
414 buffer_size - sizeof(struct hostent) - sizeof(char *) -
433 *((struct hostent **)retval) = ht;
439 fakeaddr(const char *name, int af, struct hostent *hp, char *buf,
443 struct hostent he;
492 gethostbyname_r(const char *name, struct hostent *he, char *buffer,
493 size_t buflen, struct hostent **result, int *h_errnop)
516 gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer,
517 size_t buflen, struct hostent **result, int *h_errnop)
531 gethostbyname_internal(const char *name, int af, struct hostent *hp, char *buf,
532 size_t buflen, struct hostent **result, int *h_errnop, res_state statp)
591 gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp,
592 char *buf, size_t buflen, struct hostent **result, int *h_errnop)
669 struct hostent *
673 struct hostent *rval;
684 struct hostent *
688 struct hostent *rval;
699 struct hostent *
703 struct hostent *rval;