musl/arch
Rich Felker 5db475f0b9 work around negated error code bug on some mips kernels
on all mips variants, Linux did (and maybe still does) have some
syscall return paths that wrongly return both the error flag in r7 and
a negated error code in r2. in particular this happened for at least
some causes of ENOSYS.

add an extra check to only negate the error code if it's positive to
begin with.

bug report and concept for patch by Andreas Dröscher.
2020-03-14 21:23:37 -04:00
..
aarch64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
arm remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
generic move struct dirent to bits header, allow NAME_MAX to vary 2020-01-25 23:08:55 -05:00
i386 remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
m68k remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
microblaze remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
mips work around negated error code bug on some mips kernels 2020-03-14 21:23:37 -04:00
mips64 work around negated error code bug on some mips kernels 2020-03-14 21:23:37 -04:00
mipsn32 work around negated error code bug on some mips kernels 2020-03-14 21:23:37 -04:00
or1k remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
powerpc remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
powerpc64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
riscv64 move riscv64 register index constants to signal.h 2020-02-04 09:29:13 -05:00
s390x add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
sh remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
x32 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
x86_64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00