From b4c3446836285fc3d1465dc9b8c587c8f50e4922 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 23 Nov 2020 13:47:18 -0300 Subject: nptl: Return EINVAL for invalid clock for pthread_clockjoin_np The align the GNU extension with the others one that accept specify which clock to wait for (such as pthread_mutex_clocklock). Check on x86_64-linux-gnu. Reviewed-by: Lukasz Majewski --- manual/threads.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manual') diff --git a/manual/threads.texi b/manual/threads.texi index 5bcfe32d6a..06b6b277a1 100644 --- a/manual/threads.texi +++ b/manual/threads.texi @@ -842,6 +842,8 @@ will wait forever in the same way as @code{pthread_join}. @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_timedjoin_np} except that the absolute time in @var{abstime} is measured against the clock specified by @var{clockid}. +Currently, @var{clockid} must be either @code{CLOCK_MONOTONIC} or +@code{CLOCK_REALTIME}. @end deftypefun @node Single-Threaded -- cgit 1.4.1