From patchwork Mon Mar 8 18:53:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449335 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=8.43.85.97; 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=CLg6tdKW; dkim-atps=neutral Received: from sourceware.org (unknown [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 4DvSDp4JnWz9sW1 for ; Tue, 9 Mar 2021 05:54:18 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B58F3952011; Mon, 8 Mar 2021 18:54:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B58F3952011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229649; bh=HFfnxQbLya2vf6tE8M3A3O5S40iNCVLpCLMOFe21biI=; 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=CLg6tdKWH1rpeS/6zD+q21yJ/y+UAM8b+uEGynB/cgGV4vSqweWqThQusBR9j/Ld9 e14bRRn6oY8MRSQLp90qYMEUxM82UEZtXcRxA5t8+41omww9hdbSBdhovjc3edx8v5 6tGB3IMrfM/9fn4S4gAmtycxBrlL9e956f73GXGQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id C697E3857C68 for ; Mon, 8 Mar 2021 18:54:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C697E3857C68 Received: by mail-wr1-x429.google.com with SMTP id 7so12623908wrz.0 for ; Mon, 08 Mar 2021 10:54:07 -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=HFfnxQbLya2vf6tE8M3A3O5S40iNCVLpCLMOFe21biI=; b=pe2uLAiRFQL55EfiutOKbk1qpGt049+5OhsF5ypo5/Ut71UbxPUCUL3C/QMptAL5wF jX7oShEdAmE4KknicEsi5cifj7bhi/vyZSCYM/iMo6dmeEsZUae4PcdXKNMiqgTxngL0 IwUCZJre/cIYT9HeOYjMWxcKxv9kRkmEul+hyMCd/5kdWHzJXZn3fsUudTJnoFFwp7e+ 0RY6k356X8C8KkdzeddTgzGhzGHLhlr2onVyI1DAoZ9lspb5F6aLa0XpGLfDI8Z6GZvj mGyLnCG/2kW03TJwuKkzxdjfQXzJf7gC89ARYiOPy55gL/jiqc06noCrNDfRaX3B1aXN SnDw== X-Gm-Message-State: AOAM532Q5nGlNu3lSkZmyaYaQEt8Wufh2KWkE0j3fBmd90klIemUS76D R0NVH/BCjRgUvJtwp0pinFM= X-Google-Smtp-Source: ABdhPJyGP3cglf+bhB3aoNoCcZsSlgGzFLmwEQEdPGv4AqdXyoJ+5mWT7S/j0zzEIQECKOQ4mTuQig== X-Received: by 2002:a05:6000:11c1:: with SMTP id i1mr14189596wrx.215.1615229647028; Mon, 08 Mar 2021 10:54:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:06 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 02/23] pthread_attr_setscope.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:11 +0100 Message-Id: <20210308185331.242176-3-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=-11.5 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 pthread_attr_getscope(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getscope sysdeps/htl/pthread.h:125: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __contentionscope) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:324: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __scope) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/pthread_attr_setscope.3 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/man3/pthread_attr_setscope.3 b/man3/pthread_attr_setscope.3 index 301ed1fef..835c9b514 100644 --- a/man3/pthread_attr_setscope.3 +++ b/man3/pthread_attr_setscope.3 @@ -31,10 +31,9 @@ attribute in thread attributes object .nf .B #include .PP -.BI "int pthread_attr_setscope(pthread_attr_t *" attr \ -", int " scope ); -.BI "int pthread_attr_getscope(const pthread_attr_t *" attr \ -", int *" scope ); +.BI "int pthread_attr_setscope(pthread_attr_t *" attr ", int " scope ); +.BI "int pthread_attr_getscope(const pthread_attr_t *restrict " attr , +.BI " int *restrict " scope ); .PP Compile and link with \fI\-pthread\fP. .fi