Lines Matching defs:fds
15 struct pollfd *fds;
27 ctx->fds = i_new(struct pollfd, ctx->fds_count);
36 i_free(ioloop->handler_context->fds);
70 ctx->fds = i_realloc_type(ctx->fds, struct pollfd,
82 ctx->fds[index].fd = fd;
83 ctx->fds[index].events = 0;
84 ctx->fds[index].revents = 0;
87 old_events = ctx->fds[index].events;
89 ctx->fds[index].events |= IO_POLL_INPUT;
91 ctx->fds[index].events |= IO_POLL_OUTPUT;
93 ctx->fds[index].events |= IO_POLL_ERROR;
94 i_assert(ctx->fds[index].events != old_events);
124 ctx->fds[index].events &= ~(POLLIN|POLLPRI);
125 ctx->fds[index].revents &= ~(POLLIN|POLLPRI);
128 ctx->fds[index].events &= ~POLLOUT;
129 ctx->fds[index].revents &= ~POLLOUT;
132 if ((ctx->fds[index].events & (POLLIN|POLLOUT)) == 0) {
134 ctx->fd_index[ctx->fds[index].fd] = -1;
139 ctx->fds[index] = ctx->fds[ctx->fds_pos];
140 ctx->fd_index[ctx->fds[index].fd] = index;
164 ret = poll(ctx->fds, ctx->fds_pos, msecs);
180 pollfd = &ctx->fds[ctx->fd_index[io->fd]];