Lines Matching defs:fdsz
90 static int select_resize(struct selectop *sop, int fdsz);
214 select_resize(struct selectop *sop, int fdsz)
225 n_events = (fdsz/sizeof(fd_mask)) * NFDBITS;
231 if ((readset_in = realloc(sop->event_readset_in, fdsz)) == NULL)
234 if ((readset_out = realloc(sop->event_readset_out, fdsz)) == NULL)
237 if ((writeset_in = realloc(sop->event_writeset_in, fdsz)) == NULL)
240 if ((writeset_out = realloc(sop->event_writeset_out, fdsz)) == NULL)
253 fdsz - sop->event_fdsz);
255 fdsz - sop->event_fdsz);
261 sop->event_fdsz = fdsz;
286 int fdsz = sop->event_fdsz;
288 if (fdsz < sizeof(fd_mask))
289 fdsz = sizeof(fd_mask);
291 while (fdsz <
293 fdsz *= 2;
295 if (fdsz != sop->event_fdsz) {
296 if (select_resize(sop, fdsz)) {