Lines Matching refs:events
115 struct port_event* events;
122 events = (struct port_event*) loop->watchers[loop->nwatchers];
124 if (events == NULL)
127 /* Invalidate events with same file descriptor */
129 if ((int) events[i].portev_object == fd)
130 events[i].portev_object = -1;
148 struct port_event events[1024];
190 w->events = w->pevents;
225 events[0].portev_source = 0;
234 events,
235 ARRAY_SIZE(events),
243 /* Work around another kernel bug: port_getn() may return events even
260 if (events[0].portev_source == 0) {
284 loop->watchers[loop->nwatchers] = (void*) events;
287 pe = events + i;
290 /* Skip invalidated events, see uv__platform_invalidate_fd */
342 if (nfds == ARRAY_SIZE(events) && --count != 0) {
343 /* Poll for more events but don't block this time. */
455 int events;
468 * actually any events (!); by using port_getn() in lieu of port_get(),
469 * we can at least workaround the bug by checking for zero returned events
490 events = 0;
492 events |= UV_CHANGE;
494 events |= UV_RENAME;
495 assert(events != 0);
497 handle->cb(handle, NULL, events, 0);