Lines Matching refs:size
112 if (len <= lst->size) in maybe_resize()
115 if (lst->size == 0) in maybe_resize()
119 event = lst->items[lst->size - 1]; in maybe_resize()
120 lst->items[lst->size - 1].fd = -1; in maybe_resize()
128 for (i = lst->size; i < newsize; ++i) in maybe_resize()
135 lst->size = newsize; in maybe_resize()
195 lst->size = 0; in child_fork()
219 lst->size = 0; in epoll_create1()
223 lst->items[lst->size - 1].fd = lst->msg_queue; in epoll_create1()
224 lst->items[lst->size - 1].events = POLLIN; in epoll_create1()
225 lst->items[lst->size - 1].revents = 0; in epoll_create1()
243 if (fd >= lst->size || lst->items[fd].fd == -1) { in epoll_ctl()
265 if (fd >= lst->size - 1 || lst->items[fd].fd == -1) { in epoll_ctl()
284 nmsgsfds_t size; in epoll_wait() local
299 if (lst->size > EP_MAX_PFDS) { in epoll_wait()
309 assert(lst->size > 0); in epoll_wait()
310 _SET_FDS_MSGS(size, 1, lst->size - 1); in epoll_wait()
312 pollret = poll(pfds, size, timeout); in epoll_wait()
321 msg_fd = pfds[lst->size - 1]; /* message queue is always last entry */ in epoll_wait()
324 i < lst->size - 1 && in epoll_wait()
363 if (fd < lst->size && lst->items != NULL && lst->items[fd].fd != -1) in epoll_file_close()