Lines Matching refs:poll
25 /* POSIX defines poll() as a portable way to wait on file descriptors.
27 * events to pass as the first argument to poll().
54 /* Allocate or dynamically resize our poll fds array. */
77 /* Primitive swap operation on poll fds array elements. */
85 /* Add a watcher's fd to our poll fds array with its pending events. */
106 /* Remove a watcher's fd from our poll fds array. */
158 /* Take queued watchers and add their fds to our poll fds array. */
174 /* Prepare a set of signals to block around poll(), if any. */
193 /* Loop calls to poll() and processing of results. If we get some
194 * results from poll() but they turn out not to be interesting to
195 * our caller then we need to loop around and poll() again.
206 * of events in the callback were waiting when poll was called.
213 nfds = poll(loop->poll_fds, (nfds_t)loop->poll_fds_used, timeout);
219 * timeout == 0 (i.e. non-blocking poll) but there is no guarantee that the
253 /* Interrupted by a signal. Update timeout and poll again. */
266 /* Loop over the entire poll fds array looking for returned events. */
318 /* Purge invalidated fds from our poll fds array. */
322 return; /* Event loop should cycle now so don't poll again. */
344 /* Remove the given fd from our poll fds array because no one
366 /* Check whether the given fd is supported by poll(). */
375 rv = poll(p, 1, 0);