1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Add a "sleep" syscall that sleeps for N seconds.

This commit is contained in:
Andreas Kling 2018-10-25 13:53:49 +02:00
parent c6f2890d8e
commit 5978185242
11 changed files with 37 additions and 12 deletions

10
Userland/sleep.cpp Normal file
View file

@ -0,0 +1,10 @@
#include <LibC/unistd.h>
#include <LibC/stdio.h>
int main(int c, char** v)
{
unsigned secs = 10;
sleep(secs);
return 0;
}