summaryrefslogtreecommitdiff
path: root/arch/i386
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-19 22:18:53 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-19 22:18:53 -0400
commitbae862ab18186aba5cd80f1443492f7730dff5f3 (patch)
tree69122ff9e672f9c1b491301cd3f2ce2ab807d57e /arch/i386
parent7877db6b2f2deeceaac027579c661610655127f5 (diff)
downloadmusl-bae862ab18186aba5cd80f1443492f7730dff5f3.tar.gz
musl-bae862ab18186aba5cd80f1443492f7730dff5f3.tar.bz2
musl-bae862ab18186aba5cd80f1443492f7730dff5f3.tar.xz
musl-bae862ab18186aba5cd80f1443492f7730dff5f3.zip
honor namespace for i386 syscall.h, even though it's not a standard header
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/bits/syscall.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h
index f8429b27..8693ed5e 100644
--- a/arch/i386/bits/syscall.h
+++ b/arch/i386/bits/syscall.h
@@ -2,103 +2,103 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
-static inline long __syscall0(long n)
+static inline long __syscall0(long __n)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n) : "memory");
- return __syscall_ret(ret);
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n) : "memory");
+ return __syscall_ret(__ret);
}
#ifndef __PIC__
-static inline long __syscall1(long n, long a1)
+static inline long __syscall1(long __n, long __a1)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n), "b"(a1) : "memory");
- return ret;
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n), "b"(__a1) : "memory");
+ return __ret;
}
-static inline long __syscall2(long n, long a1, long a2)
+static inline long __syscall2(long __n, long __a1, long __a2)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n), "b"(a1), "c"(a2) : "memory");
- return ret;
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n), "b"(__a1), "c"(__a2) : "memory");
+ return __ret;
}
-static inline long __syscall3(long n, long a1, long a2, long a3)
+static inline long __syscall3(long __n, long __a1, long __a2, long __a3)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n), "b"(a1), "c"(a2), "d"(a3) : "memory");
- return ret;
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n), "b"(__a1), "c"(__a2), "d"(__a3) : "memory");
+ return __ret;
}
-static inline long __syscall4(long n, long a1, long a2, long a3, long a4)
+static inline long __syscall4(long __n, long __a1, long __a2, long __a3, long __a4)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n), "b"(a1), "c"(a2), "d"(a3), "S"(a4) : "memory");
- return ret;
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n), "b"(__a1), "c"(__a2), "d"(__a3), "S"(__a4) : "memory");
+ return __ret;
}
-static inline long __syscall5(long n, long a1, long a2, long a3, long a4, long a5)
+static inline long __syscall5(long __n, long __a1, long __a2, long __a3, long __a4, long __a5)
{
- unsigned long ret;
- __asm__ __volatile__ ("int $128" : "=a"(ret) : "a"(n), "b"(a1), "c"(a2), "d"(a3), "S"(a4), "D"(a5) : "memory");
- return ret;
+ unsigned long __ret;
+ __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n), "b"(__a1), "c"(__a2), "d"(__a3), "S"(__a4), "D"(__a5) : "memory");
+ return __ret;
}
-static inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a5, long a6)
+static inline long __syscall6(long __n, long __a1, long __a2, long __a3, long __a4, long __a5, long __a6)
{
- unsigned long ret;
+ unsigned long __ret;
__asm__ __volatile__ ("pushl %7 ; pushl %%ebp ; mov 4(%%esp),%%ebp ; int $128 ; popl %%ebp ; popl %%ecx"
- : "=a"(ret) : "a"(n), "b"(a1), "c"(a2), "d"(a3), "S"(a4), "D"(a5), "g"(a6) : "memory");
- return ret;
+ : "=a"(__ret) : "a"(__n), "b"(__a1), "c"(__a2), "d"(__a3), "S"(__a4), "D"(__a5), "g"(__a6) : "memory");
+ return __ret;
}
#else
-static inline long __syscall1(long n, long a1)
+static inline long __syscall1(long __n, long __a1)
{
- unsigned long ret;
+ unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(ret) : "a"(n), "r"(a1) : "memory");
- return ret;
+ : "=a"(__ret) : "a"(__n), "r"(__a1) : "memory");
+ return __ret;
}
-static inline long __syscall2(long n, long a1, long a2)
+static inline long __syscall2(long __n, long __a1, long __a2)
{
- unsigned long ret;
+ unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(ret) : "a"(n), "r"(a1), "c"(a2) : "memory");
- return ret;
+ : "=a"(__ret) : "a"(__n), "r"(__a1), "c"(__a2) : "memory");
+ return __ret;
}
-static inline long __syscall3(long n, long a1, long a2, long a3)
+static inline long __syscall3(long __n, long __a1, long __a2, long __a3)
{
- unsigned long ret;
+ unsigned long __ret;
__asm__ __volatile__ ("xchg %2,%%ebx ; int $128 ; xchg %2,%%ebx"
- : "=a"(ret) : "a"(n), "r"(a1), "c"(a2), "d"(a3) : "memory");
- return ret;
+ : "=a"(__ret) : "a"(__n), "r"(__a1), "c"(__a2), "d"(__a3) : "memory");
+ return __ret;
}
-static inline long __syscall4(long n, long a1, long a2, long a3, long a4)
+static inline long __syscall4(long __n, long __a1, long __a2, long __a3, long __a4)
{
- unsigned long ret;
+ 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");
- return ret;
+ : "=a"(__ret) : "a"(__n), "r"(__a1), "c"(__a2), "d"(__a3), "S"(__a4) : "memory");
+ return __ret;
}
-static inline long __syscall5(long n, long a1, long a2, long a3, long a4, long a5)
+static inline long __syscall5(long __n, long __a1, long __a2, long __a3, long __a4, long __a5)
{
- unsigned long ret;
+ unsigned long __ret;
__asm__ __volatile__ ("pushl %2 ; pushl %%ebx ; mov 4(%%esp),%%ebx ; int $128 ; popl %%ebx ; popl %%ecx"
- : "=a"(ret) : "a"(n), "g"(a1), "c"(a2), "d"(a3), "S"(a4), "D"(a5) : "memory");
- return ret;
+ : "=a"(__ret) : "a"(__n), "g"(__a1), "c"(__a2), "d"(__a3), "S"(__a4), "D"(__a5) : "memory");
+ return __ret;
}
-static inline long __syscall6(long n, long a1, long a2, long a3, long a4, long a5, long a6)
+static inline long __syscall6(long __n, long __a1, long __a2, long __a3, long __a4, long __a5, long __a6)
{
- return (__syscall)(n, a1, a2, a3, a4, a5, a6);
+ return (__syscall)(__n, __a1, __a2, __a3, __a4, __a5, __a6);
}
#endif