Lines Matching refs:hostlen
106 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen,
109 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags,
114 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid,
120 return getnameinfo_inet(sa, salen, host, hostlen,
123 return getnameinfo_local(sa, salen, host, hostlen,
137 char *host, socklen_t hostlen, char *serv, socklen_t servlen,
150 if (host && hostlen > 0)
152 MIN((socklen_t) sizeof(sun->sun_path) + 1, hostlen));
163 char *host, socklen_t hostlen,
266 if (host == NULL || hostlen == 0) {
271 * hostlen == 0 means that the caller does not want the result.
287 hostlen, flags)) != 0)
297 if (numaddrlen + 1 > (size_t)hostlen) /* don't forget terminator */
299 strlcpy(host, numaddr, hostlen);
321 if (strlen(hp->h_name) + 1 > (size_t)hostlen) {
324 strlcpy(host, hp->h_name, hostlen);
335 hostlen,
343 hostlen) == NULL)
355 socklen_t hostlen, int flags)
368 if (numaddrlen + 1 > (size_t)hostlen) /* don't forget terminator */
370 strlcpy(host, numaddr, hostlen);
381 if ((size_t) zonelen + 1 + numaddrlen + 1 > (size_t)hostlen)