Home | History | Annotate | Download | only in dbus

Lines Matching refs:listen_fd

560   int listen_fd;
574 listen_fd = android_get_control_socket (suffix);
575 if (listen_fd == -1)
592 listen_fd, error))
616 _dbus_close (listen_fd, NULL);
625 _dbus_close (listen_fd, NULL);
653 _dbus_close (listen_fd, NULL);
660 if (bind (listen_fd, (struct sockaddr*) &addr, _DBUS_STRUCT_OFFSET (struct sockaddr_un, sun_path) + path_len) < 0)
665 _dbus_close (listen_fd, NULL);
671 if (listen (listen_fd, 30 /* backlog */) < 0)
676 _dbus_close (listen_fd, NULL);
680 if (!_dbus_set_local_creds (listen_fd, TRUE))
685 close (listen_fd);
689 if (!_dbus_set_fd_nonblocking (listen_fd, error))
692 _dbus_close (listen_fd, NULL);
705 return listen_fd;
799 int listen_fd;
807 if (!_dbus_open_tcp_socket (&listen_fd, error))
821 _dbus_close (listen_fd, NULL);
832 if (bind (listen_fd, (struct sockaddr*) &addr, sizeof (struct sockaddr)))
837 _dbus_close (listen_fd, NULL);
841 if (listen (listen_fd, 30 /* backlog */) < 0)
846 _dbus_close (listen_fd, NULL);
850 if (!_dbus_set_fd_nonblocking (listen_fd, error))
852 _dbus_close (listen_fd, NULL);
856 return listen_fd;
1125 * @param listen_fd the listen file descriptor
1129 _dbus_accept (int listen_fd)
1138 client_fd = accept (listen_fd, &addr, &addrlen);