Lines Matching refs:fd_count
56 u_int fd_count;
104 EVUTIL_ASSERT(new_num_fds >= op->readset_in->fd_count &&
105 new_num_fds >= op->writeset_in->fd_count);
129 if (set->fd_count == op->num_fds_in_fd_sets) {
135 set->fd_array[set->fd_count] = s;
137 ent->read_pos_plus1 = set->fd_count+1;
139 ent->write_pos_plus1 = set->fd_count+1;
140 return (set->fd_count++);
158 if (--set->fd_count != (unsigned)i) {
161 s2 = set->fd_array[i] = set->fd_array[set->fd_count];
195 winop->readset_in->fd_count = winop->writeset_in->fd_count = 0;
196 winop->readset_out->fd_count = winop->writeset_out->fd_count
197 = winop->exset_out->fd_count = 0;
257 out->fd_count = in->fd_count;
258 memcpy(out->fd_array, in->fd_array, in->fd_count * (sizeof(SOCKET)));
266 for(i=0;i<s->fd_count;++i)
278 int fd_count;
296 fd_count =
297 (win32op->readset_out->fd_count > win32op->writeset_out->fd_count) ?
298 win32op->readset_out->fd_count : win32op->writeset_out->fd_count;
300 if (!fd_count) {
312 res = select(fd_count,
325 if (win32op->readset_out->fd_count) {
326 i = rand() % win32op->readset_out->fd_count;
327 for (j=0; j<win32op->readset_out->fd_count; ++j) {
328 if (++i >= win32op->readset_out->fd_count)
334 if (win32op->exset_out->fd_count) {
335 i = rand() % win32op->exset_out->fd_count;
336 for (j=0; j<win32op->exset_out->fd_count; ++j) {
337 if (++i >= win32op->exset_out->fd_count)
343 if (win32op->writeset_out->fd_count) {
345 i = rand() % win32op->writeset_out->fd_count;
346 for (j=0; j<win32op->writeset_out->fd_count; ++j) {
347 if (++i >= win32op->writeset_out->fd_count)