From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 7F4DF3858D32 for ; Mon, 8 May 2023 11:21:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F4DF3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683544884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NoETn07JPpZeshyPcspZLzl2ybZwWwHbOUl/9UF2D0w=; b=FlEOdlvKtPjXSRPUMxceET7VdBjHZ+AffVWeQxO8maiLvJPzIC5TwDKT4lacxcjVXK2mX1 hfthv8sFj1/AnUUGq34On/9wBhtyX7wRwmNaR8zwYIe1d7me7G/kR9BBLcRuS4ZPl6UhbJ eww2htZOKPMQlmZs4RgIFiYfqHurLmo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-662-rbioaC57NoW9EkFS0fj93w-1; Mon, 08 May 2023 07:21:23 -0400 X-MC-Unique: rbioaC57NoW9EkFS0fj93w-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A926D85A5B1; Mon, 8 May 2023 11:21:22 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CE7221121315; Mon, 8 May 2023 11:21:21 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: =?utf-8?Q?Nilg=C3=BCn?= Belma =?utf-8?Q?Bug=C3=BCner?= Subject: [PATCH] manual: Remove unsupported line breaks in waiting-with-clock section Date: Mon, 08 May 2023 13:21:20 +0200 Message-ID: <87h6snrrv3.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The argument to @deftypefun must be on a single line. Also add the missing @safety for sem_clockwait. Reported-by: Nilg=C3=BCn Belma Bug=C3=BCner --- manual/threads.texi | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/manual/threads.texi b/manual/threads.texi index 48fd562923..a721c7f464 100644 --- a/manual/threads.texi +++ b/manual/threads.texi @@ -754,8 +754,8 @@ freed. =20 @comment semaphore.h @comment POSIX-proposed -@deftypefun int sem_clockwait (sem_t *@var{sem}, clockid_t @var{clockid}, - const struct timespec *@var{abstime}) +@deftypefun int sem_clockwait (sem_t *@var{sem}, clockid_t @var{clockid}, = const struct timespec *@var{abstime}) +@safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{sem_timedwait} except the time @var{abstime} is measure= d against the clock specified by @var{clockid} rather than @code{CLOCK_REALTIME}. Currently, @var{clockid} must be either @@ -764,8 +764,7 @@ against the clock specified by @var{clockid} rather tha= n =20 @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthrea= d_mutex_t *@var{mutex}, - clockid_t @var{clockid}, const str= uct timespec *@var{abstime}) +@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthrea= d_mutex_t *@var{mutex}, clockid_t @var{clockid}, const struct timespec *@va= r{abstime}) @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} @c If exactly the same function with arguments is called from a signal @c handler that interrupts between the mutex unlock and sleep then it @@ -784,10 +783,7 @@ specified or defaulted when @code{pthread_cond_init} w= as called. Currently, =20 @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_rwlock_clockrdlock (pthread_rwlock_t *@var{rwlock}= , -=09=09=09=09 clockid_t @var{clockid}, -=09=09=09=09 const struct timespec *@var{abstime}) - +@deftypefun int pthread_rwlock_clockrdlock (pthread_rwlock_t *@var{rwlock}= , clockid_t @var{clockid}, const struct timespec *@var{abstime}) @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_rwlock_timedrdlock} except the time @var{abstime} is measured against the clock specified by @var{clockid} @@ -798,10 +794,7 @@ returned. =20 @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_rwlock_clockwrlock (pthread_rwlock_t *@var{rwlock}= , -=09=09=09=09 clockid_t @var{clockid}, -=09=09=09=09 const struct timespec *@var{abstime}) - +@deftypefun int pthread_rwlock_clockwrlock (pthread_rwlock_t *@var{rwlock}= , clockid_t @var{clockid}, const struct timespec *@var{abstime}) @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_rwlock_timedwrlock} except the time @var{abstime} is measured against the clock specified by @var{clockid} @@ -812,8 +805,7 @@ returned. =20 @comment pthread.h @comment GNU extension -@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread}, -=09=09=09=09 void **@var{thread_return}) +@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread}, void **@var{t= hread_return}) @standards{GNU, pthread.h} @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_join} except that it will return @code{EBUSY} @@ -822,9 +814,7 @@ immediately if the thread specified by @var{thread} has= not yet terminated. =20 @comment pthread.h @comment GNU extension -@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread}, -=09=09=09=09 void **@var{thread_return}, -=09=09=09=09 const struct timespec *@var{abstime}) +@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread}, void **@var= {thread_return}, const struct timespec *@var{abstime}) @standards{GNU, pthread.h} @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_tryjoin_np} except that it will block until the @@ -836,10 +826,7 @@ will wait forever in the same way as @code{pthread_joi= n}. =20 @comment pthread.h @comment GNU extension -@deftypefun int pthread_clockjoin_np (pthread_t *@var{thread}, -=09=09=09=09 void **@var{thread_return}, - clockid_t @var{clockid}, -=09=09=09=09 const struct timespec *@var{abstime}) +@deftypefun int pthread_clockjoin_np (pthread_t *@var{thread}, void **@var= {thread_return}, clockid_t @var{clockid}, const struct timespec *@var{absti= me}) @standards{GNU, pthread.h} @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_timedjoin_np} except that the absolute time in base-commit: a26238d3ca21fda6d7d41b4d56541fcf4546fbe7