From 822dddfbf1884553341114663aff56ed87d57663 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 18 Feb 2017 00:50:09 +0000 Subject: make syscall.h consistent with linux most of the found naming differences don't matter to musl, because internally it unifies the syscall names that vary across targets, but for external code the names should match the kernel uapi. aarch64: __NR_fstatat is called __NR_newfstatat in linux. __NR_or1k_atomic got mistakenly copied from or1k. arm: __NR_arm_sync_file_range is an alias for __NR_sync_file_range2 __NR_fadvise64_64 is called __NR_arm_fadvise64_64 in linux, the old non-arm name is kept too, it should not cause issues. (powerpc has similar nonstandard fadvise and it uses the normal name.) i386: __NR_madvise1 was removed from linux in commit 303395ac3bf3e2cb488435537d416bc840438fcb 2011-11-11 microblaze: __NR_fadvise, __NR_fstatat, __NR_pread, __NR_pwrite had different name in linux. mips: __NR_fadvise, __NR_fstatat, __NR_pread, __NR_pwrite, __NR_select had different name in linux. mipsn32: __NR_fstatat is called __NR_newfstatat in linux. or1k: __NR__llseek is called __NR_llseek in linux. the old name is kept too because that's the name musl uses internally. powerpc: __NR_{get,set}res{gid,uid}32 was never present in powerpc linux. __NR_timerfd was briefly defined in linux but then got renamed. --- arch/mipsn32/syscall_arch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/mipsn32/syscall_arch.h') diff --git a/arch/mipsn32/syscall_arch.h b/arch/mipsn32/syscall_arch.h index 37e71a7e..93a026f6 100644 --- a/arch/mipsn32/syscall_arch.h +++ b/arch/mipsn32/syscall_arch.h @@ -97,7 +97,7 @@ 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; } @@ -106,7 +106,7 @@ 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; } @@ -115,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; } -- cgit v1.2.1