Lines Matching refs:salen
440 socklen_t salen, in sockaddr_pretty() argument
450 assert(salen >= sizeof(sa->sa.sa_family)); in sockaddr_pretty()
519 if (salen <= offsetof(struct sockaddr_un, sun_path) || in sockaddr_pretty()
520 … (sa->un.sun_path[0] == 0 && salen == offsetof(struct sockaddr_un, sun_path) + 1)) in sockaddr_pretty()
529 size_t path_len = salen - offsetof(struct sockaddr_un, sun_path); in sockaddr_pretty()
579 socklen_t salen = sizeof(sa); in getpeername_pretty() local
585 if (getpeername(fd, &sa.sa, &salen) < 0) in getpeername_pretty()
607 return sockaddr_pretty(&sa.sa, salen, true, include_port, ret); in getpeername_pretty()
612 socklen_t salen = sizeof(sa); in getsockname_pretty() local
617 if (getsockname(fd, &sa.sa, &salen) < 0) in getsockname_pretty()
625 return sockaddr_pretty(&sa.sa, salen, false, true, ret); in getsockname_pretty()
628 int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret) { in socknameinfo_pretty() argument
634 r = getnameinfo(&sa->sa, salen, host, sizeof(host), NULL, 0, IDN_FLAGS); in socknameinfo_pretty()
638 r = sockaddr_pretty(&sa->sa, salen, true, true, &ret); in socknameinfo_pretty()