mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +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
Notes:
sideshowbarker
2024-07-18 23:04:15 +09:00
Author: https://github.com/linusg
Commit: 8db54f9ef4
Pull-request: https://github.com/SerenityOS/serenity/pull/5001
Reviewed-by: https://github.com/alimpfard
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*)
|
||||
{
|
||||
dbgln("FIXME: Implement clock_getres()");
|
||||
TODO();
|
||||
auto rc = -ENOSYS;
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
double difftime(time_t t1, time_t t0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue