Home
last modified time | relevance | path

Searched refs:n_fds (Results 1 – 10 of 10) sorted by relevance

/external/dbus/dbus/
Ddbus-socket-set-poll.c38 int n_fds; member
85 ret->n_fds = 0; in _dbus_socket_set_poll_new()
125 for (i = 0; i < self->n_fds; i++) in socket_set_poll_add()
135 self, self->n_fds, self->n_reserved, self->n_allocated, in socket_set_poll_add()
146 fd, self, self->n_fds, self->n_reserved, self->n_allocated); in socket_set_poll_add()
147 _dbus_assert (self->n_reserved >= self->n_fds); in socket_set_poll_add()
154 self->fds[self->n_fds].fd = fd; in socket_set_poll_add()
155 self->fds[self->n_fds].events = watch_flags_to_poll_events (flags); in socket_set_poll_add()
156 self->n_fds++; in socket_set_poll_add()
170 for (i = 0; i < self->n_fds; i++) in socket_set_poll_enable()
[all …]
Ddbus-server-socket.c53 int n_fds; /**< Number of active file handles */ member
68 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_finalize()
173 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_handle_watch()
231 for (i = 0 ; i < socket_server->n_fds ; i++) in socket_disconnect()
281 int n_fds, in _dbus_server_new_for_socket() argument
295 socket_server->fds = dbus_new (int, n_fds); in _dbus_server_new_for_socket()
299 socket_server->watch = dbus_new0 (DBusWatch *, n_fds); in _dbus_server_new_for_socket()
303 for (i = 0 ; i < n_fds ; i++) in _dbus_server_new_for_socket()
315 socket_server->n_fds++; in _dbus_server_new_for_socket()
328 for (i = 0 ; i < n_fds ; i++) in _dbus_server_new_for_socket()
[all …]
Ddbus-sysdeps-unix.c270 int *n_fds) { in _dbus_read_socket_with_unix_fds() argument
277 *n_fds = 0; in _dbus_read_socket_with_unix_fds()
287 _dbus_assert (*n_fds >= 0); in _dbus_read_socket_with_unix_fds()
309 m.msg_controllen = CMSG_SPACE(*n_fds * sizeof(int)); in _dbus_read_socket_with_unix_fds()
357 _dbus_assert(cm->cmsg_len <= CMSG_LEN(*n_fds * sizeof(int))); in _dbus_read_socket_with_unix_fds()
358 *n_fds = (cm->cmsg_len - CMSG_LEN(0)) / sizeof(int); in _dbus_read_socket_with_unix_fds()
360 memcpy(fds, CMSG_DATA(cm), *n_fds * sizeof(int)); in _dbus_read_socket_with_unix_fds()
366 for (i = 0; i < *n_fds; i++) in _dbus_read_socket_with_unix_fds()
373 *n_fds = 0; in _dbus_read_socket_with_unix_fds()
394 int n_fds) { in _dbus_write_socket_with_unix_fds() argument
[all …]
Ddbus-message-internal.h55 unsigned *n_fds);
81 unsigned n_fds);
Ddbus-sysdeps.h150 int *n_fds);
156 int n_fds);
165 int n_fds);
307 int n_fds,
Ddbus-server-socket.h33 int n_fds,
Ddbus-sysdeps-win.c923 int n_fds, in _dbus_poll() argument
942 if (n_fds > DBUS_STACK_WSAEVENTS) in _dbus_poll()
943 pEvents = calloc(sizeof(WSAEVENT), n_fds); in _dbus_poll()
951 for (i = 0; i < n_fds; i++) in _dbus_poll()
975 for (i = 0; i < n_fds; i++) in _dbus_poll()
995 ready = WSAWaitForMultipleEvents (n_fds, pEvents, FALSE, timeout_milliseconds, FALSE); in _dbus_poll()
1009 else if (ready >= WSA_WAIT_EVENT_0 && ready < (int)(WSA_WAIT_EVENT_0 + n_fds)) in _dbus_poll()
1014 for (i = 0; i < n_fds; i++) in _dbus_poll()
1058 for(i = 0; i < n_fds; i++) in _dbus_poll()
1063 if (n_fds > DBUS_STACK_WSAEVENTS) in _dbus_poll()
[all …]
Ddbus-transport-socket.c787 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()
Ddbus-message.c228 unsigned *n_fds) in _dbus_message_get_unix_fds() argument
234 *n_fds = message->n_unix_fds; in _dbus_message_get_unix_fds()
237 *n_fds = 0; in _dbus_message_get_unix_fds()
594 close_unix_fds(int *fds, unsigned *n_fds) in close_unix_fds() argument
599 if (*n_fds <= 0) in close_unix_fds()
604 for (i = 0; i < *n_fds; i++) in close_unix_fds()
613 *n_fds = 0; in close_unix_fds()
3977 unsigned n_fds) in _dbus_message_loader_return_unix_fds() argument
3982 _dbus_assert(loader->n_unix_fds + n_fds <= loader->n_unix_fds_allocated); in _dbus_message_loader_return_unix_fds()
3984 loader->n_unix_fds += n_fds; in _dbus_message_loader_return_unix_fds()
Ddbus-mainloop.c678 _dbus_verbose (" polling on %d descriptors timeout %ld\n", n_fds, timeout); in _dbus_loop_iterate()