From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1653CA90AF for ; Tue, 12 May 2020 16:37:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B70B0206CC for ; Tue, 12 May 2020 16:37:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726324AbgELQhr (ORCPT ); Tue, 12 May 2020 12:37:47 -0400 Received: from foss.arm.com ([217.140.110.172]:58158 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgELQhr (ORCPT ); Tue, 12 May 2020 12:37:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9622B1FB; Tue, 12 May 2020 09:37:46 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E73F43F305; Tue, 12 May 2020 09:37:45 -0700 (PDT) From: Dave Martin To: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 01/14] prctl.2: tfix clarify that prctl can apply to threads Date: Tue, 12 May 2020 17:36:46 +0100 Message-Id: <1589301419-24459-2-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> References: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org The current synopsis for prctl(2) misleadingly claims that prctl operates on a process. Rather, some (in fact, most) prctls operate on a thread. The wording probably dates back to the old days when Linux didn't really have threads at all. Reword as appropriate. Signed-off-by: Dave Martin --- man2/prctl.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man2/prctl.2 b/man2/prctl.2 index 7a5af76..7932ada 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -53,7 +53,7 @@ .\" .TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual" .SH NAME -prctl \- operations on a process +prctl \- operations on a process or thread .SH SYNOPSIS .nf .B #include @@ -63,6 +63,10 @@ prctl \- operations on a process .fi .SH DESCRIPTION .BR prctl () +manipulates various aspects of the behavior +of the calling thread or process. +.PP +.BR prctl () is called with a first argument describing what to do (with values defined in \fI\fP), and further arguments with a significance depending on the first one. -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D98F8C2D0F8 for ; Tue, 12 May 2020 16:37:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CEDB206CC for ; Tue, 12 May 2020 16:37:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Er0y6Pgj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CEDB206CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KAmXA3JUNiat4x9iIHIqhhksWmrIGKMXWSGmCDypyhA=; b=Er0y6PgjzG3DB0oqPwtSxD0NNJ X1RxTgCOr993rcnlb3ORTAzLaMMnmQyN4+skjw7JZPhGxH6wlmn4LavrL2d+8bw6VShZV2DfYbDgi Q4DRPPpJihOfV2XnsZrnr97W4u4J9/biEFcAeIlCgG/YARFRQdiDqfXExBWaWy9daW3Rc6Fa/fG2q lWkQEtTBRVpusDiNVrZ5yIjRFk8BQob297jQA3ax3Hs52KAYna5l8fo85eKptkwlS6yte1ZBmObnB 37hWjg12HMY5VE+LWsyUhHiVRRUdUV0Yi/LBmytS6kcJnkGyPJ7bqXcUC2XZbd3fL10e2zWw7ilHZ CeMxzu4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYXug-0007re-J1; Tue, 12 May 2020 16:37:50 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYXud-0007qS-L7 for linux-arm-kernel@lists.infradead.org; Tue, 12 May 2020 16:37:49 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9622B1FB; Tue, 12 May 2020 09:37:46 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E73F43F305; Tue, 12 May 2020 09:37:45 -0700 (PDT) From: Dave Martin To: mtk.manpages@gmail.com Subject: [PATCH 01/14] prctl.2: tfix clarify that prctl can apply to threads Date: Tue, 12 May 2020 17:36:46 +0100 Message-Id: <1589301419-24459-2-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> References: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200512_093747_734180_60603122 X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-man@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The current synopsis for prctl(2) misleadingly claims that prctl operates on a process. Rather, some (in fact, most) prctls operate on a thread. The wording probably dates back to the old days when Linux didn't really have threads at all. Reword as appropriate. Signed-off-by: Dave Martin --- man2/prctl.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man2/prctl.2 b/man2/prctl.2 index 7a5af76..7932ada 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -53,7 +53,7 @@ .\" .TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual" .SH NAME -prctl \- operations on a process +prctl \- operations on a process or thread .SH SYNOPSIS .nf .B #include @@ -63,6 +63,10 @@ prctl \- operations on a process .fi .SH DESCRIPTION .BR prctl () +manipulates various aspects of the behavior +of the calling thread or process. +.PP +.BR prctl () is called with a first argument describing what to do (with values defined in \fI\fP), and further arguments with a significance depending on the first one. -- 2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel