about summary refs log tree commit diff
path: root/include/locale.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-03-11 19:02:52 -0400
committerRich Felker <dalias@aerifal.cx>2020-03-14 21:23:37 -0400
commit5db475f0b987bfa7935a117aac81e14a98de34fb (patch)
tree3898bc9c526dfe56fe189c91493b9a7c7b1b082f /include/locale.h
parentdb86ec100dc9973946ebfc9cf0d91686e334731a (diff)
downloadmusl-5db475f0b987bfa7935a117aac81e14a98de34fb.tar.gz
musl-5db475f0b987bfa7935a117aac81e14a98de34fb.tar.xz
musl-5db475f0b987bfa7935a117aac81e14a98de34fb.zip
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.
Diffstat (limited to 'include/locale.h')
0 files changed, 0 insertions, 0 deletions