From patchwork Mon May 8 11:21:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 68902 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE13C3858416 for ; Mon, 8 May 2023 11:21:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE13C3858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683544906; bh=NoETn07JPpZeshyPcspZLzl2ybZwWwHbOUl/9UF2D0w=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Mha9R4wBF0T7XwOQUyik5KU7g/LRzveKXQdriSmsxHjiqXGEcjmA9DHqctcQ7TPqf yG4rQdQFcg8dqxsF6J0UIHLXYRCZdfe3WcurnhYcZyBFYt5Uv37YctmGOE3dvYEqsX wO1ov/auTleF368xF0XEiNoMtRy9XR4Nji7CIF3o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 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) 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 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The argument to @deftypefun must be on a single line. Also add the missing @safety for sem_clockwait. Reported-by: Nilgün Belma Bugüner --- manual/threads.texi | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) base-commit: a26238d3ca21fda6d7d41b4d56541fcf4546fbe7 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. @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 measured 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 than @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthread_mutex_t *@var{mutex}, - clockid_t @var{clockid}, const struct timespec *@var{abstime}) +@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthread_mutex_t *@var{mutex}, clockid_t @var{clockid}, const struct timespec *@var{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} was called. Currently, @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_rwlock_clockrdlock (pthread_rwlock_t *@var{rwlock}, - clockid_t @var{clockid}, - 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. @comment pthread.h @comment POSIX-proposed -@deftypefun int pthread_rwlock_clockwrlock (pthread_rwlock_t *@var{rwlock}, - clockid_t @var{clockid}, - 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. @comment pthread.h @comment GNU extension -@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread}, - void **@var{thread_return}) +@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread}, void **@var{thread_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. @comment pthread.h @comment GNU extension -@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread}, - void **@var{thread_return}, - 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_join}. @comment pthread.h @comment GNU extension -@deftypefun int pthread_clockjoin_np (pthread_t *@var{thread}, - void **@var{thread_return}, - clockid_t @var{clockid}, - 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{abstime}) @standards{GNU, pthread.h} @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}} Behaves like @code{pthread_timedjoin_np} except that the absolute time in