projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove standalone syscall cruft
[musl]
/
arch
/
x86_64
/
syscall.h
diff --git
a/arch/x86_64/syscall.h
b/arch/x86_64/syscall.h
index
0b04b29
..
cfaa790
100644
(file)
--- 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
#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(;;);
static inline long __syscall_ret(unsigned long r)
{
for(;;);