Lines Matching refs:time_waited
262 struct timeval time_waited;
286 time_waited.tv_sec = 0;
287 time_waited.tv_usec = 0;
357 poll_time.tv_sec = timeout.tv_sec - time_waited.tv_sec;
358 poll_time.tv_usec = timeout.tv_usec - time_waited.tv_usec;
367 * this could happen if time_waited >= timeout
399 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec;
400 time_waited.tv_usec += curtime.tv_usec -
402 while (time_waited.tv_usec >= 1000000) {
403 time_waited.tv_usec -= 1000000;
404 time_waited.tv_sec++;
406 while (time_waited.tv_usec < 0) {
407 time_waited.tv_usec += 1000000;
408 time_waited.tv_sec--;
437 if (time_waited.tv_sec < timeout.tv_sec ||
438 (time_waited.tv_sec == timeout.tv_sec &&
439 time_waited.tv_usec < timeout.tv_usec)) {