Message ID | 20210305235105.177359-18-alx.manpages@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> 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=<UNKNOWN>) 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=UdMEDc2z; dkim-atps=neutral Received: from sourceware.org (unknown [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 4Dsl0L1X85z9sVt for <incoming@patchwork.ozlabs.org>; Sat, 6 Mar 2021 10:52:34 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7FF1E399F006; Fri, 5 Mar 2021 23:51:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FF1E399F006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988293; bh=7iYcRtk8ePpQIgI+HpUz/1CukQcnMbfcb0xsWzo9UF8=; 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=UdMEDc2zy3nYT3CvnUnjvs7b4DczKBKJSiriZbF8kc16GfnJM0qVxwJ8EcZ8Imac0 bIa2LFxzUPML+d+uLBfb/3Wv0QovuagX3Utl1JMsTMOu0ocakqu2PxOfa6ouiIAIh4 J/wgrwGZenGQBqvUSNTk+T8hr7OgzNRa6XJGOPfA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 3C027399C033 for <libc-alpha@sourceware.org>; Fri, 5 Mar 2021 23:51:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C027399C033 Received: by mail-wm1-x32f.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so241805wmj.1 for <libc-alpha@sourceware.org>; Fri, 05 Mar 2021 15:51:30 -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=7iYcRtk8ePpQIgI+HpUz/1CukQcnMbfcb0xsWzo9UF8=; b=CoMiN7FE25JeEdrre4U3Nb5TYiuFVY65Pc7ofwXd8DkYdmTR5Rlrv5KW8IRSczKMFX KHbupIJBRDWYNGmf6Q3E4MkEPxs88amTSwwrvwd9s1R43+1wYu5GMokwdALZ616Xs4FB J8zYRxYTsb2U2yPtdPoz5wlMxJeEvYDtYJGYPstiJ/Fer5qjLK/wXZLg97JBH4+3HTEZ z4X8adSO2f08bki6ELh68MbBNnC3L0kEMf8SOs3oTe0dK/b8lVmhjMyYxyA45RS1abF9 mCXyItsCEeulHDGQie0RGsj8K/W6Yn4lAG9WKx23BNMrD6Tox5VKsHh66LCQb6oZYRbQ uNjw== X-Gm-Message-State: AOAM532v7bLXLrXGaDD3a7TUtjFr+gALMMdgFbTQN7iav+jAP2tQB+nz Lz+O5q5CIyI7bUX1SsGvGqg= X-Google-Smtp-Source: ABdhPJzMSluTrw5oDtWGf8lL/tB5QtTmIdAsGCi8MML7mY3FGjTI10p83ziNaZXwKbAYYFBZ4jMSkA== X-Received: by 2002:a05:600c:2cb9:: with SMTP id h25mr11126321wmc.110.1614988289448; Fri, 05 Mar 2021 15:51:29 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 15:51:29 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 17/22] mq_getattr.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:51:01 +0100 Message-Id: <20210305235105.177359-18-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210305235105.177359-1-alx.manpages@gmail.com> References: <20210305235105.177359-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3)
|
expand
|
diff --git a/man3/mq_getattr.3 b/man3/mq_getattr.3 index 32bfe21be..f1925fc71 100644 --- a/man3/mq_getattr.3 +++ b/man3/mq_getattr.3 @@ -30,8 +30,8 @@ mq_getattr, mq_setattr \- get/set message queue attributes .B #include <mqueue.h> .PP .BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr ); -.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *" newattr "," -.BI " struct mq_attr *" oldattr ); +.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *restrict " newattr , +.BI " struct mq_attr *restrict " oldattr ); .fi .PP Link with \fI\-lrt\fP.
Both POSIX and glibc use 'restrict' in mq_setattr(). Let's use it here too. .../glibc$ grep_glibc_prototype mq_setattr rt/mqueue.h:51: extern int mq_setattr (mqd_t __mqdes, const struct mq_attr *__restrict __mqstat, struct mq_attr *__restrict __omqstat) __THROW __nonnull ((2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/mq_getattr.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)