X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fx86_64%2Fsyscall.h;h=cfaa790fa0cd49b8bb3b23881ea18ee8866d4c41;hp=0b04b29e267de0fb62bda4e95bec3ae2d58e2c8f;hb=9b235e8374bfe15f73d470b4ad7d1c579fd9a71e;hpb=ebc4a17957d81803ca649a81083aabbd58260460 diff --git a/arch/x86_64/syscall.h b/arch/x86_64/syscall.h index 0b04b29e..cfaa790f 100644 --- a/arch/x86_64/syscall.h +++ b/arch/x86_64/syscall.h @@ -4,17 +4,7 @@ #define SYSCALL_LL(x) x, 0 #define SYSCALL_SIGSET_SIZE 8 -#if defined(SYSCALL_STANDALONE) -#include -static inline long __syscall_ret(unsigned long r) -{ - if (r >= (unsigned long)-1 - 4096) { - errno = -(long)r; - return -1; - } - return (long)r; -} -#elif defined(SYSCALL_NORETURN) +#if defined(SYSCALL_NORETURN) static inline long __syscall_ret(unsigned long r) { for(;;);