blob: 0f4a25193c5b011cca4931d0078047452f655e40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <time.h>
#include <unistd.h>
_syscall0(time_t, time);
_syscall1(int, alarm, unsigned int, seconds);
void sleep(time_t t) {
time_t start = time();
while(time() < start + t);
}
|