Lines Matching refs: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()
39 fda->entries = entries; in fdarray__grow()
62 free(fda->entries); in fdarray__exit()
81 fda->entries[fda->nr].fd = fd; in fdarray__add()
82 fda->entries[fda->nr].events = revents; in fdarray__add()
96 if (fda->entries[fd].revents & revents) { in fdarray__filter()
104 fda->entries[nr] = fda->entries[fd]; in fdarray__filter()
116 return poll(fda->entries, fda->nr, timeout); in fdarray__poll()
124 printed += fprintf(fp, "%s%d", fd ? ", " : "", fda->entries[fd].fd); in fdarray__fprintf()