projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix missing ENOTSUP error code
[musl]
/
arch
/
i386
/
syscall.h
diff --git
a/arch/i386/syscall.h
b/arch/i386/syscall.h
index
8df9b1b
..
ee871a9
100644
(file)
--- a/
arch/i386/syscall.h
+++ b/
arch/i386/syscall.h
@@
-7,17
+7,7
@@
#define SYSCALL_SIGSET_SIZE 8
#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(;;);
@@
-500,9
+490,14
@@
static inline long syscall6(long n, long a1, long a2, long a3, long a4, long a5,
#define __NR_fstatat __NR_fstatat64
#define __NR_pread __NR_pread64
#define __NR_pwrite __NR_pwrite64
#define __NR_fstatat __NR_fstatat64
#define __NR_pread __NR_pread64
#define __NR_pwrite __NR_pwrite64
+
#undef __NR_getrlimit
#define __NR_getrlimit __NR_ugetrlimit
#undef __NR_getrlimit
#define __NR_getrlimit __NR_ugetrlimit
+#undef __NR_select
+#define __NR_select __NR__newselect
+
+
#define __SC_socket 1
#define __SC_bind 2
#define __SC_connect 3
#define __SC_socket 1
#define __SC_bind 2
#define __SC_connect 3