projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix missing _BSD_SOURCE support in bits/*.h
[musl]
/
arch
/
i386
/
bits
/
syscall.h
diff --git
a/arch/i386/bits/syscall.h
b/arch/i386/bits/syscall.h
index
88cd0d7
..
daea552
100644
(file)
--- a/
arch/i386/bits/syscall.h
+++ b/
arch/i386/bits/syscall.h
@@
-1,6
+1,7
@@
-#define __SYSCALL_LL(x) \
+#define __SYSCALL_LL
_E
(x) \
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
+#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
static inline long __syscall0(long __n)
{
static inline long __syscall0(long __n)
{
@@
-60,7
+61,7
@@
static inline long __syscall1(long __n, long __a1)
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(__ret) : "a"(__n), "
r
"(__a1) : "memory");
+ : "=a"(__ret) : "a"(__n), "
d
"(__a1) : "memory");
return __ret;
}
return __ret;
}
@@
-68,7
+69,7
@@
static inline long __syscall2(long __n, long __a1, long __a2)
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(__ret) : "a"(__n), "
r
"(__a1), "c"(__a2) : "memory");
+ : "=a"(__ret) : "a"(__n), "
d
"(__a1), "c"(__a2) : "memory");
return __ret;
}
return __ret;
}
@@
-76,7
+77,7
@@
static inline long __syscall3(long __n, long __a1, long __a2, long __a3)
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(__ret) : "a"(__n), "
r
"(__a1), "c"(__a2), "d"(__a3) : "memory");
+ : "=a"(__ret) : "a"(__n), "
S
"(__a1), "c"(__a2), "d"(__a3) : "memory");
return __ret;
}
return __ret;
}
@@
-84,7
+85,7
@@
static inline long __syscall4(long __n, long __a1, long __a2, long __a3, long __
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
{
unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(__ret) : "a"(__n), "
r
"(__a1), "c"(__a2), "d"(__a3), "S"(__a4) : "memory");
+ : "=a"(__ret) : "a"(__n), "
D
"(__a1), "c"(__a2), "d"(__a3), "S"(__a4) : "memory");
return __ret;
}
return __ret;
}
@@
-469,6
+470,7
@@
static inline long __syscall6(long __n, long __a1, long __a2, long __a3, long __
#define __NR_inotify_init1 332
#define __NR_preadv 333
#define __NR_pwritev 334
#define __NR_inotify_init1 332
#define __NR_preadv 333
#define __NR_pwritev 334
+#define __NR_prlimit64 340
/* fixup legacy 16-bit junk */
#undef __NR_lchown
/* fixup legacy 16-bit junk */
#undef __NR_lchown
@@
-880,6
+882,7
@@
static inline long __syscall6(long __n, long __a1, long __a2, long __a3, long __
#define SYS_inotify_init1 332
#define SYS_preadv 333
#define SYS_pwritev 334
#define SYS_inotify_init1 332
#define SYS_preadv 333
#define SYS_pwritev 334
+#define SYS_prlimit64 340
/* fixup legacy 16-bit junk */
#undef SYS_lchown
/* fixup legacy 16-bit junk */
#undef SYS_lchown