summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/syscall.h12
-rw-r--r--arch/x86_64/syscall.h12
2 files changed, 2 insertions, 22 deletions
diff --git a/arch/i386/syscall.h b/arch/i386/syscall.h
index c87401f3..ee871a9d 100644
--- a/arch/i386/syscall.h
+++ b/arch/i386/syscall.h
@@ -7,17 +7,7 @@
#define SYSCALL_SIGSET_SIZE 8
-#if defined(SYSCALL_STANDALONE)
-#include <errno.h>
-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(;;);
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 <errno.h>
-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(;;);