Lines Matching refs:poll
36 # include <poll.h>
41 # include <poll.h>
55 * OS select poll epoll kqueue /dev/poll
106 * 2. poll() - O(n log n)
114 * poll(), then loops through the pollfd array looking up
143 * d. cupsdDoSelect() uses kevent() to poll for events and
149 * 5. /dev/poll - O(n log n) - NOT YET IMPLEMENTED
150 * a. cupsdStartSelect() opens /dev/poll and allocates an
151 * array of pollfd structs; on failure to open /dev/poll,
152 * revert to poll() system call.
154 * /dev/poll with the new file descriptor and the
157 * /dev/poll with the file descriptor and the POLLREMOVE
160 * events from /dev/poll and then loops through the
163 * e. cupsdStopSelect() closes /dev/poll and frees the
171 * slower than select() and poll() at 18% slower than select(). Similar
181 * We may be able to improve the poll() implementation simply by
187 * Since /dev/poll will never be able to use a shadow array, it may
190 * /dev/poll will yield a net performance loss.
572 nfds = poll(cupsd_pollfds, count, timeout * 1000);
574 nfds = poll(cupsd_pollfds, count, -1);
717 /* No variables for poll() */