glibc/sysdeps
Adhemerval Zanella a3e7aead03 nptl: Replace __futex_clocklock_wait64 with __futex_abstimed_wait64
For non null timeouts, the __futex_clocklock_wait64 creates an a
relative timeout by subtracting the current time from the input
argument.  The same behavior can be obtained with FUTEX_WAIT_BITSET
without the need to calculate the relative timeout.  Besides consolidate
the code it also avoid the possible relative timeout issues [1].

The __futex_abstimed_wait64 needs also to return EINVAL syscall
errors.

Checked on x86_64-linux-gnu and i686-linux-gnu.

[1] https://sourceware.org/pipermail/libc-alpha/2020-November/119881.html

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-11-25 10:43:18 -03:00
..
aarch64 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
alpha nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
arc nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
arm nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
csky nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
generic nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
gnu string: Fix strerrorname_np return value [BZ #26555] 2020-09-29 13:56:06 -03:00
hppa nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
htl hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
hurd hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
i386 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
ia64 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
ieee754 Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
m68k nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
mach hurd: Enable using ifunc 2020-11-16 21:15:20 +00:00
microblaze nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
mips nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
nios2 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
nptl nptl: Replace __futex_clocklock_wait64 with __futex_abstimed_wait64 2020-11-25 10:43:18 -03:00
posix linux: Move posix dir implementations to Linux 2020-10-16 14:19:23 -03:00
powerpc powerpc: Make PT_THREAD_POINTER available to assembly code 2020-11-24 14:15:01 -03:00
pthread C11 threads: Fix inaccuracies in testsuite 2020-09-07 11:42:52 +02:00
riscv nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
s390 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
sh nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
sparc nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
unix nanosleep: Pass NULL when rem == NULL on ports with __TIMESIZE != 64 2020-11-14 22:12:40 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
x86 x86: Remove UP macro. Define LOCK_PREFIX unconditionally. 2020-11-13 15:20:03 +01:00
x86_64 nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00