mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibC: Add nanosleep() wrapper around clock_nanosleep(CLOCK_REALTIME)
Gets rid of one dropbear patch. :^)
This commit is contained in:
parent
57b6f51137
commit
c88ea2f54a
3 changed files with 6 additions and 11 deletions
|
@ -330,6 +330,11 @@ int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec* reques
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int nanosleep(const struct timespec* requested_sleep, struct timespec* remaining_sleep)
|
||||
{
|
||||
return clock_nanosleep(CLOCK_REALTIME, 0, requested_sleep, remaining_sleep);
|
||||
}
|
||||
|
||||
int clock_getres(clockid_t, struct timespec*)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue