Lines Matching refs:host
234 char *host, socklen_t hostlen, int flags) in gni_host_inet_name() argument
320 memcpy (host, h_name, len); in gni_host_inet_name()
335 char *host, socklen_t hostlen, int flags) in gni_host_inet_numeric() argument
340 if (inet_ntop (AF_INET6, &sin6p->sin6_addr, host, hostlen) == NULL) in gni_host_inet_numeric()
346 size_t used_hostlen = __strnlen (host, hostlen); in gni_host_inet_numeric()
348 char *scope_start = host + used_hostlen; in gni_host_inet_numeric()
367 if (inet_ntop (AF_INET, &sinp->sin_addr, host, hostlen) == NULL) in gni_host_inet_numeric()
377 char *host, socklen_t hostlen, int flags) in gni_host_inet() argument
382 (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host_inet()
391 (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host_inet()
398 char *host, socklen_t hostlen, int flags) in gni_host_local() argument
404 return checked_copy (host, hostlen, utsname.nodename); in gni_host_local()
410 return checked_copy (host, hostlen, "localhost"); in gni_host_local()
417 char *host, socklen_t hostlen, int flags) in gni_host() argument
423 return gni_host_inet (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host()
426 return gni_host_local (tmpbuf, sa, addrlen, host, hostlen, flags); in gni_host()
500 getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host, in getnameinfo() argument
511 if ((flags & NI_NAMEREQD) && host == NULL && serv == NULL) in getnameinfo()
535 if (host != NULL && hostlen > 0) in getnameinfo()
537 int result = gni_host (&tmpbuf, sa, addrlen, host, hostlen, flags); in getnameinfo()