Lines Matching defs:tm
59 struct timeval last, intvl, now, tm;
72 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec;
73 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec;
74 while (tm.tv_usec < 0) {
75 tm.tv_usec += 1000000;
76 tm.tv_sec--;
78 while (tm.tv_usec >= 1000000) {
79 tm.tv_usec -= 1000000;
80 tm.tv_sec++;
82 if (tm.tv_sec < 0) {
92 n = select(STDIN_FILENO + 1, &rfds, NULL, NULL, &tm);