Lines Matching refs:waittv
592 struct timeval waittv, now;
595 waittv.tv_sec = timeout_end.tv_sec - now.tv_sec;
596 waittv.tv_usec = timeout_end.tv_usec - now.tv_usec;
597 if (waittv.tv_usec < 0) {
598 waittv.tv_usec += 1000000;
599 waittv.tv_sec--;
601 if (waittv.tv_sec < 0) {
607 r = select(conn->sd + 1, &readfds, NULL, NULL, &waittv);
721 struct timeval now, timeout, waittv; local
748 waittv.tv_sec = timeout.tv_sec - now.tv_sec;
749 waittv.tv_usec = timeout.tv_usec - now.tv_usec;
750 if (waittv.tv_usec < 0) {
751 waittv.tv_usec += 1000000;
752 waittv.tv_sec--;
754 if (waittv.tv_sec < 0) {
760 r = select(conn->sd + 1, NULL, &writefds, NULL, &waittv);