From nobody Tue Jul 02 17:29:01 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WD8z14WFGz5NqsS; Tue, 02 Jul 2024 17:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD8z141qgz4PGr; Tue, 2 Jul 2024 17:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719941341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ecUZ3exaVlGTPzNKiHIqCSEuZjw6z3ahexNcp/IOtFs=; b=xKQRN2THgEAC7n9OhNnJKmlcLMvK5DlOlsH8LblVccckMUrt7PiMRyvjZkkhJITnuMyOsg U4VRnnL5PYLJhS1AzTjgBTdfN71lEa4BeqGyNWmMy07Za8j7CGiuM6ZfEyik5gJfsQkx5D h/lSBZU3a8Zgoqg7uA+YlLMtphfNt8oSRkqVFGPeqc8Nav78AfjEm4Zko2+Zm4tbu/4kAn ATZC5G5V4ZH3HwBRRvjPRRcE8HL9fYOoeLfI08O3tYtpmDo+Fn0j2b8zCI5AR63wYbUqsG f0/vjV8NsAmDBQA1mwf/hAdu1ghSZNrVrox2W1JpB+sNtrmWNtAS0Q0tZRoOaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719941341; a=rsa-sha256; cv=none; b=GYxdUWbObzEbYW2gpV/SIqDx8FYpz3XppqVkBpCzW1ZbP//INzfhJW8PS7aCEw5MMyr3JR VsL753ASK7vqy26yCV3dt15RkfaaRABwMHZwpazvam0Ql+4WES67g8HDmSmY809AvWSaON UfQjqQWb5IxbPwN3p3Lt8GCjwg46pTyu0tS9MRagda6/hFuU7z/HPFmXwGA0KijIIBaXqb 1G+QNMQtaYs1BkSnt1fXgZsUCVqPYFZyeDUeMAKhHUfrLyp++eqNUpVeCqdFV031cZ6roB 83mW886jNZIUyTGJ/ODGQpWMwzbYmuit9kxTfRIVmy3by1C/HgWJsrTJibw27Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719941341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ecUZ3exaVlGTPzNKiHIqCSEuZjw6z3ahexNcp/IOtFs=; b=ZYpAbbduN44jJZyfyaTNXy2tlDai3w04dO2yOREZOnXxCHTTM71+asKiIDO8sn8mqU3ZWn EGHPx0xp7Q0hP2H2Mhjh4jhmfuEaw9ok28UTDkjTr02NnqqxbjzIeyL5jQuSJTy1LQqnp3 rEMOXqRDUsAwYaOTHFdMiTcsB5ovHwWpRjvMJnYT5Y7zOfCKa7sjHHrUEJDoRPcEd0u6S/ G0wOxP8qDId3sgYhbTl0ZVV7uGrNhKBQwL5r88luGu+z7EN2dsmm3lI/+rHgxf5UBsd/1f YeALhXgjpz+NaMtdPRdgtKuVoBKN8FmBDN06vgNpYr0Z0kgumkxp0jY8WPmN1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WD8z13dKQzxC5; Tue, 2 Jul 2024 17:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 462HT153029178; Tue, 2 Jul 2024 17:29:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 462HT1VD029175; Tue, 2 Jul 2024 17:29:01 GMT (envelope-from git) Date: Tue, 2 Jul 2024 17:29:01 GMT Message-Id: <202407021729.462HT1VD029175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 172328c477b1 - main - timerfd.2: Add documentation for CLOCK_UPTIME and CLOCK_BOOTTIME List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 172328c477b13458c5faa4cf81ad8669f6852aee Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=172328c477b13458c5faa4cf81ad8669f6852aee commit 172328c477b13458c5faa4cf81ad8669f6852aee Author: Cormac Stephenson AuthorDate: 2024-06-28 16:45:44 +0000 Commit: Warner Losh CommitDate: 2024-07-02 16:40:04 +0000 timerfd.2: Add documentation for CLOCK_UPTIME and CLOCK_BOOTTIME Add CLOCK_UPTIME and CLOCK_BOOTTIME options and a quick pointer to clock_gettime(2) for a better definition of these values. Reviewed-by: imp (small tweaks and added Xr) Pull-Request: https://github.com/freebsd/freebsd-src/pull/1302 --- lib/libsys/timerfd.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/libsys/timerfd.2 b/lib/libsys/timerfd.2 index 7a112ad0dfcb..ae6cc6f6f49a 100644 --- a/lib/libsys/timerfd.2 +++ b/lib/libsys/timerfd.2 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 21, 2023 +.Dd June 28, 2024 .Dt TIMERFD 2 .Os .Sh NAME @@ -95,9 +95,16 @@ argument specifies the clock used as a timing base and may be: .Bl -tag -width "Dv CLOCK_MONOTONIC" -compact .It Dv CLOCK_REALTIME Increments as a wall clock should. +.It Dv CLOCK_BOOTTIME .It Dv CLOCK_MONOTONIC Increments monotonically in SI seconds. +.It Dv CLOCK_UPTIME +Increments monotonically in SI seconds, but is paused while the system is +suspended. .El +See +.Xr clock_gettime 2 +for more precise definitions. .Pp The .Fa flags