mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +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:
parent
22b56d6a82
commit
8db54f9ef4
1 changed files with 2 additions and 1 deletions
|
@ -372,7 +372,8 @@ int nanosleep(const struct timespec* requested_sleep, struct timespec* remaining
|
||||||
int clock_getres(clockid_t, struct timespec*)
|
int clock_getres(clockid_t, struct timespec*)
|
||||||
{
|
{
|
||||||
dbgln("FIXME: Implement clock_getres()");
|
dbgln("FIXME: Implement clock_getres()");
|
||||||
TODO();
|
auto rc = -ENOSYS;
|
||||||
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
double difftime(time_t t1, time_t t0)
|
double difftime(time_t t1, time_t t0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue