}
#endif
-#ifndef __clang__
-
static inline long __syscall0(long n)
{
register long r7 __asm__("$7");
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_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __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_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __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_stat64 || n == SYS_fstat64 || n == SYS_lstat64) __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);
st->st_blocks = kst->st_blocks;
}
-#ifndef __clang__
-
static inline long __syscall0(long n)
{
register long r7 __asm__("$7");
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;
- long old_b = b;
- struct kernel_stat kst;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- b = (long) &kst;
-
- r2 = (__syscall)(n, a, b);
- if (r2 > -4096UL) return r2;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- __stat_fix(&kst, (struct stat *)old_b);
-
- return r2;
-}
-
-static inline long __syscall3(long n, long a, long b, long c)
-{
- long r2;
- long old_b = b;
- struct kernel_stat kst;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- b = (long) &kst;
-
- r2 = (__syscall)(n, a, b, c);
- if (r2 > -4096UL) return r2;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- __stat_fix(&kst, (struct stat *)old_b);
-
- return r2;
-}
-
-static inline long __syscall4(long n, long a, long b, long c, long d)
-{
- long r2;
- long old_b = b;
- long old_c = c;
- struct kernel_stat kst;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- b = (long) &kst;
- if (n == SYS_newfstatat)
- c = (long) &kst;
-
- r2 = (__syscall)(n, a, b, c, d);
- if (r2 > -4096UL) return r2;
-
- if (n == SYS_stat || n == SYS_fstat || n == SYS_lstat)
- __stat_fix(&kst, (struct stat *)old_b);
- if (n == SYS_newfstatat)
- __stat_fix(&kst, (struct stat *)old_c);
-
- return r2;
-}
-
-#endif
-
static inline long __syscall5(long n, long a, long b, long c, long d, long e)
{
long r2;
}
#endif
-#ifndef __clang__
-
static inline long __syscall0(long n)
{
register long r7 __asm__("$7");
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);