From patchwork Mon Mar 8 18:53:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449352 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=xMD9KQur; 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 4DvSG937fHz9sW1 for ; Tue, 9 Mar 2021 05:55:29 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 23519395542B; Mon, 8 Mar 2021 18:54:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23519395542B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229671; bh=FA5xURTscEDjq6p7Ue0kIj0OdWueUjrFZBc0avtfRvM=; 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=xMD9KQur14ev6tmyV4LYVUHSY+ka/8/NIOmzJfeCxbdSYAuI9wNcOjP/86025iE4K 4Glu/KcY4MYhlWERGG1y2WnPYbVMyvDouoiY+F/kqEBxhMZQjseQ8EaVLc7nB12ieG 0d/SAeaSzgqtAoipBFSMMBSftTLlbAV7YCIHKf1g= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id D7A263955416 for ; Mon, 8 Mar 2021 18:54:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D7A263955416 Received: by mail-wr1-x435.google.com with SMTP id d15so12605148wrv.5 for ; Mon, 08 Mar 2021 10:54:27 -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=FA5xURTscEDjq6p7Ue0kIj0OdWueUjrFZBc0avtfRvM=; b=CZQ71/nLr72pSTaZEJRFB4/nlDiPbvJeRNSW3uRI2ELSyVZqqAaFmrWedCKes933J4 gu5JmgPx1zkrAlLjhsJoIqO2sT8l71xRZatwf01xVTdebLky0b2gfTLMwXIvfP7mx/Nc FHE/wsq3smupJWZjrerATDpP8sl2IwmX6FhK/YdOaqhTbxFSeeY5+cOwqAwfdVQZxZdQ wK17nZl6aeLTFC5NxdmmRrtr+og5xE+ZepS4pNKA8f9vvliy+M8gLwj5wgUOssA1UGkb gcu03BrANWEGQmoPYw7QfNcFr5jJpZTH8s4i0eji5i/RJn1Rar8L9fvHq0xHxSbF3Be5 bUrg== X-Gm-Message-State: AOAM531pBbDKzgLxakH0z9Qr/N+Bz50j38exqja6U9qeuEEm25wmG5Il Z7uxkty5DWZQOimkEmPI9/8= X-Google-Smtp-Source: ABdhPJz67PEWi5lbzedCQycPiDDoqakdhBJRsTICHDZnfq2GeIxomCLQkrRfbGSrJu2UHFKn8UasVA== X-Received: by 2002:adf:a1d8:: with SMTP id v24mr23431910wrv.378.1615229667111; Mon, 08 Mar 2021 10:54:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:26 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 19/23] realpath.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:28 +0100 Message-Id: <20210308185331.242176-20-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=-12.1 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 realpath(). Let's use it here too. .../glibc$ grep_glibc_prototype realpath stdlib/stdlib.h:800: extern char *realpath (const char *__restrict __name, char *__restrict __resolved) __THROW __wur; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/realpath.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/realpath.3 b/man3/realpath.3 index 643cdaaec..100567217 100644 --- a/man3/realpath.3 +++ b/man3/realpath.3 @@ -33,7 +33,8 @@ realpath \- return the canonicalized absolute pathname .B #include .B #include .PP -.BI "char *realpath(const char *" path ", char *" resolved_path ); +.BI "char *realpath(const char *restrict " path , +.BI " char *restrict " resolved_path ); .fi .PP .RS -4