syscall overhaul part two - unify public and internal syscall interface
[musl] / src / time / clock_nanosleep.c
index ffb9a8a..c777c17 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 #include "libc.h"
@@ -7,7 +6,7 @@ int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct
 {
        int ret;
        CANCELPT_BEGIN;
-       ret = syscall4(__NR_clock_nanosleep, clk, flags, (long)req, (long)rem);
+       ret = __syscall(__NR_clock_nanosleep, clk, flags, req, rem);
        CANCELPT_END;
        return ret;
 }