Lines Matching defs:fdsz
97 static int select_resize(struct selectop *sop, int fdsz);
201 select_resize(struct selectop *sop, int fdsz)
209 if ((readset_in = mm_realloc(sop->event_readset_in, fdsz)) == NULL)
212 if ((writeset_in = mm_realloc(sop->event_writeset_in, fdsz)) == NULL) {
225 fdsz - sop->event_fdsz);
227 fdsz - sop->event_fdsz);
229 sop->event_fdsz = fdsz;
253 int fdsz = sop->event_fdsz;
255 if (fdsz < (int)sizeof(fd_mask))
256 fdsz = (int)sizeof(fd_mask);
261 while (fdsz < (int) SELECT_ALLOC_SIZE(fd + 1))
262 fdsz *= 2;
264 if (fdsz != sop->event_fdsz) {
265 if (select_resize(sop, fdsz)) {