From patchwork Mon Mar 8 18:53:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1449344 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=2620:52:3:1:0:246e:9693:128c; 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=BxpjghQ2; 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 4DvSFY1rB9z9sW1 for ; Tue, 9 Mar 2021 05:54:57 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3122539551DF; Mon, 8 Mar 2021 18:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3122539551DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229662; bh=gk+rUfACaEZYLML+9uxiNKQV5jYDLXtogDSJKSq13kk=; 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=BxpjghQ28Q1tIGGKKpEyg8hrOI89eafE+VPy2M2o1v3VZVbHlQHl664UMAbLrf3U6 j22Shv0/naffneIniq6FMOwQr04B686leaKL5scCCZYWgQYXKou1Etvhz5jPUzweYQ OBVH7CYimOxnNgc8mkunCbZPNVnWU5d/bjHz7css= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 30C993951402 for ; Mon, 8 Mar 2021 18:54:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 30C993951402 Received: by mail-wr1-x434.google.com with SMTP id b18so12588963wrn.6 for ; Mon, 08 Mar 2021 10:54:19 -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=gk+rUfACaEZYLML+9uxiNKQV5jYDLXtogDSJKSq13kk=; b=tOQ15fdlEzT6aLYLlrKUbGb7KUPVp3fSIKtbaM66DArx2aHwDuV6Z0jCAUI7xogP8l DXbGy832tg3rBN7PJbphzd/7jn4vLY4s51zxmZ+ECGoSvpFTUMMGtiRooTqETnUx+gk4 Wr2pi9wsVcwGwbcAehhHu8t/k3Fned9gpTfDQOhZACPFRV/G8Lb2hBOH/vpRE7HhBoqM Rszyu8fu5HMMqsgOExES9mB8O8N5k6JhMloLb3aZjhga6XnK605tgtVCZnaX0nqDjGl4 Id1YnXhSojWEbiPnzd/GQVoI1Dhqt3z64R+anFbrR9hzePfVtvsy0zJw52KMjA12Fbiu mftw== X-Gm-Message-State: AOAM5311xHCN2XDtLGdZFs6WM5troaJFk7HxtAKIaBNSfKO+a75KDiMc BR/OqkXX0PKmLX4V5znhM/s= X-Google-Smtp-Source: ABdhPJzHX2WFcNuhg/Nl89k/Ly/X/VtiYpV/nIo3LAUdtmu1MUsvdN411XQtMIAPxUAnfTQ0gyk5+g== X-Received: by 2002:a5d:6304:: with SMTP id i4mr23842548wru.155.1615229658411; Mon, 08 Mar 2021 10:54:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:18 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 11/23] pthread_setschedparam.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:20 +0100 Message-Id: <20210308185331.242176-12-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.9 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_getschedparam(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_getschedparam sysdeps/htl/pthread.h:882: extern int pthread_getschedparam (pthread_t __thr, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); sysdeps/nptl/pthread.h:426: extern int pthread_getschedparam (pthread_t __target_thread, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/pthread_setschedparam.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man3/pthread_setschedparam.3 b/man3/pthread_setschedparam.3 index b3ec5009c..d96d911d9 100644 --- a/man3/pthread_setschedparam.3 +++ b/man3/pthread_setschedparam.3 @@ -33,8 +33,8 @@ scheduling policy and parameters of a thread .PP .BI "int pthread_setschedparam(pthread_t " thread ", int " policy , .BI " const struct sched_param *" param ); -.BI "int pthread_getschedparam(pthread_t " thread ", int *" policy , -.BI " struct sched_param *" param ); +.BI "int pthread_getschedparam(pthread_t " thread ", int *restrict " policy , +.BI " struct sched_param *restrict " param ); .PP Compile and link with \fI\-pthread\fP. .fi