search for: iolist_ios_per_fd

Displaying 2 results from an estimated 2 matches for "iolist_ios_per_fd".

2004 Oct 25
0
[PATCH] move iolist functions into separate file
...} + if (list->ios[IOLIST_OUTPUT] == io) { + list->ios[IOLIST_OUTPUT] = NULL; + return list->ios[IOLIST_INPUT] == NULL; + } + + i_unreached(); + return TRUE; +} + +int iolist_events(struct io_list *list, int rmask, int wmask) +{ + int events = 0, i; + struct io *io; + + for (i = 0; i < IOLIST_IOS_PER_FD; i++) { + io = list->ios[i]; + + if (io == NULL) + continue; + + if (io->condition & IO_READ) + events |= rmask; + if (io->condition & IO_WRITE) + events |= wmask; + } + + return events; +} diff -udrpNX /usr/share/dontdiff -x debian dovecot-1.0-test51.vanilla/src/lib/ioli...
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...d = 0; + + /* execute timeout handlers */ + io_loop_handle_timeouts(ioloop); + + if (ret <= 0 || !ioloop->running) { + /* No events */ + return; + } + + for (event = data->events ; ret-- > 0 ; event++) { + list = data->fd_index[(int)event->ident]; + + for (i = 0; i < IOLIST_IOS_PER_FD; i++) { + io = list->ios[i]; + if (io == NULL) + continue; + + call = FALSE; + if ((event->filter & EV_EOF) != 0) { + call = TRUE; + } else if ((io->condition & IO_READ) != 0) { + call = event->filter & EVFILT_READ; + } else if ((io->condition & I...