From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id AB9053987C20 for ; Wed, 10 Mar 2021 18:32:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AB9053987C20 Received: by mail-wr1-x436.google.com with SMTP id w11so24454580wrr.10 for ; Wed, 10 Mar 2021 10:32:14 -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=1ZZr1EvO5ui5u7KR0jLKyoq5CbBvdVKAFwtMZjteMFg=; b=tK6MbrkaxVQWPajnu7LqXGMu6/jGyf6o8sSnWLRWt/xKd9yG0lckLH5VdcI0YP0eOC yJusHtuequWSwVTC4cLM5d9yL0ff4ov6pni6CU9CVMYJKI7w7E2K1MrMJD2lRBz0j9+4 c3cvFA0rH+iJwAaRLgfVvQAb8lR0P8HqupHemWTeQTpgReH/6bULAzR9n50M7bs/vplj nTGKQtEFKuG7oS4xyc20viIfS4nYXowzT9NFKJud2LkniGqcT/CdRAosJhrhMAFIRbVj SZz9ONGSeluHM4ueJN/30l5TqrTJU1bf9wpfvvU7vt6fle0KvekDFDxUG/fed8YPq/Te ad6A== X-Gm-Message-State: AOAM531gwSD5NWQ6I7tqcByvjMu4uuMeGjAuhZ3a2u5Vhq0om1BDguiy zbUns9zohWnp0xtLfFR4qg2xgIkQq2yGKw== X-Google-Smtp-Source: ABdhPJwajoDtAelXDKdDDU9KBMJut0J2vvSbN6AWCg3BYqlg2Tl5lff/egchlgXvFCjQ8PU6fvAFZw== X-Received: by 2002:a5d:6610:: with SMTP id n16mr4767194wru.399.1615401133870; Wed, 10 Mar 2021 10:32:13 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id k11sm325374wmj.1.2021.03.10.10.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 10:32:13 -0800 (PST) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 09/24] stpcpy.3: SYNOPSIS: Use 'restrict' in prototypes Date: Wed, 10 Mar 2021 19:31:35 +0100 Message-Id: <20210310183149.194717-10-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210310183149.194717-1-alx.manpages@gmail.com> References: <20210310183149.194717-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 18:32:16 -0000 Both POSIX and glibc use 'restrict' in stpcpy(). Let's use it here too. .../glibc$ grep_glibc_prototype stpcpy string/string.h:475: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/stpcpy.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/stpcpy.3 b/man3/stpcpy.3 index 448b53955..e978dfb3e 100644 --- a/man3/stpcpy.3 +++ b/man3/stpcpy.3 @@ -29,7 +29,7 @@ stpcpy \- copy a string returning a pointer to its end .nf .B #include .PP -.BI "char *stpcpy(char *" dest ", const char *" src ); +.BI "char *stpcpy(char *restrict " dest ", const char *restrict " src ); .fi .PP .RS -4 -- 2.30.1.721.g45526154a5