Lines Matching refs:tm
57 struct timeval last, intvl, now, tm;
70 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec;
71 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec;
72 while (tm.tv_usec < 0) {
73 tm.tv_usec += 1000000;
74 tm.tv_sec--;
76 while (tm.tv_usec >= 1000000) {
77 tm.tv_usec -= 1000000;
78 tm.tv_sec++;
80 if (tm.tv_sec < 0) {
90 n = select(STDIN_FILENO + 1, &rfds, NULL, NULL, &tm);