1
Fork 0
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:
zzLinus 2022-07-25 11:09:30 +00:00 committed by Andreas Kling
parent a031b7a174
commit ca74443012
4 changed files with 27 additions and 3 deletions

View file

@ -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, &params);
__RETURN_WITH_ERRNO(rc, rc, -1);
}