Home | History | Annotate | Download | only in libfetch

Lines Matching defs:wait

381 	struct timeval now, timeout, wait;
397 wait.tv_sec = timeout.tv_sec - now.tv_sec;
398 wait.tv_usec = timeout.tv_usec - now.tv_usec;
399 if (wait.tv_usec < 0) {
400 wait.tv_usec += 1000000;
401 wait.tv_sec--;
403 if (wait.tv_sec < 0) {
409 r = select(conn->sd + 1, &readfds, NULL, NULL, &wait);
507 struct timeval now, timeout, wait;
523 wait.tv_sec = timeout.tv_sec - now.tv_sec;
524 wait.tv_usec = timeout.tv_usec - now.tv_usec;
525 if (wait.tv_usec < 0) {
526 wait.tv_usec += 1000000;
527 wait.tv_sec--;
529 if (wait.tv_sec < 0) {
535 r = select(conn->sd + 1, NULL, &writefds, NULL, &wait);