70 memset(poll->
set, 0, poll->
size);
71 FD_SET(fd % FD_SETSIZE, &poll->
set[fd / FD_SETSIZE]);
78 tv.tv_sec = timeout / 1000;
79 tv.tv_usec = (timeout % 1000) * 1000;
87 rv = select(fd + 1, poll->
set , 0 , 0, tvp);
90 rv = select(fd + 1, 0 , poll->
set , 0, tvp);
97 if (! FD_ISSET(fd % FD_SETSIZE, &poll->
set[fd / FD_SETSIZE])) {