Lines Matching defs:pollfd
15 struct pollfd *fds;
27 ctx->fds = i_new(struct pollfd, ctx->fds_count);
70 ctx->fds = i_realloc_type(ctx->fds, struct pollfd,
75 /* update existing pollfd */
78 /* add new pollfd */
133 /* remove the whole pollfd */
138 /* move the last pollfd over the removed one */
147 struct pollfd *pollfd;
180 pollfd = &ctx->fds[ctx->fd_index[io->fd]];
181 if (pollfd->revents != 0) {
182 if (pollfd->revents & POLLNVAL) {
185 pollfd->events = 0;
186 pollfd->revents = 0;
191 pollfd->revents = 0;
193 call = (pollfd->revents & IO_POLL_INPUT) != 0;
194 pollfd->revents &= ~IO_POLL_INPUT;
196 call = (pollfd->revents & IO_POLL_OUTPUT) != 0;
197 pollfd->revents &= ~IO_POLL_OUTPUT;
199 call = (pollfd->revents & IO_POLL_ERROR) != 0;
200 pollfd->revents &= ~IO_POLL_ERROR;
205 if (pollfd->revents == 0)