1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-04-23 10:27:48 +03:00
Adhemerval Zanella cb49c65bb5 linux: Use INTERNAL_SYSCALL on fstatat{64}
Although not required by the standards, some code expects that a
successful stat call should not set errno.  However since aa03f722f3b99
'linux: Add {f}stat{at} y2038 support', on 32-bit systems with 32-bit
time_t supporrt, stat implementation will first issues __NR_statx and
if it fails with ENOSYS issue the system stat syscall.

On architecture running on kernel without __NR_statx support the
first call will set the errno to ENOSYS, even when the following stat
syscall might not fail.

This patch fixes by using INTERNAL_SYSCALL and only setting the errno
value when function returns.

Checked on i686-linux-gnu, x86_64-linux-gnu, sparc64-linux-gnu,
sparcv9-linux-gnu, powerpc64-linux-gnu, powerpc64le-linux-gnu,
arm-linux-gnueabihf, and aarch64-linux-gnu.
2020-10-16 14:17:44 -03:00
..
2020-07-16 17:55:35 +02:00
2020-08-24 14:27:19 -03:00
2020-09-11 14:41:57 -03:00
2020-08-24 14:28:21 -03:00
2020-08-24 15:04:31 -03:00
2020-10-07 16:41:30 +02:00
2020-10-09 17:02:07 -03:00
2020-09-02 09:16:05 -03:00
2020-02-14 21:12:45 -03:00
2020-10-09 17:02:07 -03:00
2020-08-24 15:04:31 -03:00
2020-09-11 14:42:02 -03:00
2020-04-30 10:42:43 -07:00
2020-09-11 16:20:49 -03:00
2020-02-14 21:12:45 -03:00
2020-09-28 17:28:39 -03:00
2020-07-16 17:55:35 +02:00
2020-09-28 16:21:48 -03:00
2020-02-14 21:12:45 -03:00
2020-10-09 17:02:07 -03:00
2020-02-14 21:12:45 -03:00
2020-01-03 11:22:07 -03:00
2020-02-14 21:12:45 -03:00
2020-08-24 15:04:31 -03:00
2020-07-16 17:55:35 +02:00
2020-09-11 14:35:13 -03:00