From nobody Fri Aug 7 01:48:08 2026 X-Original-To: dev-commits-src-branches@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 4hGRqs3h0Fz6ndrc for ; Fri, 07 Aug 2026 01:48:09 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGRqr6NF0z3nxc for ; Fri, 07 Aug 2026 01:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786067288; 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=kZpaw0x2OKQzSarZlVyuGy6yTHnS+IQRTU/Q2BUa5Kc=; b=a0c67LVEYUOZbPoPjrc5lX66AS17y7m0WZBow9dMTNDbCI5Peu8mGLbTjctK8AmaZ5dImy DY85w57SlE7uYP51HgWdJMczP5d0Ms6s6Y0EOPlmwe1+M9Io7P1jr8EI2CU7QoPAK9mhCw Lin7PlCX2bkglSuy2e4jwhYpOaGbboB8GIGmzsM2Ztz96/MnSMDems2Fc2JixhOD3mDTW8 wFrv9I27IO9TGkzL0xWRVIYhiZ138SJImhPQ1aNGBh+lOhlPuxqamxbCKbb4yYSEqu9/0H whdBJ99BYO2m9X5pds2p643tx/csStacsDKmtGqcBZkvzJEPg9rS4eiGF8Ik8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786067288; a=rsa-sha256; cv=none; b=egRZPbTjy44/x4AHD53jP7v6MiC39T8YoqaGYRwDq8bxLfZpB+m5tf5+en+HKBEwSatogY WpUC23q+VwoTBVlDtCqnyXuSrbLpKCGDDWuly0A6ldPKRBoA6qKgG5cec8cRvj2oxWNWZF nZ+NmNA/gFHl7UW+wL5FEvWxhvuUsCsGzLDVRovnIH3FoOm740gbRt827e9xnsWKZmqNQu 6qE88aod+c6P9PdeU546FLCvXIHHXxnxQHhv9Ai90GobgxEMGsIQdU/fPftD4GTadnDIFP o6c1pqR2jH/yNCjf0ffJ4xXUba/2HdUW3+92MwcFdwtH9cYnEy0OmpMJ00SVpw== 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=1786067288; 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=kZpaw0x2OKQzSarZlVyuGy6yTHnS+IQRTU/Q2BUa5Kc=; b=p7EC6XS/YxNQbv2qy0tt9pFmmvWPqrYSYk0PXEo62WB5FUMHl9HQ9QU6ysYCx3mAIDmccy neE9ZJhe83fdPig6+0PzM8PFzL7ThcSCrwkO3SyXdI2Tgsd/NWNdvEx+JQoGvmg4i1uVLr w/HKxykEHc6lH2hv9HzqLImx7722hQiu+4EtHwid8HyqQfoRiL09uS8K5u8ZLwB/FFXrcx kmcauhuCh+QeRvUqCLpCeJkLDK6OKP43a7go9z6e8HRUAcgNvfK267WTKBXMxr2VUflWLR S9R/F+CqiAc/XopNGrxmqDWz8P9nipAXfUVtp56Z0gj37OD/5YTxIlSJ/jQaww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGRqr5K44zlwP for ; Fri, 07 Aug 2026 01:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3cc2d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 07 Aug 2026 01:48:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 6834c2660904 - stable/15 - adjtime(2): document that delta can be NULL List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 6834c2660904ef6d1fdade32e2dddda55778b989 Auto-Submitted: auto-generated Date: Fri, 07 Aug 2026 01:48:08 +0000 Message-Id: <6a753958.3cc2d.3da83959@gitrepo.freebsd.org> The branch stable/15 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=6834c2660904ef6d1fdade32e2dddda55778b989 commit 6834c2660904ef6d1fdade32e2dddda55778b989 Author: Kyle Evans AuthorDate: 2026-06-20 13:55:26 +0000 Commit: Kyle Evans CommitDate: 2026-08-06 23:35:25 +0000 adjtime(2): document that delta can be NULL The current verbiage somewhat indicates that always adjusts the time, which hasn't been true as far back as I had the energy to `git blame`. Reviewed by: imp (cherry picked from commit 8ed580b1d3811e73e25db3d8a9fd235156c65387) --- lib/libsys/adjtime.2 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/libsys/adjtime.2 b/lib/libsys/adjtime.2 index ee8befe09ca9..ad2467d5ef61 100644 --- a/lib/libsys/adjtime.2 +++ b/lib/libsys/adjtime.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 13, 2021 +.Dd June 19, 2026 .Dt ADJTIME 2 .Os .Sh NAME @@ -46,6 +46,7 @@ makes small adjustments to the system time, as returned by advancing or retarding it by the time specified by the timeval .Fa delta . +.Pp If .Fa delta is negative, the clock is @@ -55,6 +56,13 @@ If .Fa delta is positive, a larger increment than normal is used. +.Fa delta +may also be a +.Dv NULL +pointer to fetch +.Fa olddelta +without making any adjustment. +.Pp The skew used to perform the correction is generally a fraction of one percent. Thus, the time is always a monotonically increasing function. @@ -65,7 +73,9 @@ may not be finished when is called again. If .Fa olddelta -is not a null pointer, +is not a +.Dv NULL +pointer, the structure pointed to will contain, upon return, the number of microseconds still to be corrected from the earlier call.