1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-01 05:02:03 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Adhemerval Zanella 2deb779390 sysvipc: Fix semtimedop for Linux < 5.1 for 64-bit ABI
Both powerpc64 and s390x provides semtimedop through __NR_ipc for
pre v5.1 kernel.  Neither the y2038 support (7c437d3778) nor the
attempt to fix an issue for !__ASSUME_DIRECT_SYSVIPC_SYSCALLS
(aaa12e9ff0) took this in consideration.

This patch fixes it by issuing __NR_semtimedop_time64 iff it is
defined, otherwise __NR_semtimeop is issued if both
__ASSUME_DIRECT_SYSVIPC_SYSCALLS it set and __NR_semtimedop is
define, other __NR_ipc is used instead.  To summarize:

  1. For 32-bit architetures __NR_semtimedop_time64 is always
     issued.  The fallback is used only for !__ASSUME_TIME64_SYSCALLS
     and it issues either __NR_ipc or __NR_semtimedop.

  2. For 64-bit architecture with wire-up SysV syscall
     (__ASSUME_DIRECT_SYSVIPC_SYSCALLS and __NR_semtimeop defined)
     __NR_semtimeop is issued.

  3. Otherwise __NR_ipc is used instead.

Checked on x86_64-linux-gnu, i686-linux-gnu (kernel 4.15 and 5.4),
powerpc64le (kernel 4.18), and s390x (kernel 4.12).

Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
2020-09-30 18:03:51 -03:00
..
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-07-16 17:55:35 +02:00
2020-09-17 18:49:30 -04:00
2020-09-28 16:21:59 -03:00
2020-09-28 16:21:59 -03:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-09-17 18:49:30 -04:00
2020-07-16 17:55:35 +02:00
2020-07-16 17:55:35 +02:00
2020-09-17 18:49:30 -04: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-09-11 14:35:20 -03:00
2020-09-11 14:35:20 -03:00
2020-09-11 14:35:24 -03:00
2020-09-11 14:35:24 -03:00
2020-09-02 09:16:05 -03:00
2020-02-14 21:12:45 -03:00
2020-09-11 14:35:15 -03:00
2020-09-11 14:35:15 -03:00
2020-09-11 16:20:49 -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-02-14 21:12:45 -03:00
2020-01-03 11:22:07 -03:00
2020-08-24 15:04:31 -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:27 -03:00
2020-09-11 14:35:13 -03:00
2020-09-11 14:35:13 -03:00
2020-09-11 14:35:13 -03:00