Lines Matching refs:fd

183     int fd, count, nready;  in time_select()  local
215 for (fd = find_first_set_bit (&e_fds, sizeof e_fds * 8); fd <= max_fd; in time_select()
216 fd = find_next_set_bit (&e_fds, sizeof e_fds * 8, fd) ) in time_select()
218 (*callbacks[fd].exception_func) (callbacks[fd].info); in time_select()
220 for (fd = find_first_set_bit (&i_fds, sizeof i_fds * 8); fd <= max_fd; in time_select()
221 fd = find_next_set_bit (&i_fds, sizeof i_fds * 8, fd) ) in time_select()
223 (*callbacks[fd].input_func) (callbacks[fd].info); in time_select()
225 for (fd = find_first_set_bit (&o_fds, sizeof o_fds * 8); fd <= max_fd; in time_select()
226 fd = find_next_set_bit (&o_fds, sizeof o_fds * 8, fd) ) in time_select()
228 (*callbacks[fd].output_func) (callbacks[fd].info); in time_select()
250 int fd, count, nready; in time_poll() local
277 fd = pollfd_ptr->fd; in time_poll()
279 (*callbacks[fd].exception_func) (callbacks[fd].info); in time_poll()
281 (*callbacks[fd].input_func) (callbacks[fd].info); in time_poll()
283 (*callbacks[fd].output_func) (callbacks[fd].info); in time_poll()
305 int fd, count, nready, i; in time_poll2() local
332 fd = poll2ofd_array[i].fd; in time_poll2()
334 (*callbacks[fd].exception_func) (callbacks[fd].info); in time_poll2()
336 (*callbacks[fd].input_func) (callbacks[fd].info); in time_poll2()
338 (*callbacks[fd].output_func) (callbacks[fd].info); in time_poll2()
355 int fd, max_fd, count, total_fds; local
393 if ( ( fd = dup (1) ) == -1 )
403 if (fd >= MAX_FDS)
406 fd, MAX_FDS - 1);
409 callbacks[fd].input_func = test_func;
410 callbacks[fd].output_func = test_func;
411 callbacks[fd].exception_func = test_func;
412 callbacks[fd].info = NULL;
413 if (fd > max_fd) max_fd = fd;
414 if (first_fd < 0) first_fd = fd;
416 pollfd_array[fd].fd = fd;
417 pollfd_array[fd].events = 0;
420 poll2ifd_array[fd].fd = fd;
421 poll2ifd_array[fd].events = 0;
457 for (fd = total_fds - num_to_test; fd < total_fds; ++fd)
460 FD_SET (fd, &exception_fds);
461 FD_SET (fd, &input_fds);
464 pollfd_array[fd].events = POLLPRI | POLLIN;
467 poll2ifd_array[fd].events = POLLPRI | POLLIN;
470 for (fd = total_fds - num_active; fd < total_fds; ++fd)
473 FD_SET (fd, &output_fds);
476 pollfd_array[fd].events |= POLLOUT;
479 poll2ifd_array[fd].events |= POLLOUT;