Home
last modified time | relevance | path

Searched refs:client_fd (Results 1 – 6 of 6) sorted by relevance

/external/dbus/dbus/
Ddbus-server-socket.c87 int client_fd) in handle_new_client_fd_and_unlock() argument
96 _dbus_verbose ("Creating new client connection with fd %d\n", client_fd); in handle_new_client_fd_and_unlock()
100 if (!_dbus_set_fd_nonblocking (client_fd, NULL)) in handle_new_client_fd_and_unlock()
106 transport = _dbus_transport_new_for_socket (client_fd, &server->guid_hex, FALSE); in handle_new_client_fd_and_unlock()
109 _dbus_close_socket (client_fd, NULL); in handle_new_client_fd_and_unlock()
187 int client_fd; in socket_handle_watch() local
193 client_fd = _dbus_accept_with_noncefile (listen_fd, socket_server->noncefile); in socket_handle_watch()
195 client_fd = _dbus_accept (listen_fd); in socket_handle_watch()
197 if (client_fd < 0) in socket_handle_watch()
211 if (!handle_new_client_fd_and_unlock (server, client_fd)) in socket_handle_watch()
Ddbus-server-debug-pipe.c213 int client_fd, server_fd; in _dbus_transport_debug_pipe_new() local
248 if (!_dbus_full_duplex_pipe (&client_fd, &server_fd, FALSE, in _dbus_transport_debug_pipe_new()
257 client_transport = _dbus_transport_new_for_socket (client_fd, in _dbus_transport_debug_pipe_new()
261 _dbus_close_socket (client_fd, NULL); in _dbus_transport_debug_pipe_new()
270 client_fd = -1; in _dbus_transport_debug_pipe_new()
Ddbus-sysdeps-unix.c1580 _dbus_read_credentials_socket (int client_fd, in _dbus_read_credentials_socket() argument
1639 bytes_read = recvmsg (client_fd, &msg, 0); in _dbus_read_credentials_socket()
1689 if (getsockopt (client_fd, SOL_SOCKET, SO_PEERCRED, &cr, &cr_len) == 0 && in _dbus_read_credentials_socket()
1711 _dbus_set_local_creds (client_fd, FALSE); in _dbus_read_credentials_socket()
1715 if (getpeereid (client_fd, &euid, &egid) == 0) in _dbus_read_credentials_socket()
1725 if (getpeerucred (client_fd, &ucred) == 0) in _dbus_read_credentials_socket()
1841 int client_fd; in _dbus_accept() local
1854 client_fd = accept4 (listen_fd, &addr, &addrlen, SOCK_CLOEXEC); in _dbus_accept()
1855 cloexec_done = client_fd >= 0; in _dbus_accept()
1857 if (client_fd < 0 && errno == ENOSYS) in _dbus_accept()
[all …]
Ddbus-sysdeps-unix.h78 dbus_bool_t _dbus_read_credentials (int client_fd,
Ddbus-sysdeps-win.c1584 int client_fd; in _dbus_accept() local
1587 client_fd = accept (listen_fd, NULL, NULL); in _dbus_accept()
1589 if (DBUS_SOCKET_IS_INVALID (client_fd)) in _dbus_accept()
1596 _dbus_verbose ("client fd %d accepted\n", client_fd); in _dbus_accept()
1598 return client_fd; in _dbus_accept()
Ddbus-sysdeps.h184 dbus_bool_t _dbus_read_credentials_socket (int client_fd,