Message ID | 20210308185331.242176-6-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=N+lm6lcL; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [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 4DvSF41vLcz9sW1 for <incoming@patchwork.ozlabs.org>; Tue, 9 Mar 2021 05:54:32 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 375B3395441A; Mon, 8 Mar 2021 18:54:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 375B3395441A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229655; bh=5tCAIM8gFk4o+EUPh0gk7gxqnUvfC3+O6Wb2uyGi9JI=; 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=N+lm6lcLZ8W6aZjiYJUo8Np8h1Z3HNjqRHLB/s6G+TgR8pufKG6f4hevAgGGs6UT0 SWE5zAV0wLPORQq24a5u5O88MQlDsRpbh3+0UIr3WZDxqo3SdPHWeqxcNReA6M9Dn7 uS73eNuNDHNuT9lzMjC3a9/REAjtYbloIEv5ZXWQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id CC111395201F for <libc-alpha@sourceware.org>; Mon, 8 Mar 2021 18:54:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CC111395201F Received: by mail-wm1-x32a.google.com with SMTP id w7so132596wmb.5 for <libc-alpha@sourceware.org>; Mon, 08 Mar 2021 10:54:11 -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=5tCAIM8gFk4o+EUPh0gk7gxqnUvfC3+O6Wb2uyGi9JI=; b=mQRcm8krYU3gksDsORhMJqM77hhCvDJNYx081Yv3wH2i8VTwPOVBJLJkhRRVk/fFOa MvH/4LjrUbxZhJ/u39D8sDtHlvPuapMHxVNj1pPFtIzETylX93c4yTzVqQrz6eBN5gyB JWQLI/e6t8n8MTLXx7nlEMUtlx3wotjKld7p9Np7/91Pf1YpJtfYQDz1Cub7b4hoHitP dh0WpVyIFINlZwu1jdWejw+JD1iPz3urmRT0dFGgx1MrminUSlknD7wjrgCpAiivXy5+ A5bFUD4sqFGXxQY9jlFFWcOvmsOHVwyRgV0PmKGH8QJ2KJefrDi6M3pEtoYTQvddhz47 6kKg== X-Gm-Message-State: AOAM532awXUQDD44tbtKOC1G+ehDsMUd7oWLNs3JEF0UDrqD42aNB1cn w47yp62YnRRgYot512FyUHIRi8EE6ok= X-Google-Smtp-Source: ABdhPJyjiXOytudjiJD0jc3qAkzJdhhjFGENb9klfGsoDNoA51v/EjxPXhIWCfCCzamT7Km+ZlMaoQ== X-Received: by 2002:a1c:1d14:: with SMTP id d20mr233815wmd.36.1615229651015; Mon, 08 Mar 2021 10:54:11 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:10 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 05/23] pthread_attr_setstack.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:14 +0100 Message-Id: <20210308185331.242176-6-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 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 4)
|
expand
|
diff --git a/man3/pthread_attr_setstack.3 b/man3/pthread_attr_setstack.3 index 23b95cb32..6d0488a8b 100644 --- a/man3/pthread_attr_setstack.3 +++ b/man3/pthread_attr_setstack.3 @@ -33,8 +33,9 @@ attributes in thread attributes object .PP .BI "int pthread_attr_setstack(pthread_attr_t *" attr , .BI " void *" stackaddr ", size_t " stacksize ); -.BI "int pthread_attr_getstack(const pthread_attr_t *" attr , -.BI " void **" stackaddr ", size_t *" stacksize ); +.BI "int pthread_attr_getstack(const pthread_attr_t *restrict " attr , +.BI " void **restrict " stackaddr , +.BI " size_t *restrict " stacksize ); .PP Compile and link with \fI\-pthread\fP. .fi
Both POSIX and glibc use 'restrict' in pthread_attr_setstack(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_setstack sysdeps/htl/pthread.h:158: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, size_t __stacksize) __THROW __nonnull ((1)); sysdeps/nptl/pthread.h:367: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, size_t __stacksize) __THROW __nonnull ((1)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/pthread_attr_setstack.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)