27 if (d > 1000.0) d = 1000.0;
28 millisecs = d * 1000.0 + 20.0;
29 if (millisecs < 0) millisecs = 20.0;
32 for (i = 0; i < len; ++i)
36 r = poll(x,len,millisecs);
53 for (i = 0; i < len; ++i) {
56 if (fd >= 8 *
sizeof(fd_set))
continue;
58 if (fd >= nfds) nfds = fd + 1;
63 tv.tv_sec = millisecs / 1000;
64 tv.tv_usec = 1000 * (millisecs % 1000);
66 r =
select(nfds,&rfds,&wfds,(fd_set *) 0,&tv);
71 for (i = 0; i < len; ++i) {
74 if (fd >= 8 *
sizeof(fd_set))
continue;
int iopause(iopause_fd *x, unsigned int len, struct taia *deadline, struct taia *stamp)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
void taia_sub(struct taia *, struct taia *, struct taia *)
int taia_less(struct taia *, struct taia *)
double taia_approx(struct taia *)