-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"
#include "libc.h"
{
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;
}