Lines Matching defs: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;
258 out->fd_count = in->fd_count;
259 memcpy(out->fd_array, in->fd_array, in->fd_count * (sizeof(SOCKET)));
267 for(i=0;i<s->fd_count;++i)
279 int fd_count;
297 fd_count =
298 (win32op->readset_out->fd_count > win32op->writeset_out->fd_count) ?
299 win32op->readset_out->fd_count : win32op->writeset_out->fd_count;
301 if (!fd_count) {
313 res = select(fd_count,
326 if (win32op->readset_out->fd_count) {
327 i = rand() % win32op->readset_out->fd_count;
328 for (j=0; j<win32op->readset_out->fd_count; ++j) {
329 if (++i >= win32op->readset_out->fd_count)
335 if (win32op->exset_out->fd_count) {
336 i = rand() % win32op->exset_out->fd_count;
337 for (j=0; j<win32op->exset_out->fd_count; ++j) {
338 if (++i >= win32op->exset_out->fd_count)
344 if (win32op->writeset_out->fd_count) {
346 i = rand() % win32op->writeset_out->fd_count;
347 for (j=0; j<win32op->writeset_out->fd_count; ++j) {
348 if (++i >= win32op->writeset_out->fd_count)