Home
last modified time | relevance | path

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

/third_party/glib/gio/
Dgunixfdlist.c180 gint n_fds) in g_unix_fd_list_new_from_array() argument
184 g_return_val_if_fail (fds != NULL || n_fds == 0, NULL); in g_unix_fd_list_new_from_array()
186 if (n_fds == -1) in g_unix_fd_list_new_from_array()
187 for (n_fds = 0; fds[n_fds] != -1; n_fds++); in g_unix_fd_list_new_from_array()
190 list->priv->fds = g_new (gint, n_fds + 1); in g_unix_fd_list_new_from_array()
191 list->priv->nfd = n_fds; in g_unix_fd_list_new_from_array()
193 if (n_fds > 0) in g_unix_fd_list_new_from_array()
194 memcpy (list->priv->fds, fds, sizeof (gint) * n_fds); in g_unix_fd_list_new_from_array()
195 list->priv->fds[n_fds] = -1; in g_unix_fd_list_new_from_array()
Dgunixfdmessage.c143 gint n_fds; in g_unix_fd_message_serialize() local
145 fds = g_unix_fd_list_peek_fds (fd_message->priv->list, &n_fds); in g_unix_fd_message_serialize()
146 memcpy (data, fds, sizeof (gint) * n_fds); in g_unix_fd_message_serialize()
Dgunixfdlist.h70 gint n_fds);
Dgapplicationimpl-dbus.c927 gint *fds, n_fds, i; in g_dbus_command_line_get_stdin() local
929 fds = g_unix_fd_list_steal_fds (fd_list, &n_fds); in g_dbus_command_line_get_stdin()
931 for (i = 1; i < n_fds; i++) in g_dbus_command_line_get_stdin()
/third_party/glib/glib/tests/
Dtimeout.c115 gint priority, timeout_, n_fds; in test_far_future_ready_time() local
126 n_fds = 0; in test_far_future_ready_time()
127 n_fds = g_main_context_query (context, priority, &timeout_, NULL, n_fds); in test_far_future_ready_time()
129 g_assert_cmpint (n_fds, >=, 0); in test_far_future_ready_time()
Dspawn-singlethread.c439 const guint n_fds = 10; in test_spawn_fd_assignment_clash() local
440 gint source_fds[n_fds]; in test_spawn_fd_assignment_clash()
441 gint target_fds[n_fds]; in test_spawn_fd_assignment_clash()
452 for (i = 0; i < (n_fds - 1); ++i) in test_spawn_fd_assignment_clash()
457 target_fds[i] = source + n_fds; in test_spawn_fd_assignment_clash()
461 target_fds[i] = tmp_fd + n_fds; in test_spawn_fd_assignment_clash()
465 for (i = 0; i < n_fds; i++) in test_spawn_fd_assignment_clash()
472 source_fds, target_fds, n_fds, in test_spawn_fd_assignment_clash()
487 for (i = 0; i < n_fds; i++) in test_spawn_fd_assignment_clash()
/third_party/pulseaudio/src/pulsecore/
Drtpoll.c402 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds) { in pa_rtpoll_item_new() argument
412 i->n_pollfd = n_fds; in pa_rtpoll_item_new()
432 if (n_fds > 0) { in pa_rtpoll_item_new()
434 p->n_pollfd_used += n_fds; in pa_rtpoll_item_new()
452 struct pollfd *pa_rtpoll_item_get_pollfd(pa_rtpoll_item *i, unsigned *n_fds) { in pa_rtpoll_item_get_pollfd() argument
459 if (n_fds) in pa_rtpoll_item_get_pollfd()
460 *n_fds = i->n_pollfd; in pa_rtpoll_item_get_pollfd()
Drtpoll.h72 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds);
78 struct pollfd *pa_rtpoll_item_get_pollfd(pa_rtpoll_item *i, unsigned *n_fds);
/third_party/glib/glib/
Dgspawn.c193 gsize n_fds,
874 gsize n_fds, in g_spawn_async_with_pipes_and_fds() argument
917 n_fds, in g_spawn_async_with_pipes_and_fds()
1562 gsize n_fds, in do_exec() argument
1657 if (child_setup == NULL && n_fds == 0) in do_exec()
1694 if (n_fds > 0) in do_exec()
1696 for (i = 0; i < n_fds; i++) in do_exec()
1701 for (i = 0; i < n_fds; i++) in do_exec()
1986 gsize n_fds, in fork_exec() argument
2043 !search_path_from_envp && child_setup == NULL && n_fds == 0) in fork_exec()
[all …]
Dglib.stp.in290 * @fds: array of FDs ready to be polled, of length @n_fds
291 * @n_fds: number of FDs ready to be polled
298 n_fds = $arg4;
299 …main_context_after_query(context=%p) -> timeout=%u,fds=%p,n_fds=%u", context, timeout, fds, n_fds);
306 * @fds: array of FDs to check, of length @n_fds
307 * @n_fds: number of FDs to check
314 n_fds = $arg4;
315 …ext_before_check(context=%p, max_priority=%i, fds=%p, n_fds=%u)", context, max_priority, fds, n_fd…
Dgmain.c402 gint n_fds);
3765 gint n_fds) in g_main_context_query() argument
3799 if (n_poll - 1 < n_fds) in g_main_context_query()
3804 if (n_poll < n_fds) in g_main_context_query()
3856 gint n_fds) in g_main_context_check() argument
3874 TRACE (GLIB_MAIN_CONTEXT_BEFORE_CHECK (context, max_priority, fds, n_fds)); in g_main_context_check()
3876 for (i = 0; i < n_fds; i++) in g_main_context_check()
3906 while (pollrec && i < n_fds) in g_main_context_check()
4405 gint n_fds) in g_main_context_poll() argument
4415 if (n_fds || timeout != 0) in g_main_context_poll()
[all …]
Dgspawn.h228 gsize n_fds,
Dgmain.h406 gint n_fds);
411 gint n_fds);
Dgiochannel.h353 gint n_fds,
Dgspawn-win32.c1262 gsize n_fds, in g_spawn_async_with_pipes_and_fds() argument
1283 if (n_fds != 0) in g_spawn_async_with_pipes_and_fds()
Dgiowin32.c2164 gint n_fds, in g_io_channel_win32_poll() argument
2167 g_return_val_if_fail (n_fds >= 0, 0); in g_io_channel_win32_poll()
2169 return g_poll (fds, n_fds, timeout); in g_io_channel_win32_poll()
/third_party/pulseaudio/src/daemon/
Dmain.c390 int n_fds = 0, *passed_fds = NULL; in main() local
448 n_fds = sd_listen_fds(0); in main()
449 if (n_fds > 0) { in main()
450 int i = n_fds; in main()
452 passed_fds = pa_xnew(int, n_fds+2); in main()
453 passed_fds[n_fds] = passed_fds[n_fds+1] = -1; in main()
460 n_fds = 0; in main()
468 passed_fds[n_fds] = passed_fd; in main()
Dohos_pa_main.c408 int n_fds = 0, *passed_fds = NULL; in ohos_pa_main() local
466 n_fds = sd_listen_fds(0); in ohos_pa_main()
467 if (n_fds > 0) { in ohos_pa_main()
468 int i = n_fds; in ohos_pa_main()
470 passed_fds = pa_xnew(int, n_fds+2); in ohos_pa_main()
471 passed_fds[n_fds] = passed_fds[n_fds+1] = -1; in ohos_pa_main()
478 n_fds = 0; in ohos_pa_main()
486 passed_fds[n_fds] = passed_fd; in ohos_pa_main()
/third_party/python/Modules/
Dselectmodule.c750 int n_fds; member
765 if (!self->n_fds) return 0; in devpoll_flush()
767 size = sizeof(struct pollfd)*self->n_fds; in devpoll_flush()
768 self->n_fds = 0; in devpoll_flush()
799 self->fds[self->n_fds].fd = fd; in internal_devpoll_register()
800 self->fds[self->n_fds].events = POLLREMOVE; in internal_devpoll_register()
802 if (++self->n_fds == self->max_n_fds) { in internal_devpoll_register()
808 self->fds[self->n_fds].fd = fd; in internal_devpoll_register()
809 self->fds[self->n_fds].events = (signed short)events; in internal_devpoll_register()
811 if (++self->n_fds == self->max_n_fds) { in internal_devpoll_register()
[all …]
/third_party/pulseaudio/src/modules/alsa/
Dalsa-mixer.c541 unsigned n_fds; in rtpoll_work_cb() local
549 p = pa_rtpoll_item_get_pollfd(i, &n_fds); in rtpoll_work_cb()
551 if ((err = snd_mixer_poll_descriptors_revents(pd->mixer, p, n_fds, &revents)) < 0) { in rtpoll_work_cb()
/third_party/glib/
DNEWS3980 756099 g_main_context_query(): Annotate @n_fds as (in) parameter