Files
RedBear-OS/tests/unistd/sleep.c
T
Jeremy Soller 950b4526c7 - Disable output of empty header files
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00

15 lines
271 B
C

#include <time.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char** argv) {
sleep(2);
perror("sleep");
usleep(1000);
perror("usleep");
struct timespec tm = {0, 10000};
nanosleep(&tm, NULL);
perror("nanosleep");
return 0;
}