X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fmipsn32%2Fsyscall_arch.h;h=93a026f65dd1af28341bd9196b7342d0825cef4e;hb=131276809fe3b7bed6086772bc5e3e9941dc6c6c;hp=58d2c8bde911a3cd0030a1543d4b165bf53b38f7;hpb=5972c4a4113e2a4de5edf519faf15296ae1eb3ed;p=musl diff --git a/arch/mipsn32/syscall_arch.h b/arch/mipsn32/syscall_arch.h index 58d2c8bd..93a026f6 100644 --- a/arch/mipsn32/syscall_arch.h +++ b/arch/mipsn32/syscall_arch.h @@ -18,8 +18,6 @@ static inline void __stat_fix(long p) } #endif -#ifndef __clang__ - static inline long __syscall0(long n) { register long r7 __asm__("$7"); @@ -99,55 +97,16 @@ static inline long __syscall4(long n, long a, long b, long c, long d) if (r7) return -r2; long ret = r2; if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - if (n == SYS_fstatat) __stat_fix(c); + if (n == SYS_newfstatat) __stat_fix(c); return ret; } -#else - -static inline long __syscall0(long n) -{ - return (__syscall)(n); -} - -static inline long __syscall1(long n, long a) -{ - return (__syscall)(n, a); -} - -static inline long __syscall2(long n, long a, long b) -{ - long r2 = (__syscall)(n, a, b); - if (r2 > -4096UL) return r2; - if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - return r2; -} - -static inline long __syscall3(long n, long a, long b, long c) -{ - long r2 = (__syscall)(n, a, b, c); - if (r2 > -4096UL) return r2; - if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - return r2; -} - -static inline long __syscall4(long n, long a, long b, long c, long d) -{ - long r2 = (__syscall)(n, a, b, c, d); - if (r2 > -4096UL) return r2; - if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - if (n == SYS_fstatat) __stat_fix(c); - return r2; -} - -#endif - static inline long __syscall5(long n, long a, long b, long c, long d, long e) { long r2 = (__syscall)(n, a, b, c, d, e); if (r2 > -4096UL) return r2; if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - if (n == SYS_fstatat) __stat_fix(c); + if (n == SYS_newfstatat) __stat_fix(c); return r2; } @@ -156,7 +115,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo long r2 = (__syscall)(n, a, b, c, d, e, f); if (r2 > -4096UL) return r2; if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat) __stat_fix(b); - if (n == SYS_fstatat) __stat_fix(c); + if (n == SYS_newfstatat) __stat_fix(c); return r2; }