projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: fix undefined shift in logf
[musl]
/
src
/
time
/
nanosleep.c
diff --git
a/src/time/nanosleep.c
b/src/time/nanosleep.c
index
a2ff483
..
bc9f789
100644
(file)
--- a/
src/time/nanosleep.c
+++ b/
src/time/nanosleep.c
@@
-1,8
+1,7
@@
#include <time.h>
#include "syscall.h"
-#include "libc.h"
int nanosleep(const struct timespec *req, struct timespec *rem)
{
- return
syscall_cp(SYS_nanosleep, req, rem
);
+ return
__syscall_ret(-__clock_nanosleep(CLOCK_REALTIME, 0, req, rem)
);
}