mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Kernel/LibC: Implement posix syscall clock_getres()
This commit is contained in:
parent
a031b7a174
commit
ca74443012
4 changed files with 27 additions and 3 deletions
|
@ -471,10 +471,10 @@ int nanosleep(const struct timespec* requested_sleep, struct timespec* remaining
|
|||
return clock_nanosleep(CLOCK_REALTIME, 0, requested_sleep, remaining_sleep);
|
||||
}
|
||||
|
||||
int clock_getres(clockid_t, struct timespec*)
|
||||
int clock_getres(clockid_t clock_id, struct timespec* result)
|
||||
{
|
||||
dbgln("FIXME: Implement clock_getres()");
|
||||
auto rc = -ENOSYS;
|
||||
Syscall::SC_clock_getres_params params { clock_id, result };
|
||||
int rc = syscall(SC_clock_getres, ¶ms);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue