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