Lines Matching refs:used
40 int used; member
61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread()
68 for (i = 0; i < fds->used; i++) { in write_sigio_thread()
87 fds->used--; in write_sigio_thread()
89 (fds->used - i) * sizeof(*fds->poll)); in write_sigio_thread()
117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll()
173 for (i = 0; i < all_sigio_fds.used; i++) { in add_sigio_fd()
177 if (i == all_sigio_fds.used) in add_sigio_fd()
182 for (i = 0; i < current_poll.used; i++) { in add_sigio_fd()
187 n = current_poll.used; in add_sigio_fd()
193 current_poll.used * sizeof(struct pollfd)); in add_sigio_fd()
195 next_poll.used = n + 1; in add_sigio_fd()
216 for (i = 0; i < current_poll.used; i++) { in ignore_sigio_fd()
220 if (i == current_poll.used) in ignore_sigio_fd()
223 err = need_poll(&next_poll, current_poll.used - 1); in ignore_sigio_fd()
227 for (i = 0; i < current_poll.used; i++) { in ignore_sigio_fd()
232 next_poll.used = current_poll.used - 1; in ignore_sigio_fd()
299 .used = 1, in write_sigio_workaround()
327 .used = 0 }); in write_sigio_workaround()
346 err = need_poll(&all_sigio_fds, all_sigio_fds.used + 1); in sigio_broken()
353 all_sigio_fds.poll[all_sigio_fds.used++] = in sigio_broken()