Searched defs:unix_sock (Results 1 - 2 of 2) sorted by relevance

/external/bluetooth/bluez/src/
H A Dsdpd-server.c54 static int l2cap_sock, unix_sock; variable
123 unix_sock = -1;
128 unix_sock = socket(PF_UNIX, SOCK_STREAM, 0);
129 if (unix_sock < 0) {
140 if (bind(unix_sock, (struct sockaddr *) &unaddr, sizeof(unaddr)) < 0) {
145 listen(unix_sock, 5);
149 unix_sock = android_get_control_socket("bluetooth");
150 if (unix_sock < 0) {
155 if (listen(unix_sock, 5)) {
160 info("Got Unix socket fd '%d' from environment", unix_sock);
[all...]
/external/bluetooth/bluez/audio/
H A Dunix.c96 static int unix_sock = -1; variable
1876 unix_sock = sk;
1892 if (unix_sock >= 0) {
1893 close(unix_sock);
1894 unix_sock = -1;

Completed in 83 milliseconds