projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove __libc_csu_* cruft
[musl]
/
src
/
time
/
clock_nanosleep.c
diff --git
a/src/time/clock_nanosleep.c
b/src/time/clock_nanosleep.c
index
ffb9a8a
..
ec87b9e
100644
(file)
--- a/
src/time/clock_nanosleep.c
+++ b/
src/time/clock_nanosleep.c
@@
-1,13
+1,8
@@
-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"
#include "libc.h"
int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
{
#include <time.h>
#include "syscall.h"
#include "libc.h"
int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
{
- int ret;
- CANCELPT_BEGIN;
- ret = syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem);
- CANCELPT_END;
- return ret;
+ return -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem);
}
}