Lines Matching full:entries
15 fda->entries = NULL; in fdarray__init()
27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() local
29 if (entries == NULL) in fdarray__grow()
34 free(entries); in fdarray__grow()
38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow()
42 fda->entries = entries; in fdarray__grow()
65 free(fda->entries); in fdarray__exit()
84 fda->entries[fda->nr].fd = fd; in fdarray__add()
85 fda->entries[fda->nr].events = revents; in fdarray__add()
99 entry = &from->entries[pos]; in fdarray__dup_entry_from()
118 if (!fda->entries[fd].events) in fdarray__filter()
121 if (fda->entries[fd].revents & revents) { in fdarray__filter()
125 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
138 return poll(fda->entries, fda->nr, timeout); in fdarray__poll()
146 printed += fprintf(fp, "%s%d", fd ? ", " : "", fda->entries[fd].fd); in fdarray__fprintf()