]>
git.ipfire.org Git - thirdparty/squid.git/blob - test-suite/waiter.c
5 main(int argc
, char *argv
[])
13 gettimeofday(&now
, NULL
);
14 alarm
.tv_sec
= now
.tv_sec
+ i
+ (now
.tv_sec
% i
);
16 to
.tv_sec
= alarm
.tv_sec
- now
.tv_sec
;
17 to
.tv_usec
= alarm
.tv_usec
- now
.tv_usec
;
19 to
.tv_usec
+= 1000000;
22 select(1, NULL
, NULL
, NULL
, &to
);