musl/arch/mips
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
..
bits remove legacy time32 timer[fd] syscalls from public syscall.h 2020-02-05 09:57:41 -05:00
arch.mak switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
atomic_arch.h add support for mips and mips64 r6 isa 2016-04-03 10:42:37 +00:00
crt_arch.h remove workaround for broken mips assemblers 2016-02-08 21:07:09 +00:00
ksigaction.h apply hidden visibility to sigreturn code fragments 2018-09-12 14:34:34 -04:00
kstat.h remove mips/n32/64 stat struct hacks from syscall machinery 2019-07-18 19:38:37 -04:00
pthread_arch.h make thread-pointer-loading asm non-volatile 2018-10-16 14:11:46 -04:00
reloc.h remove use of endian.h from arch reloc.h headers, clean up 2019-10-17 16:06:12 -04:00
syscall_arch.h work around negated error code bug on some mips kernels 2020-03-14 21:23:37 -04:00