From patchwork Tue Mar 5 01:26:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1907956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=DJHAQWGC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpdFS2D1gz23fC for ; Tue, 5 Mar 2024 12:26:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 394893858296 for ; Tue, 5 Mar 2024 01:26:34 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by sourceware.org (Postfix) with ESMTPS id 4ED7C3858C66 for ; Tue, 5 Mar 2024 01:26:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4ED7C3858C66 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4ED7C3858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=139.178.84.217 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709601980; cv=none; b=dwrCFBryKSX9x9VvoljpdIPb569EuiUsgyX9xv1nnArjNk7hpRI88gy/RkvOT/JJU+IzOzBwGkLM2F7lhisIVBaDPYAMBStpWEOxlOiFst3TloEgeiU6btO1iD3tCHYEBktwLFMJfqkeMesXD2XwILYp0aAd+MOxt0DgA9W8sIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709601980; c=relaxed/simple; bh=SeSb/hoQJ59usdHuWwfnRd+MnrczE+IaysKUSHbBzNM=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=xrHrJ3kQK6G49UYw14ROAVtl7wYAWlPRcbSFgXyZCxIEBJ8DGii41zd4pA+BTTXKIvMlO9vaVvOifnwBNbYwT/SrsW6P6F/ehfDF4pe8cku/Q5IJldrDeh9OWHcSXRNHxKwfKZcXSSn04Eg9f3dOevOEJ6qmc7dNFcFq/clETLE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E35FF61239; Tue, 5 Mar 2024 01:26:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25811C433C7; Tue, 5 Mar 2024 01:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709601978; bh=SeSb/hoQJ59usdHuWwfnRd+MnrczE+IaysKUSHbBzNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DJHAQWGC56bcKcwCJhn/EXDiKC9I5Cq7LWBZUw6oEb8cufC8PSwJDbk0Le9ye9xir CCNCau/TJCY+KS936rnzjs6Tn0wQLW5JnmJ0GE66/FRMkn89dqv2eG6myR9cYjqWwQ YJuR1dOnvEOJT++PL3lsapSk1kAfe74NYVkMfpmSH24hfTQRXgP3j4Yb9pHMlZQfdl MPEyn9w9zmeDhHEr1SqPSKKK1elN8+RcdQpoX/wmg/+fXWyAGi3RFJQ7Qz1GBMnUex Px7vxmnSqaXMnTQ5lB3ERWgWzWd7TXHEgTxAB1ExgCosrUY7z3Ry41rLZFGibn1b58 +Z4a/yAm3B0hQ== Date: Tue, 5 Mar 2024 02:26:15 +0100 From: Alejandro Colomar To: linux-man@vger.kernel.org, enh , Bruno Haible Cc: Alejandro Colomar , Stefan Puiu , GNU C Library Subject: [PATCH v3 3/3] clock_nanosleep.2: Use 't' rather than 'request' Message-ID: <20240305012507.9316-2-alx@kernel.org> X-Mailer: git-send-email 2.43.0 References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org It seems much more clear. Cc: Elliott Hughes Cc: Stefan Puiu Cc: Bruno Haible Signed-off-by: Alejandro Colomar --- v3: - Add new patch for clock_nanosleep(2). - Patches 1 and 2 are still the same as in older revisions; not resending. man2/clock_nanosleep.2 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/man2/clock_nanosleep.2 b/man2/clock_nanosleep.2 index 5bda50e18..7715ec385 100644 --- a/man2/clock_nanosleep.2 +++ b/man2/clock_nanosleep.2 @@ -19,7 +19,7 @@ .SH SYNOPSIS .nf .P .BI "int clock_nanosleep(clockid_t " clockid ", int " flags , -.BI " const struct timespec *" request , +.BI " const struct timespec *" t , .BI " struct timespec *_Nullable " remain ); .fi .P @@ -94,7 +94,7 @@ .SH DESCRIPTION If .I flags is 0, then the value specified in -.I request +.I t is interpreted as an interval relative to the current value of the clock specified by .IR clockid . @@ -104,11 +104,11 @@ .SH DESCRIPTION is .BR TIMER_ABSTIME , then -.I request +.I t is interpreted as an absolute time as measured by the clock, .IR clockid . If -.I request +.I t is less than or equal to the current value of the clock, then .BR clock_nanosleep () @@ -117,7 +117,7 @@ .SH DESCRIPTION .BR clock_nanosleep () suspends the execution of the calling thread until either at least the time specified by -.I request +.I t has elapsed, or a signal is delivered that causes a signal handler to be called or that terminates the process. @@ -146,7 +146,7 @@ .SH RETURN VALUE .SH ERRORS .TP .B EFAULT -.I request +.I t or .I remain specified an invalid address. @@ -180,7 +180,7 @@ .SH HISTORY glibc 2.1. .SH NOTES If the interval specified in -.I request +.I t is not an exact multiple of the granularity underlying clock (see .BR time (7)), then the interval will be rounded up to the next multiple. @@ -216,7 +216,7 @@ .SH NOTES is .BR TIMER_ABSTIME . (An absolute sleep can be restarted using the same -.I request +.I t argument.) .P POSIX.1 specifies that