Lines Matching refs:fd_count

56 	u_int fd_count;  member
104 EVUTIL_ASSERT(new_num_fds >= op->readset_in->fd_count && in grow_fd_sets()
105 new_num_fds >= op->writeset_in->fd_count); in grow_fd_sets()
129 if (set->fd_count == op->num_fds_in_fd_sets) { in do_fd_set()
135 set->fd_array[set->fd_count] = s; in do_fd_set()
137 ent->read_pos_plus1 = set->fd_count+1; in do_fd_set()
139 ent->write_pos_plus1 = set->fd_count+1; in do_fd_set()
140 return (set->fd_count++); in do_fd_set()
158 if (--set->fd_count != (unsigned)i) { in do_fd_clear()
161 s2 = set->fd_array[i] = set->fd_array[set->fd_count]; in do_fd_clear()
195 winop->readset_in->fd_count = winop->writeset_in->fd_count = 0; in win32_init()
196 winop->readset_out->fd_count = winop->writeset_out->fd_count in win32_init()
197 = winop->exset_out->fd_count = 0; in win32_init()
258 out->fd_count = in->fd_count; in fd_set_copy()
259 memcpy(out->fd_array, in->fd_array, in->fd_count * (sizeof(SOCKET))); in fd_set_copy()
279 int fd_count; in win32_dispatch() local
297 fd_count = in win32_dispatch()
298 (win32op->readset_out->fd_count > win32op->writeset_out->fd_count) ? in win32_dispatch()
299 win32op->readset_out->fd_count : win32op->writeset_out->fd_count; in win32_dispatch()
301 if (!fd_count) { in win32_dispatch()
313 res = select(fd_count, in win32_dispatch()
326 if (win32op->readset_out->fd_count) { in win32_dispatch()
327 i = rand() % win32op->readset_out->fd_count; in win32_dispatch()
328 for (j=0; j<win32op->readset_out->fd_count; ++j) { in win32_dispatch()
329 if (++i >= win32op->readset_out->fd_count) in win32_dispatch()
335 if (win32op->exset_out->fd_count) { in win32_dispatch()
336 i = rand() % win32op->exset_out->fd_count; in win32_dispatch()
337 for (j=0; j<win32op->exset_out->fd_count; ++j) { in win32_dispatch()
338 if (++i >= win32op->exset_out->fd_count) in win32_dispatch()
344 if (win32op->writeset_out->fd_count) { in win32_dispatch()
346 i = rand() % win32op->writeset_out->fd_count; in win32_dispatch()
347 for (j=0; j<win32op->writeset_out->fd_count; ++j) { in win32_dispatch()
348 if (++i >= win32op->writeset_out->fd_count) in win32_dispatch()