From patchwork Mon Mar 8 18:53:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449343 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=or5bzG5r; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DvSFT1GvCz9sW1 for ; Tue, 9 Mar 2021 05:54:53 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8E6FB3951402; Mon, 8 Mar 2021 18:54:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E6FB3951402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229660; bh=ckUTs0DsaRpVJesx7XOrRPoJPEKs+Oh3D108n+QTFIA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=or5bzG5rZZq8665InbToT9/u8pTujk1bfE2Yxg2oOqTVhpr4wcBN81vWcXTqkd/NL BHFYqd9ITIwQyxzXBvjrPxH8K2JS/F0oJoAKSpTej5XffpHVrrd+yq/0Dqg2KwJ/je hA4xkHmQGUVuR9MRgpTFeBGhhRrE3LOkPt/LSE6k= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id D49453951402 for ; Mon, 8 Mar 2021 18:54:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D49453951402 Received: by mail-wm1-x329.google.com with SMTP id d139-20020a1c1d910000b029010b895cb6f2so4441446wmd.5 for ; Mon, 08 Mar 2021 10:54:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ckUTs0DsaRpVJesx7XOrRPoJPEKs+Oh3D108n+QTFIA=; b=VWNZHt2rV0YRI5qResJcO8XGWXsITrGrxs64JeSxL9bV0lZCWn/wd+DP/IdGbfOtam KAjT237s5WiuxAwd1ZR7cZjIwxVgubZmse4IKZu+5IpSf6U0oze1Zu9XHghflIa4iec1 kXnZpHuXMxwXf5232jE6ym5IlTKA8OSPLp+71fUehlHtoHI5BUoqZT2wlFlwsuVPui2o 612H6A+Pqv12xcFCZ+Ta0SQvHnaql/pZ0nMeTSXM7ZqRrNkxDCy4CUrpYZgr+m+aTjqP LxY7K/HdnrAoa3z6m7tIdoNICITa+/KgTMZzyrUSTUCbqPAug7Sz61NlmW/NbQX+q3NH /vkw== X-Gm-Message-State: AOAM530Jnxgv+D4hLfL8LpMnNx6PnWYybi5CDbOhOMW44yHppeAx6Ltk WLgMc9STf+/RYDzV7z6ldvIyGAksia4= X-Google-Smtp-Source: ABdhPJww38tJTDeWTNgBf0kjjlApqihDyEDFcaZmjSZLn7x6WKXVHg5EPqRMbbP0AU+84mWo7bvveA== X-Received: by 2002:a1c:c20a:: with SMTP id s10mr209150wmf.144.1615229657028; Mon, 08 Mar 2021 10:54:17 -0800 (PST) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id i11sm19889921wro.53.2021.03.08.10.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:16 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 10/23] pthread_rwlockattr_setkind_np.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:19 +0100 Message-Id: <20210308185331.242176-11-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308185331.242176-1-alx.manpages@gmail.com> References: <20210308185331.242176-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" glibc uses 'restrict' in pthread_rwlockattr_getkind_np(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_rwlockattr_getkind_np sysdeps/htl/pthread.h:633: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pref) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:983: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pref) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/pthread_rwlockattr_setkind_np.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man3/pthread_rwlockattr_setkind_np.3 b/man3/pthread_rwlockattr_setkind_np.3 index eb2dc19bf..7ade3ba7d 100644 --- a/man3/pthread_rwlockattr_setkind_np.3 +++ b/man3/pthread_rwlockattr_setkind_np.3 @@ -31,9 +31,10 @@ the read-write lock kind of the thread read-write lock attribute object .B #include .PP .BI "int pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *" attr , -.BI " int " pref ); -.BI "int pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *" attr , -.BI " int *" pref ); +.BI " int " pref ); +.BI "int pthread_rwlockattr_getkind_np(" +.BI " const pthread_rwlockattr_t *restrict " attr , +.BI " int *restrict " pref ); .PP Compile and link with \fI\-pthread\fP. .PP