mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Kernel+LibC: Implement clock_gettime() and clock_nanosleep()
Only the CLOCK_MONOTONIC clock is supported at the moment, and it only has millisecond precision. :^)
This commit is contained in:
parent
73b2cb9ed8
commit
cc68654a44
9 changed files with 127 additions and 7 deletions
|
@ -157,6 +157,8 @@ public:
|
|||
int sys$sleep(unsigned seconds);
|
||||
int sys$usleep(useconds_t usec);
|
||||
int sys$gettimeofday(timeval*);
|
||||
int sys$clock_gettime(clockid_t, timespec*);
|
||||
int sys$clock_nanosleep(const Syscall::SC_clock_nanosleep_params*);
|
||||
int sys$gethostname(char*, ssize_t);
|
||||
int sys$uname(utsname*);
|
||||
int sys$readlink(const char*, char*, ssize_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue