Home
last modified time | relevance | path

Searched refs:kevent (Results 1 – 23 of 23) sorted by relevance

/third_party/libuv/src/unix/
Dkqueue.c95 struct kevent ev; in uv__io_check_fd()
100 if (kevent(loop->backend_fd, &ev, 1, NULL, 0, NULL)) in uv__io_check_fd()
105 if (kevent(loop->backend_fd, &ev, 1, NULL, 0, NULL)) in uv__io_check_fd()
113 struct kevent events[1024]; in uv__io_poll()
114 struct kevent* ev; in uv__io_poll()
168 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
178 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
188 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
231 nfds = kevent(loop->backend_fd, in uv__io_poll()
312 struct kevent events[1]; in uv__io_poll()
[all …]
Dprocess.c1009 struct kevent event; in uv_spawn()
1011 if (kevent(loop->backend_fd, &event, 1, NULL, 0, NULL)) { in uv_spawn()
Dstream.c269 struct kevent filter[1]; in uv__stream_try_select()
270 struct kevent events[1]; in uv__stream_try_select()
295 ret = kevent(kq, filter, 1, events, 1, &timeout); in uv__stream_try_select()
/third_party/python/Lib/test/
Dtest_kqueue.py29 ev = select.kevent(fd)
30 other = select.kevent(1000)
46 ev = select.kevent(fd, select.KQ_FILTER_WRITE)
56 ev = select.kevent(fd, select.KQ_FILTER_WRITE, select.KQ_EV_ONESHOT)
66 ev = select.kevent(1, 2, 3, 4, 5, 6)
77 ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum)
89 ev = select.kevent(0, 1, bignum)
101 ev = select.kevent(0, 1, 2, bignum)
128 ev = select.kevent(server.fileno(),
132 ev = select.kevent(server.fileno(),
[all …]
/third_party/boost/libs/asio/include/boost/asio/detail/impl/
Dkqueue_reactor.ipp57 struct kevent events[1];
60 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
105 struct kevent events[2];
108 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
126 if (::kevent(kqueue_fd_, events, state->num_kevents_, 0, 0, 0) == -1)
177 struct kevent events[1];
180 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
230 struct kevent events[2];
235 if (::kevent(kqueue_fd_, events, num_kevents[op_type], 0, 0, 0) != -1)
253 struct kevent events[2];
[all …]
/third_party/boost/boost/asio/detail/impl/
Dkqueue_reactor.ipp57 struct kevent events[1];
60 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
105 struct kevent events[2];
108 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
126 if (::kevent(kqueue_fd_, events, state->num_kevents_, 0, 0, 0) == -1)
177 struct kevent events[1];
180 if (::kevent(kqueue_fd_, events, 1, 0, 0, 0) == -1)
230 struct kevent events[2];
235 if (::kevent(kqueue_fd_, events, num_kevents[op_type], 0, 0, 0) != -1)
253 struct kevent events[2];
[all …]
/third_party/glib/gio/inotify/
Dinotify-kernel.c61 ik_event_new (struct inotify_event *kevent, in ik_event_new() argument
66 event->wd = kevent->wd; in ik_event_new()
67 event->mask = kevent->mask; in ik_event_new()
68 event->cookie = kevent->cookie; in ik_event_new()
69 event->len = kevent->len; in ik_event_new()
72 event->name = g_strdup (kevent->name); in ik_event_new()
259 struct inotify_event *kevent = (struct inotify_event *) (buffer + offset); in ik_source_dispatch() local
262 event = ik_event_new (kevent, now); in ik_source_dispatch()
/third_party/libinput/test/
Dtest-keyboard.c109 struct libinput_event_keyboard *kevent; in START_TEST() local
149 kevent = libinput_event_get_keyboard_event(event); in START_TEST()
150 ck_assert_int_eq(libinput_event_keyboard_get_key(kevent), in START_TEST()
152 ck_assert_int_eq(libinput_event_keyboard_get_key_state(kevent), in START_TEST()
171 struct libinput_event_keyboard *kevent; in START_TEST() local
239 kevent = libinput_event_get_keyboard_event(event); in START_TEST()
240 ck_assert_int_eq(libinput_event_keyboard_get_key_state(kevent), in START_TEST()
242 key = libinput_event_keyboard_get_key(kevent); in START_TEST()
Dlitest.c3560 struct libinput_event_keyboard *kevent; in litest_is_keyboard_event() local
3566 kevent = libinput_event_get_keyboard_event(event); in litest_is_keyboard_event()
3567 litest_assert_ptr_notnull(kevent); in litest_is_keyboard_event()
3569 litest_assert_int_eq(libinput_event_keyboard_get_key(kevent), key); in litest_is_keyboard_event()
3570 litest_assert_int_eq(libinput_event_keyboard_get_key_state(kevent), in litest_is_keyboard_event()
3572 return kevent; in litest_is_keyboard_event()
/third_party/glib/gio/
Dgiounix-private.c105 struct kevent ev; in _g_fd_is_pollable()
118 G_TEMP_FAILURE_RETRY (kevent (kfd, &ev, 1, NULL, 0, NULL)) == 0; in _g_fd_is_pollable()
Dmeson.build760 # kevent
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/indic/
DIndicInputMethodImpl.java183 void handleKeyTyped(KeyEvent kevent) { in handleKeyTyped() argument
184 char keyChar = kevent.getKeyChar(); in handleKeyTyped()
201 kevent.consume(); in handleKeyTyped()
284 kevent.consume();// prevent client from getting this event. in handleKeyTyped()
/third_party/glib/gio/kqueue/
Dgkqueuefilemonitor.c324 struct kevent ev; in g_kqueue_file_monitor_callback()
334 while (kevent(fd, NULL, 0, &ev, 1, &ts) > 0) in g_kqueue_file_monitor_callback()
556 struct kevent ev; in _kqsub_cancel()
563 if (kevent (kq_queue, &ev, 1, NULL, 0, NULL) == -1) in _kqsub_cancel()
584 struct kevent ev; in _kqsub_start_watching()
608 if (kevent (kq_queue, &ev, 1, NULL, 0, NULL) == -1) in _kqsub_start_watching()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Deloop.c111 struct kevent *kqueue_events;
322 struct kevent ke; in eloop_sock_queue()
325 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) == -1) { in eloop_sock_queue()
344 struct kevent *temp_events; in eloop_sock_table_add_sock()
466 struct kevent ke; in eloop_sock_table_remove_sock()
500 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) < 0) { in eloop_sock_table_remove_sock()
715 static void eloop_sock_table_dispatch(struct kevent *events, int nfds) in eloop_sock_table_dispatch()
1268 res = kevent(eloop.kqueuefd, NULL, 0, in eloop_run()
1453 struct kevent ke1, ke2; in eloop_wait_for_read_sock()
1459 kevent(kfd, &ke1, 1, &ke2, 1, NULL); in eloop_wait_for_read_sock()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Deloop.c111 struct kevent *kqueue_events;
320 struct kevent ke; in eloop_sock_queue()
323 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) == -1) { in eloop_sock_queue()
342 struct kevent *temp_events; in eloop_sock_table_add_sock()
463 struct kevent ke; in eloop_sock_table_remove_sock()
497 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) < 0) { in eloop_sock_table_remove_sock()
712 static void eloop_sock_table_dispatch(struct kevent *events, int nfds) in eloop_sock_table_dispatch()
1258 res = kevent(eloop.kqueuefd, NULL, 0, in eloop_run()
1443 struct kevent ke1, ke2; in eloop_wait_for_read_sock()
1449 kevent(kfd, &ke1, 1, &ke2, 1, NULL); in eloop_wait_for_read_sock()
/third_party/python/Doc/library/
Dselect.rst111 .. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)
114 :ref:`kevent-objects` below for the methods supported by kevent objects.
488 Low level interface to kevent
490 - changelist must be an iterable of kevent objects or ``None``
509 .. attribute:: kevent.ident
513 be an int or an object with a :meth:`~io.IOBase.fileno` method. kevent
516 .. attribute:: kevent.filter
545 .. attribute:: kevent.flags
574 .. attribute:: kevent.fflags
642 .. attribute:: kevent.data
[all …]
/third_party/toybox/lib/
Dportability.c208 struct kevent event; in xnotify_add()
212 if (kevent(not->kq, &event, 1, NULL, 0, NULL) == -1 || event.flags & EV_ERROR) in xnotify_add()
222 struct kevent event; in xnotify_wait()
226 if (kevent(not->kq, NULL, 0, &event, 1, NULL) != -1) { in xnotify_wait()
/third_party/python/Lib/
Dselectors.py521 kev = select.kevent(key.fd, select.KQ_FILTER_READ,
525 kev = select.kevent(key.fd, select.KQ_FILTER_WRITE,
536 kev = select.kevent(key.fd, select.KQ_FILTER_READ,
545 kev = select.kevent(key.fd, select.KQ_FILTER_WRITE,
/third_party/libuv/test/
Dtest-embed.c80 r = kevent(fd, NULL, 0, NULL, 0, &ts); in embed_thread_runner()
/third_party/python/Modules/
Dselectmodule.c1725 struct kevent e;
2094 struct kevent *evl = NULL; in select_kqueue_control_impl()
2095 struct kevent *chl = NULL; in select_kqueue_control_impl()
2147 chl = PyMem_New(struct kevent, nchanges); in select_kqueue_control_impl()
2168 evl = PyMem_New(struct kevent, maxevents); in select_kqueue_control_impl()
2181 gotevents = kevent(self->kqfd, chl, nchanges, in select_kqueue_control_impl()
/third_party/glib/
Dmeson.build512 'kevent',
/third_party/libuv/
DChangeLog50 * process,bsd: handle kevent NOTE_EXIT failure (Jameson Nash)
108 * process: remove OpenBSD from kevent list (Jameson Nash)
/third_party/python/Misc/
DHISTORY4133 - Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
4996 - Issue #12181: select module: Fix struct kevent definition on OpenBSD 64-bit
13975 - Issue #7211: Allow 64-bit values for the `ident` and `data` fields of kevent