From patchwork Fri Mar 5 23:51:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1448313 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=2620:52:3:1:0:246e:9693:128c; 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=cKYHUw1L; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Dsl0Q1Wl1z9sVt for ; Sat, 6 Mar 2021 10:52:38 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BE4A399C02E; Fri, 5 Mar 2021 23:51:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE4A399C02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614988294; bh=mIc6rGAqKPEz4YerYnPfyn1kpGW1lLvqw0RqeL5TtrE=; 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=cKYHUw1Ld7/3+gJwym4qs008W5YA3U/mZjHTMPW5Q3iRsFygMRMPiC30iaZY5GE5E omac2YNHtsTMcCpTcwaXgB5MZ8vAkvNh+IC8+cw4jbUO6+9VWN9zuRum5e2OHBRZfq QtqLPfq2CJ1L2S+suhKeui/zTtgwE8Wm/q8ZvEtA= 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 05DA8399F003 for ; Fri, 5 Mar 2021 23:51:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 05DA8399F003 Received: by mail-wm1-x329.google.com with SMTP id y124-20020a1c32820000b029010c93864955so255211wmy.5 for ; 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=mIc6rGAqKPEz4YerYnPfyn1kpGW1lLvqw0RqeL5TtrE=; b=K/VT/zW6elvO0ugcxF0jI6y2p6qMeDIsz3e7AAeeFPuUM4zU9/2ZKJCwNKNQ07odU4 jLrj/zMiHnK9QPwYsEvHnd+Wky3KZ9htHhnpkxmKx3MTRvrzKxn6CLN1RVGLPfBajbfL hEvZzQ13SgWc4kTiRf2V2ScAEu6xCiEPCudWmphab1VcdYlP20QMgIG5zDNI9wFZV+Bs f/HRrQEQ8g0Wh1j6hFLy+0zNUIlMbwKM66HdI5PqKk6cYo78pmJMeoaI9BgzMg3TITXy 9VHPgPV97X5EBqosBPMcgA92ClFeeHsP0+qMuoWmGWD724r89uray15NrH0nOYMZKOun 9EaA== X-Gm-Message-State: AOAM532z5YCVlqz+JlyZuYHUdSEJLxIT2eUMVoF+7FSJ3t6B00BqD8Bo KiFibztxPOv043GV8pnUiG8= X-Google-Smtp-Source: ABdhPJzTcU8BnbhIOZJHPbgKafpgxWxUELWxuZlL162Q12qvhbG6X4stMU4hhCMrLIqEMkB76PX3dA== X-Received: by 2002:a05:600c:4f44:: with SMTP id m4mr643348wmq.175.1614988290192; Fri, 05 Mar 2021 15:51:30 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id f7sm7219835wrm.36.2021.03.05.15.51.29 (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 18/22] mq_receive.3: SYNOPSIS: Use 'restrict' in prototypes Date: Sat, 6 Mar 2021 00:51:02 +0100 Message-Id: <20210305235105.177359-19-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 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 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" Both POSIX and glibc use 'restrict' in mq_timedreceive(). Let's use it here too. .../glibc$ grep_glibc_prototype mq_timedreceive rt/mqueue.h:76: extern ssize_t mq_timedreceive (mqd_t __mqdes, char *__restrict __msg_ptr, size_t __msg_len, unsigned int *__restrict __msg_prio, const struct timespec *__restrict __abs_timeout) __nonnull ((2, 5)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/mq_receive.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man3/mq_receive.3 b/man3/mq_receive.3 index 418330bac..4dc1c3342 100644 --- a/man3/mq_receive.3 +++ b/man3/mq_receive.3 @@ -35,9 +35,9 @@ mq_receive, mq_timedreceive \- receive a message from a message queue .B #include .B #include .PP -.BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *" msg_ptr , -.BI " size_t " msg_len ", unsigned int *" msg_prio , -.BI " const struct timespec *" abs_timeout ); +.BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *restrict " msg_ptr , +.BI " size_t " msg_len ", unsigned int *restrict " msg_prio , +.BI " const struct timespec *restrict " abs_timeout ); .fi .PP Link with \fI\-lrt\fP.