Home
last modified time | relevance | path

Searched refs:sa_un (Results 1 – 2 of 2) sorted by relevance

/external/curl/lib/
Dcurl_addrinfo.c498 struct sockaddr_un *sa_un; in Curl_unix2addr() local
512 sa_un = (void *) ai->ai_addr; in Curl_unix2addr()
513 sa_un->sun_family = AF_UNIX; in Curl_unix2addr()
517 if(path_len > sizeof(sa_un->sun_path)) { in Curl_unix2addr()
531 memcpy(sa_un->sun_path + 1, path, path_len - 1); in Curl_unix2addr()
533 memcpy(sa_un->sun_path, path, path_len); /* copy NUL byte */ in Curl_unix2addr()
/external/strace/
Dsockaddr.c72 const struct sockaddr_un *const sa_un = buf; in print_sockaddr_data_un() local
73 const int un_len = addrlen > (int) sizeof(*sa_un) in print_sockaddr_data_un()
74 ? (int) sizeof(*sa_un) : addrlen; in print_sockaddr_data_un()
78 if (sa_un->sun_path[0]) { in print_sockaddr_data_un()
79 print_quoted_string(sa_un->sun_path, path_len + 1, in print_sockaddr_data_un()
83 print_quoted_string(sa_un->sun_path + 1, path_len - 1, 0); in print_sockaddr_data_un()