Lines Matching defs:res
173 int i, res, timeout = -1;
187 res = ioctl(devpollop->dpfd, DP_POLL, &dvp);
191 if (res == -1) {
200 event_debug(("%s: devpoll_wait reports %d", __func__, res));
202 for (i = 0; i < res; i++) {
231 int res;
241 res = 0;
243 res |= POLLIN;
245 res |= POLLOUT;
247 if (devpoll_queue(devpollop, fd, res) != 0)
257 int res;
260 res = 0;
262 res |= POLLIN;
264 res |= POLLOUT;
276 if ((res & (POLLIN|POLLOUT)) != (POLLIN|POLLOUT)) {
282 if ((res & POLLIN) && (old & EV_WRITE)) {
285 } else if ((res & POLLOUT) && (old & EV_READ)) {