Searched refs:n_fds (Results 1 – 12 of 12) sorted by relevance
/external/dbus/dbus/ |
D | dbus-server-socket.c | 53 int n_fds; /**< Number of active file handles */ member 68 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_finalize() 175 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_handle_watch() 233 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_disconnect() 279 int n_fds, in _dbus_server_new_for_socket() argument 293 socket_server->fds = dbus_new (int, n_fds); in _dbus_server_new_for_socket() 297 socket_server->watch = dbus_new0 (DBusWatch *, n_fds); in _dbus_server_new_for_socket() 301 for (i = 0 ; i < n_fds ; i++) in _dbus_server_new_for_socket() 313 socket_server->n_fds++; in _dbus_server_new_for_socket() 326 for (i = 0 ; i < n_fds ; i++) in _dbus_server_new_for_socket() [all …]
|
D | dbus-mainloop.c | 526 int n_fds; in _dbus_loop_iterate() local 541 n_fds = 0; in _dbus_loop_iterate() 577 n_fds = 0; in _dbus_loop_iterate() 607 watches_for_fds[n_fds] = wcb; in _dbus_loop_iterate() 613 fds[n_fds].fd = dbus_watch_get_socket (wcb->watch); in _dbus_loop_iterate() 614 fds[n_fds].revents = 0; in _dbus_loop_iterate() 615 fds[n_fds].events = 0; in _dbus_loop_iterate() 617 fds[n_fds].events |= _DBUS_POLLIN; in _dbus_loop_iterate() 619 fds[n_fds].events |= _DBUS_POLLOUT; in _dbus_loop_iterate() 623 fds[n_fds].fd, watch_flags_to_string (flags)); in _dbus_loop_iterate() [all …]
|
D | dbus-sysdeps-unix.c | 250 int *n_fds) { in _dbus_read_socket_with_unix_fds() argument 257 *n_fds = 0; in _dbus_read_socket_with_unix_fds() 267 _dbus_assert (*n_fds >= 0); in _dbus_read_socket_with_unix_fds() 289 m.msg_controllen = CMSG_SPACE(*n_fds * sizeof(int)); in _dbus_read_socket_with_unix_fds() 337 _dbus_assert(cm->cmsg_len <= CMSG_LEN(*n_fds * sizeof(int))); in _dbus_read_socket_with_unix_fds() 338 *n_fds = (cm->cmsg_len - CMSG_LEN(0)) / sizeof(int); in _dbus_read_socket_with_unix_fds() 340 memcpy(fds, CMSG_DATA(cm), *n_fds * sizeof(int)); in _dbus_read_socket_with_unix_fds() 346 for (i = 0; i < *n_fds; i++) in _dbus_read_socket_with_unix_fds() 353 *n_fds = 0; in _dbus_read_socket_with_unix_fds() 374 int n_fds) { in _dbus_write_socket_with_unix_fds() argument [all …]
|
D | dbus-message-internal.h | 40 unsigned *n_fds); 67 unsigned n_fds);
|
D | dbus-sysdeps.h | 147 int *n_fds); 153 int n_fds); 162 int n_fds); 301 int n_fds,
|
D | dbus-server-socket.h | 33 int n_fds,
|
D | dbus-sysdeps-win.c | 925 int n_fds, in _dbus_poll() argument 944 if (n_fds > DBUS_STACK_WSAEVENTS) in _dbus_poll() 945 pEvents = calloc(sizeof(WSAEVENT), n_fds); in _dbus_poll() 953 for (i = 0; i < n_fds; i++) in _dbus_poll() 978 for (i = 0; i < n_fds; i++) in _dbus_poll() 998 ready = WSAWaitForMultipleEvents (n_fds, pEvents, FALSE, timeout_milliseconds, FALSE); in _dbus_poll() 1012 else if (ready >= WSA_WAIT_EVENT_0 && ready < (int)(WSA_WAIT_EVENT_0 + n_fds)) in _dbus_poll() 1017 for (i = 0; i < n_fds; i++) in _dbus_poll() 1061 for(i = 0; i < n_fds; i++) in _dbus_poll() 1066 if (n_fds > DBUS_STACK_WSAEVENTS) in _dbus_poll() [all …]
|
D | dbus-transport-socket.c | 787 int *fds, n_fds; in do_reading() local 789 if (!_dbus_message_loader_get_unix_fds(transport->loader, &fds, &n_fds)) in do_reading() 800 fds, &n_fds); in do_reading() 802 if (bytes_read >= 0 && n_fds > 0) in do_reading() 803 _dbus_verbose("Read %i unix fds\n", n_fds); in do_reading() 805 _dbus_message_loader_return_unix_fds(transport->loader, fds, bytes_read < 0 ? 0 : n_fds); in do_reading()
|
D | dbus-message.c | 178 unsigned *n_fds) in _dbus_message_get_unix_fds() argument 184 *n_fds = message->n_unix_fds; in _dbus_message_get_unix_fds() 187 *n_fds = 0; in _dbus_message_get_unix_fds() 539 close_unix_fds(int *fds, unsigned *n_fds) in close_unix_fds() argument 544 if (*n_fds <= 0) in close_unix_fds() 549 for (i = 0; i < *n_fds; i++) in close_unix_fds() 558 *n_fds = 0; in close_unix_fds() 3861 unsigned n_fds) in _dbus_message_loader_return_unix_fds() argument 3866 _dbus_assert(loader->n_unix_fds + n_fds <= loader->n_unix_fds_allocated); in _dbus_message_loader_return_unix_fds() 3868 loader->n_unix_fds += n_fds; in _dbus_message_loader_return_unix_fds()
|
/external/bluetooth/glib/glib/ |
D | gmain.h | 139 gint n_fds); 143 gint n_fds);
|
D | gmain.c | 242 gint n_fds); 2189 gint n_fds) in g_main_context_query() argument 2205 if (n_poll < n_fds) in g_main_context_query() 2253 gint n_fds) in g_main_context_check() argument 2293 while (i < n_fds) in g_main_context_check() 2732 gint n_fds) in g_main_context_poll() argument 2742 if (n_fds || timeout != 0) in g_main_context_poll() 2748 context, n_fds, timeout); in g_main_context_poll() 2758 if ((*poll_func) (fds, n_fds, timeout) < 0 && errno != EINTR) in g_main_context_poll() 2774 n_fds, in g_main_context_poll() [all …]
|
D | giochannel.h | 327 gint n_fds,
|