From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org 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 Content-Transfer-Encoding: 8bit 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-List-Received-Date: Mon, 08 Mar 2021 18:54:09 -0000 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 -- 2.30.1