Lines Matching refs:fd_count
61 u_int fd_count;
135 assert(new_size >= op->readset_in->fd_count &&
136 new_size >= op->writeset_in->fd_count);
190 if (set->fd_count == op->fd_setsz) {
196 set->fd_array[set->fd_count] = s;
198 ent->read_pos = set->fd_count;
200 ent->write_pos = set->fd_count;
201 return (set->fd_count++);
218 if (--set->fd_count != i) {
221 s2 = set->fd_array[i] = set->fd_array[set->fd_count];
254 winop->readset_in->fd_count = winop->writeset_in->fd_count = 0;
255 winop->readset_out->fd_count = winop->writeset_out->fd_count
256 = winop->exset_out->fd_count = 0;
334 out->fd_count = in->fd_count;
335 memcpy(out->fd_array, in->fd_array, in->fd_count * (sizeof(SOCKET)));
343 for(i=0;i<s->fd_count;++i)
356 int fd_count;
364 fd_count =
365 (win32op->readset_out->fd_count > win32op->writeset_out->fd_count) ?
366 win32op->readset_out->fd_count : win32op->writeset_out->fd_count;
368 if (!fd_count) {
375 res = select(fd_count,
389 if (win32op->readset_out->fd_count) {
390 i = rand() % win32op->readset_out->fd_count;
391 for (j=0; j<win32op->readset_out->fd_count; ++j) {
392 if (++i >= win32op->readset_out->fd_count)
399 if (win32op->exset_out->fd_count) {
400 i = rand() % win32op->exset_out->fd_count;
401 for (j=0; j<win32op->exset_out->fd_count; ++j) {
402 if (++i >= win32op->exset_out->fd_count)
409 if (win32op->writeset_out->fd_count) {
410 i = rand() % win32op->writeset_out->fd_count;
411 for (j=0; j<win32op->writeset_out->fd_count; ++j) {
412 if (++i >= win32op->exset_out->fd_count)