Searched refs:p_addr (Results 1 – 4 of 4) sorted by relevance
/system/core/libcutils/ |
D | socket_local_client_unix.cpp | 46 struct sockaddr_un *p_addr, socklen_t *alen) in socket_make_sockaddr_un() argument 48 memset (p_addr, 0, sizeof (*p_addr)); in socket_make_sockaddr_un() 57 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un() 66 p_addr->sun_path[0] = 0; in socket_make_sockaddr_un() 67 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un() 73 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 78 strcpy(p_addr->sun_path, FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un() 79 strcat(p_addr->sun_path, name); in socket_make_sockaddr_un() 86 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un() 91 strcpy(p_addr->sun_path, ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un() [all …]
|
D | socket_local_unix.h | 37 struct sockaddr_un *p_addr, socklen_t *alen);
|
/system/bt/osi/src/socket_utils/ |
D | socket_local_client.cc | 35 struct sockaddr_un* p_addr, socklen_t* alen) { in osi_socket_make_sockaddr_un() argument 36 memset(p_addr, 0, sizeof(*p_addr)); in osi_socket_make_sockaddr_un() 45 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in osi_socket_make_sockaddr_un() 54 p_addr->sun_path[0] = 0; in osi_socket_make_sockaddr_un() 55 memcpy(p_addr->sun_path + 1, name, namelen); in osi_socket_make_sockaddr_un() 62 sizeof(*p_addr) - offsetof(struct sockaddr_un, sun_path) - 1) { in osi_socket_make_sockaddr_un() 66 strcpy(p_addr->sun_path, FILESYSTEM_SOCKET_PREFIX); in osi_socket_make_sockaddr_un() 67 strcat(p_addr->sun_path, name); in osi_socket_make_sockaddr_un() 75 sizeof(*p_addr) - offsetof(struct sockaddr_un, sun_path) - 1) { in osi_socket_make_sockaddr_un() 79 strcpy(p_addr->sun_path, ANDROID_RESERVED_SOCKET_PREFIX); in osi_socket_make_sockaddr_un() [all …]
|
/system/bt/osi/include/socket_utils/ |
D | socket_local.h | 36 struct sockaddr_un* p_addr, socklen_t* alen);
|