Lines Matching refs:unix_sock
54 static int l2cap_sock, unix_sock;
120 unix_sock = -1;
125 unix_sock = socket(PF_UNIX, SOCK_STREAM, 0);
126 if (unix_sock < 0) {
137 if (bind(unix_sock, (struct sockaddr *) &unaddr, sizeof(unaddr)) < 0) {
142 listen(unix_sock, 5);
146 unix_sock = android_get_control_socket("bluetooth");
147 if (unix_sock < 0) {
152 if (listen(unix_sock, 5)) {
157 info("Got Unix socket fd '%d' from environment", unix_sock);
217 } else if (data == &unix_sock) {
221 nsk = accept(unix_sock, (struct sockaddr *) &addr, &len);
274 if (compat && unix_sock > fileno(stderr)) {
275 unix_io = g_io_channel_unix_new(unix_sock);
279 io_accept_event, &unix_sock);