Message ID | 20210310183149.194717-17-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=2620:52:3:1:0:246e:9693:128c; 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=U0BD2qLl; 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 4Dwggk3wdhz9sS8 for <incoming@patchwork.ozlabs.org>; Thu, 11 Mar 2021 05:33:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C3A64398B154; Wed, 10 Mar 2021 18:32:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3A64398B154 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615401144; bh=H8k9UdQsMXTORYdmaOp/4Mj59+nJPP71f8MfYKUnTEw=; 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=U0BD2qLlqoGMVUugoAh0y1JUu8utDy6bs8ArQ14fK4jp1V3ruk7tk4P1N9JrgDtx8 Gska6D7MfkenukR8jGMWZSS3Du7UG8AqmfQrFqmlIMNsuTSCZ0s7HM2v2X7yITM4CB fiMa9/cFOH9+GZux27kx4XQra4O0YMNDUQ3ptjwM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 4F8013987C22 for <libc-alpha@sourceware.org>; Wed, 10 Mar 2021 18:32:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4F8013987C22 Received: by mail-wm1-x32c.google.com with SMTP id i9so7746084wml.0 for <libc-alpha@sourceware.org>; Wed, 10 Mar 2021 10:32:20 -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=H8k9UdQsMXTORYdmaOp/4Mj59+nJPP71f8MfYKUnTEw=; b=g7232XUAM6EsWJCtYH3pjT+7wqfLKtI/SB80VdmyIgtV69ZWRNH6PnjDPRsZo2X57q AusFdKI+9pjW4eZ6ovAGzJNT6fWSYYIfcySP+kJ3dr+hpzl4jAqKKcVe81IqGQN/0QsJ vlVKuRYjqv/xpP7zQq6bxceLOkqrsL4OBCqCNxQL5ANxBr3zlHVNjEjdH1sS9ZTPHTDY fX5esnbCr3+diD8BWCgj6ossA4RJ39W948HC8uB6+lQ0rWuXJv1mNwYwsEkaiv43WJ9s bZD7IuGUtS38UGrJDh9zRkfkz3Fq8Nm2woHVRcTZNYNdi3O3oWLAQJ4EKrqG6Snc/8cL yOvw== X-Gm-Message-State: AOAM533woMNJa+EK6s12KdIn6eeZE70CgXOCtGt7kAdZZm7rEf+jARHA jviaFYxu2aH1mzcpzCNU8AN5vxBA+xKZOg== X-Google-Smtp-Source: ABdhPJxMct7E4+JoqDh4LKVOIYI62RobQsVXQNuC6CpU0tcCpo3uHR1gUbkqXG4mZ8iO1qTk5upYlw== X-Received: by 2002:a7b:c010:: with SMTP id c16mr4713344wmb.134.1615401139412; Wed, 10 Mar 2021 10:32:19 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id k11sm325374wmj.1.2021.03.10.10.32.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 10:32:19 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 16/24] string.3: SYNOPSIS: Use 'restrict' in prototypes Date: Wed, 10 Mar 2021 19:31:42 +0100 Message-Id: <20210310183149.194717-17-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.4 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 5)
|
expand
|
diff --git a/man3/string.3 b/man3/string.3 index 06da21c28..4bacd8d8b 100644 --- a/man3/string.3 +++ b/man3/string.3 @@ -171,7 +171,7 @@ Return a pointer to the last occurrence of the character in the string .IR s . .TP -.BI "char *strsep(char **" stringp ", const char *" delim ); +.BI "char *strsep(char **restrict " stringp ", const char *restrict " delim ); Extract the initial token in .I stringp that is delimited by one of the bytes in
glibc uses 'restrict' in strsep(). Let's use it here too. .../glibc$ grep_glibc_prototype strsep string/string.h:455: extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/string.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)