glibc/sysdeps
Joseph Myers b371ed2726 Check time arguments to pthread_timedjoin_np and pthread_clockjoin_np
The pthread_timedjoin_np and pthread_clockjoin_np functions do not
check that a valid time has been specified.  The documentation for
these functions in the glibc manual isn't sufficiently detailed to say
if they should, but consistency with POSIX functions such as
pthread_mutex_timedlock and pthread_cond_timedwait strongly indicates
that an EINVAL error is appropriate (even if there might be some
ambiguity about exactly where such a check should go in relation to
other checks for whether the thread exists, whether it's immediately
joinable, etc.).  Copy the logic for such a check used in
pthread_rwlock_common.c.

pthread_join_common had some logic calling valid_nanoseconds before
commit 9e92278ffa, "nptl: Remove
clockwait_tid"; I haven't checked exactly what cases that detected.

Tested for x86_64 and x86.
2024-10-21 20:56:48 +00:00
..
aarch64 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
alpha replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
arc replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
arm replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
csky replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
generic stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
htl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
ieee754 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
loongarch replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
m68k replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
mach Fix header guard in sysdeps/mach/hurd/x86_64/vm_param.h 2024-10-09 19:16:53 +02:00
microblaze replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
mips replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
nios2 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
nptl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
or1k replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
posix stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
powerpc replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
pthread Check time arguments to pthread_timedjoin_np and pthread_clockjoin_np 2024-10-21 20:56:48 +00:00
riscv replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
s390 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
sh replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
sparc replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00
unix linux: Fix tst-syscall-restart.c on old gcc (BZ 32283) 2024-10-18 08:48:22 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 x86: Enable non-temporal memset for Hygon processors 2024-08-26 10:01:58 -07:00
x86_64 replace tgammaf by the CORE-MATH implementation 2024-10-11 11:12:32 +02:00