Message ID | 20210308185331.242176-2-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=dr3OrwmP; 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 4DvSDj4gH0z9sW1 for <incoming@patchwork.ozlabs.org>; Tue, 9 Mar 2021 05:54:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 857EC385041C; Mon, 8 Mar 2021 18:54:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 857EC385041C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615229648; bh=9JVGKk0NPwYuSP8PbblaSRVdib8TBRFBEuG/t+/LYUw=; 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=dr3OrwmPy85Dm5zyVLG+HMeSkOEE6DeJJJJF6/GOp4M1cy0VNt7VbXv0wbAB+7Dca RYR5fMuII4V1n9ubADT5XGM1v8cqEfwq6tJL5mA0+FwLi3kv7EzfnLYE5tDz/ijGoi zhUzXvYPfRl65me29kGbsWGdQcmPL0wuk4Oek2F8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 78DDA3857C68 for <libc-alpha@sourceware.org>; Mon, 8 Mar 2021 18:54:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 78DDA3857C68 Received: by mail-wm1-x32e.google.com with SMTP id y124-20020a1c32820000b029010c93864955so4447628wmy.5 for <libc-alpha@sourceware.org>; Mon, 08 Mar 2021 10:54:06 -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=9JVGKk0NPwYuSP8PbblaSRVdib8TBRFBEuG/t+/LYUw=; b=KHKy3IQVEQxk1B6EtLOXSeuqyYZUafzigA4c1faEyMIa0eQrO2J4FGrQeyW5yrRdJx 5wSf/fcv1E7kErClK59cUwb/GDYt5oQueuD8/KWAlv+pqdGh8zx32dowxYmXgy3zREXu eQ4fAqEMmqz3QY4oSi2qMxTu3ytNifqmLI60LfGu5RFAnluoqgAy4utoqot79OUzlc8S IbTvrLproWESRTHTvytl4KNsOO7gwMQ1YSKXRHSctFUOVDUlXADzdTmSKjbatC1bZ5l/ dbaN6ZlPzdd/h8wBeL0aFFetZtzxZcQjHBBDXileFJVFeCUx5+IOu58Bkblg5J+VOIR7 5MOw== X-Gm-Message-State: AOAM530A+4+kVM2e9FG0Vu63wlt6Xc+BaSa031wb5SOrxNQybrrxgqwX PrEzeR522xpExhj6GHAOBQU= X-Google-Smtp-Source: ABdhPJx/dx18Es+54+ixJJNzG3FlfAMVLZKXfk+oVRktE89eBoFsYqhJhcd5pJ2stTFgnqwdXg+UdQ== X-Received: by 2002:a1c:771a:: with SMTP id t26mr227964wmi.60.1615229645713; Mon, 08 Mar 2021 10:54:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:54:05 -0800 (PST) To: mtk.manpages@gmail.com Subject: [PATCH 01/23] pthread_attr_setschedpolicy.3: SYNOPSIS: Use 'restrict' in prototypes Date: Mon, 8 Mar 2021 19:53:10 +0100 Message-Id: <20210308185331.242176-2-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.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 4)
|
expand
|
diff --git a/man3/pthread_attr_setschedpolicy.3 b/man3/pthread_attr_setschedpolicy.3 index 34fdc8631..e062fe685 100644 --- a/man3/pthread_attr_setschedpolicy.3 +++ b/man3/pthread_attr_setschedpolicy.3 @@ -31,10 +31,9 @@ scheduling policy attribute in thread attributes object .nf .B #include <pthread.h> .PP -.BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr \ -", int " policy ); -.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *" attr , -.BI " int " *policy ); +.BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr ", int " policy ); +.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *restrict " attr , +.BI " int *restrict " policy ); .PP Compile and link with \fI\-pthread\fP. .fi
Both POSIX and glibc use 'restrict' in pthread_attr_getschedpolicy(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getschedpolicy sysdeps/htl/pthread.h:113: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:304: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man3/pthread_attr_setschedpolicy.3 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)