Lines Matching refs:hostlen
98 socklen_t hostlen
143 socklen_t hostlen, in getnameinfo() argument
153 return getnameinfo_inet(sa, salen, host, hostlen, in getnameinfo()
156 return getnameinfo_link(sa, salen, host, hostlen, in getnameinfo()
174 socklen_t hostlen, in getnameinfo_inet() argument
286 if (host == NULL || hostlen == 0) { in getnameinfo_inet()
307 hostlen, flags)) != 0) in getnameinfo_inet()
317 if (numaddrlen + 1 > hostlen) /* don't forget terminator */ in getnameinfo_inet()
319 strlcpy(host, numaddr, hostlen); in getnameinfo_inet()
338 if (strlen(hp->h_name) + 1 > hostlen) { in getnameinfo_inet()
341 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
352 hostlen, in getnameinfo_inet()
360 hostlen) == NULL) in getnameinfo_inet()
375 socklen_t hostlen, in ip6_parsenumeric() argument
390 if (numaddrlen + 1 > hostlen) /* don't forget terminator */ in ip6_parsenumeric()
392 strlcpy(host, numaddr, hostlen); in ip6_parsenumeric()
403 if ((size_t) zonelen + 1 + numaddrlen + 1 > hostlen) in ip6_parsenumeric()
481 socklen_t hostlen, argument
496 n = snprintf(host, hostlen, "link#%u", sdl->sdl_index);
497 if (n < 0 || (socklen_t) n > hostlen) {
511 n = snprintf(host, hostlen, "%u", CLLADDR(sdl)[0]);
513 n = snprintf(host, hostlen, "%u.%u",
515 if (n < 0 || (socklen_t) n >= hostlen) {
527 host, hostlen);
552 (size_t)sdl->sdl_alen, host, hostlen);
562 socklen_t hostlen argument
571 n = snprintf(outp, hostlen, "%s%02x",
573 if (n < 0 || (socklen_t) n >= hostlen) {
578 hostlen -= n;