Lines Matching refs:poll
24 # include <poll.h>
29 # include <poll.h>
41 * OS select poll epoll kqueue /dev/poll
92 * 2. poll() - O(n log n)
100 * poll(), then loops through the pollfd array looking up
129 * d. cupsdDoSelect() uses kevent() to poll for events and
135 * 5. /dev/poll - O(n log n) - NOT YET IMPLEMENTED
136 * a. cupsdStartSelect() opens /dev/poll and allocates an
137 * array of pollfd structs; on failure to open /dev/poll,
138 * revert to poll() system call.
140 * /dev/poll with the new file descriptor and the
143 * /dev/poll with the file descriptor and the POLLREMOVE
146 * events from /dev/poll and then loops through the
149 * e. cupsdStopSelect() closes /dev/poll and frees the
157 * slower than select() and poll() at 18% slower than select(). Similar
167 * We may be able to improve the poll() implementation simply by
173 * Since /dev/poll will never be able to use a shadow array, it may
176 * /dev/poll will yield a net performance loss.
556 nfds = poll(cupsd_pollfds, (nfds_t)count, timeout * 1000);
558 nfds = poll(cupsd_pollfds, (nfds_t)count, -1);
701 /* No variables for poll() */