1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

LibC: Return ENOSYS from clock_getres() rather than asserting

This is only a stub function for now, but we can make it even more
useful by just hardcoding an error return value rather than asserting.
This commit is contained in:
Linus Groh 2021-01-18 18:15:31 +01:00 committed by Andreas Kling
parent 22b56d6a82
commit 8db54f9ef4

View file

@ -372,7 +372,8 @@ int nanosleep(const struct timespec* requested_sleep, struct timespec* remaining
int clock_getres(clockid_t, struct timespec*)
{
dbgln("FIXME: Implement clock_getres()");
TODO();
auto rc = -ENOSYS;
__RETURN_WITH_ERRNO(rc, rc, -1);
}
double difftime(time_t t1, time_t t0)