projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reorder timer initialization so that timer_create does not depend on free
[musl]
/
src
/
time
/
nanosleep.c
diff --git
a/src/time/nanosleep.c
b/src/time/nanosleep.c
index
5ac4c35
..
0e0753f
100644
(file)
--- a/
src/time/nanosleep.c
+++ b/
src/time/nanosleep.c
@@
-7,7
+7,8
@@
int nanosleep(const struct timespec *req, struct timespec *rem)
{
int ret;
CANCELPT_BEGIN;
- ret = syscall2(__NR_nanosleep, (long)req, (long)rem);
+ ret = syscall(SYS_nanosleep, req, rem);
+ CANCELPT_TRY;
CANCELPT_END;
return ret;
}