mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
Add a "sleep" syscall that sleeps for N seconds.
This commit is contained in:
parent
c6f2890d8e
commit
5978185242
11 changed files with 37 additions and 12 deletions
|
@ -57,5 +57,10 @@ char* getcwd(char* buffer, size_t size)
|
|||
__RETURN_WITH_ERRNO(rc, buffer, nullptr);
|
||||
}
|
||||
|
||||
int sleep(unsigned seconds)
|
||||
{
|
||||
return Syscall::invoke(Syscall::Sleep, (dword)seconds);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ int close(int fd);
|
|||
pid_t waitpid(pid_t);
|
||||
char* getcwd(char* buffer, size_t size);
|
||||
int lstat(const char* path, stat* statbuf);
|
||||
int sleep(unsigned seconds);
|
||||
|
||||
#define S_IFMT 0170000
|
||||
#define S_IFDIR 0040000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue