]> git.ipfire.org Git - thirdparty/glibc.git/commit
MIPS: Setup errno for {f,l,}xstat
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 7 Sep 2021 05:31:42 +0000 (13:31 +0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Sep 2021 13:22:18 +0000 (10:22 -0300)
commit9b01145592fdbffbcbb949d680c152ed2bf2375d
tree4025d38b8676b6de428f856e166f4f0f89f4286d
parent9c676ef514c5e52bf7e6caabc3bfc9f918ef72ba
MIPS: Setup errno for {f,l,}xstat

{f,l,}xstat stub for MIPS is using INTERNAL_SYSCALL
to do xstat syscall for glibc ver, However it leaves
errno untouched and thus giving bad errno output.

Setup errno properly when syscall returns non-zero.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 66016ec8aeefd40e016d7040d966484c764b0e9c)
sysdeps/unix/sysv/linux/mips/fxstat.c
sysdeps/unix/sysv/linux/mips/lxstat.c
sysdeps/unix/sysv/linux/mips/xstat.c