projects
/
akaros.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adds kill to the monitor
[akaros.git]
/
tests
/
usleep.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <parlib.h>
4
5
int main(int argc, char **argv)
6
{
7
int sleep_time;
8
if (argc < 2) {
9
printf("Usage: %s MICROSEC\n", argv[0]);
10
exit(-1);
11
}
12
sleep_time = atoi(argv[1]);
13
if (sleep_time < 0)
14
exit(-1);
15
sys_block(sleep_time);
16
return 0;
17
}