Home
last modified time | relevance | path

Searched refs:p_addr (Results 1 – 5 of 5) sorted by relevance

/system/bt/osi/src/socket_utils/
Dsocket_local_client.cc35 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/core/libcutils/
Dsocket_local_client_unix.cpp46 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 …]
Dsocket_local_unix.h37 struct sockaddr_un *p_addr, socklen_t *alen);
/system/bt/osi/include/socket_utils/
Dsocket_local.h36 struct sockaddr_un* p_addr, socklen_t* alen);
/system/bt/test/stub/
Dosi.cc559 struct sockaddr_un* p_addr, socklen_t* alen) { in osi_socket_make_sockaddr_un() argument