Home | History | Annotate | Download | only in tetris

Lines Matching refs:tvp

65  * Do a `read wait': poll for reading from stdin, with timeout *tvp.
66 * On return, modify *tvp to reflect the amount of time spent waiting.
70 * If tvp is nil, wait forever, but return if poll is interrupted.
75 rwait(struct timeval *tvp)
82 if (tvp) {
84 endtv = *tvp;
85 timeout = tvp->tv_sec * 1000 + tvp->tv_usec / 1000;
94 if (tvp == 0)
102 if (tvp) {
103 tvp->tv_sec = 0;
104 tvp->tv_usec = 0;
108 if (tvp) {
112 TV_SUB(tvp, &endtv); /* adjust *tvp by elapsed time */