Lines Matching refs:host

113 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen,  in getnameinfo()  argument
116 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo()
120 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet() argument
127 return getnameinfo_inet(sa, salen, host, hostlen, in android_getnameinfofornet()
130 return getnameinfo_local(sa, salen, host, hostlen, in android_getnameinfofornet()
144 char *host, socklen_t hostlen, char *serv, socklen_t servlen, in getnameinfo_local() argument
157 if (host && hostlen > 0) in getnameinfo_local()
158 strlcpy(host, sun->sun_path, in getnameinfo_local()
170 char *host, socklen_t hostlen, in getnameinfo_inet() argument
275 if (host == NULL || hostlen == 0) { in getnameinfo_inet()
295 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
308 strlcpy(host, numaddr, hostlen); in getnameinfo_inet()
333 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
343 if ((error = ip6_parsenumeric(sa, addr, host, in getnameinfo_inet()
351 if (inet_ntop(afd->a_af, addr, host, in getnameinfo_inet()
363 ip6_parsenumeric(const struct sockaddr *sa, const char *addr, char *host, in ip6_parsenumeric() argument
371 assert(host != NULL); in ip6_parsenumeric()
379 strlcpy(host, numaddr, hostlen); in ip6_parsenumeric()
393 memcpy(host + numaddrlen + 1, zonebuf, in ip6_parsenumeric()
395 host[numaddrlen] = SCOPE_DELIMITER; in ip6_parsenumeric()
396 host[numaddrlen + 1 + zonelen] = '\0'; in ip6_parsenumeric()