Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 14 of 14) sorted by relevance

/system/bt/osi/src/socket_utils/
Dsocket_local_client.c35 struct sockaddr_un *p_addr, socklen_t *alen) { in osi_socket_make_sockaddr_un() argument
99 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in osi_socket_make_sockaddr_un()
115 socklen_t alen; in osi_socket_local_client_connect() local
118 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen); in osi_socket_local_client_connect()
124 OSI_NO_INTR(err = connect(fd, (struct sockaddr *)&addr, alen)); in osi_socket_local_client_connect()
Dsocket_local_server.c44 socklen_t alen; local
48 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
68 if (bind(s, (struct sockaddr *)&addr, alen) < 0) {
/system/core/libcutils/
Dsocket_local_client_unix.c48 struct sockaddr_un *p_addr, socklen_t *alen) in socket_make_sockaddr_un() argument
113 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in socket_make_sockaddr_un()
130 socklen_t alen; in socket_local_client_connect() local
133 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen); in socket_local_client_connect()
139 if(connect(fd, (struct sockaddr *) &addr, alen) < 0) { in socket_local_client_connect()
Dsocket_local_server_unix.c58 socklen_t alen; local
62 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
82 if(bind(s, (struct sockaddr *) &addr, alen) < 0) {
Dsocket_local_unix.h37 struct sockaddr_un *p_addr, socklen_t *alen);
/system/core/adb/
Dadb_listeners.cpp39 socklen_t alen = sizeof(ss); in ss_listener_event_func() local
40 int fd = adb_socket_accept(_fd, addrp, &alen); in ss_listener_event_func()
64 socklen_t alen; in listener_event_func() local
67 alen = sizeof(ss); in listener_event_func()
68 fd = adb_socket_accept(_fd, addrp, &alen); in listener_event_func()
Dadb_auth_client.cpp230 socklen_t alen; in adb_auth_listener() local
233 alen = sizeof(addr); in adb_auth_listener()
235 s = adb_socket_accept(fd, reinterpret_cast<sockaddr*>(&addr), &alen); in adb_auth_listener()
Dtransport_local.cpp150 socklen_t alen; in server_socket_thread() local
168 alen = sizeof(ss); in server_socket_thread()
170 fd = adb_socket_accept(serverfd, addrp, &alen); in server_socket_thread()
Dsocket_test.cpp250 socklen_t alen; in TEST_F() local
251 alen = sizeof(addr); in TEST_F()
252 int accept_fd = adb_socket_accept(listen_fd, &addr, &alen); in TEST_F()
/system/bt/osi/include/socket_utils/
Dsocket_local.h36 struct sockaddr_un *p_addr, socklen_t *alen);
/system/core/liblog/
Dlogd_reader.c138 socklen_t *alen) in socket_make_sockaddr_un() argument
204 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in socket_make_sockaddr_un()
221 socklen_t alen; in socket_local_client_connect() local
224 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen); in socket_local_client_connect()
230 if(connect(fd, (struct sockaddr *) &addr, alen) < 0) { in socket_local_client_connect()
/system/core/libsysutils/src/
DSocketListener.cpp204 socklen_t alen; in runListener() local
208 alen = sizeof(ss); in runListener()
209 c = accept(mSock, addrp, &alen); in runListener()
/system/core/lmkd/
Dlmkd.c402 socklen_t alen; in ctrl_connect_handler() local
410 alen = sizeof(ss); in ctrl_connect_handler()
411 ctrl_dfd = accept(ctrl_lfd, addrp, &alen); in ctrl_connect_handler()
/system/core/debuggerd/
Ddebuggerd.cpp829 socklen_t alen = sizeof(ss); in do_server() local
832 int fd = accept4(s, addrp, &alen, SOCK_CLOEXEC); in do_server()