From nobody Thu Oct 2 08:20:46 2025 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 4ccl9W2vNSz69KZV; Thu, 02 Oct 2025 08:20:47 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccl9W1DHqz4N3r; Thu, 02 Oct 2025 08:20:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759393247; 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=FILQDoyWfhvXJ4OOj8x/5tN57uQPp4CFY1JtVtlFsWQ=; b=giowrEX8s7nwvQjJnWSfFxG5DWUSfU9TyG4YTtPv95aNo9M9gxPlTcivFRAD4K+Q3yUKD+ qxW6KbDGUoxm2/orckQektwz9RFBvvRjBWxTPRts4mTgjx9Xq33OhNbm/GWpj01Gc4eD5L IAtofaIRl6kwMi6lEIc5pKeaqpLOtPG2Uf9qqfknMgK4p6TxvjjLPKQEeNm11tikGRFVNe sVWzr2NA4SSjzajYC11Dfp1/Fq80T2tE9xwojy9EIAivxm7AwQ55dOJFHB1zybtwu1gUAV +T+Bwoa5s5V9tgR2/SDVQMglL3hY/EDX4t5Cds7k/zokJADGEmnnFY6rrAbzZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759393247; 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=FILQDoyWfhvXJ4OOj8x/5tN57uQPp4CFY1JtVtlFsWQ=; b=vt9UO4PWMqdkqVZuqbcUi4NRjN9hDQK4hUUk8md3ewMGt6FvaKNjMsstSnJ5vmiXveBTQ8 WV5BpHYpJs5ThCH68AdAOtQ26Uh3jawddP5SZifg2hkBjffyMGqVl12y2e+wGQYm9vLUlj 19qjvmXl1/cFBGwYm3iIhJ1E0Ys2H/kKztrff47efoSswzhy3FmX4SC6gSYff5l7fib0z8 BTeKoQHdYluuACO6AOW47aeOZcq6iASFEsKtvwp6NKu9lpOj20p8PrFtHd2EHhOu3YZQRJ kDKe3RUKdEzj5kxRaPeao3v6ImAZl4inh6oxgFaEM1eeYyvc77IMBpEh0VIrMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759393247; a=rsa-sha256; cv=none; b=D7r6QStebA/iPf0tRB9tPtE8NcR++2a57YoECBPVU71va1aNGdDcwZjFRwj/3tE9mAMYcS bfu68eXPnQJpw3lymfwEfoOT2FbF35DmUR1uQhMLg6t6NU6dwWo6nA6UHnR1RnqpwUuw3j cmXeoWetmvfQX5Aym6ujYIsVR9FKPDk24PKOqlgGJoEvtEkR809RfsL3LBy91PtQGlM2tB rUjZpa/hBJCNVpMLzTVctbUgoOuqy8AOeBeCkbOlAWr3dimVWmbKtsiay/ZyIDMWSyvFK5 K4M+w7ssAxgeaaiOtW7CX4/GveiPOzvYqRqKpndDOA48evkgURl5JvxAU8j1HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4ccl9W0bVFz10nq; Thu, 02 Oct 2025 08:20:47 +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 5928KkBI023282; Thu, 2 Oct 2025 08:20:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5928KkKq023279; Thu, 2 Oct 2025 08:20:46 GMT (envelope-from git) Date: Thu, 2 Oct 2025 08:20:46 GMT Message-Id: <202510020820.5928KkKq023279@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 52ae229c9224 - stable/15 - libc: Add missing MLINK for tzname(3) 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: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 52ae229c9224d3788721d081d8c957536041ceb2 Auto-Submitted: auto-generated The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=52ae229c9224d3788721d081d8c957536041ceb2 commit 52ae229c9224d3788721d081d8c957536041ceb2 Author: Dag-Erling Smørgrav AuthorDate: 2025-09-30 12:27:24 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-10-02 08:19:24 +0000 libc: Add missing MLINK for tzname(3) While here, fix manlint warnings and a typo in tzset(3). MFC after: 3 days (cherry picked from commit be8830612314d9afb64b5c040db689de44eb4b85) --- lib/libc/stdtime/Makefile.inc | 3 ++- lib/libc/stdtime/tzset.3 | 57 +++++++++++++++++-------------------------- 2 files changed, 24 insertions(+), 36 deletions(-) diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc index 647cbe6f40ba..1baa39a6c0a6 100644 --- a/lib/libc/stdtime/Makefile.inc +++ b/lib/libc/stdtime/Makefile.inc @@ -32,4 +32,5 @@ MLINKS+=strftime.3 strftime_l.3 MLINKS+=strptime.3 strptime_l.3 MLINKS+=time2posix.3 posix2time.3 MLINKS+=tzset.3 daylight.3 \ - tzset.3 timezone.3 + tzset.3 timezone.3 \ + tzset.3 tzname.3 diff --git a/lib/libc/stdtime/tzset.3 b/lib/libc/stdtime/tzset.3 index 94ccbec9aba7..33e6a556306d 100644 --- a/lib/libc/stdtime/tzset.3 +++ b/lib/libc/stdtime/tzset.3 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 25, 2023 +.Dd September 30, 2025 .Dt TZSET 3 .Os .Sh NAME @@ -58,8 +58,8 @@ specifies how this is done. .Pp If .Ev TZ -does not appear in the environment, the best available approximation to -local wall clock time, as specified by the +does not appear in the environment, the best available approximation +to local wall clock time, as specified by the .Xr tzfile 5 Ns -format file .Pa /etc/localtime @@ -68,9 +68,7 @@ is used. If .Ev TZ appears in the environment but its value is a null string, Coordinated -Universal Time -.Pq Tn UTC -is used (without leap second correction). +Universal Time (UTC) is used (without leap second correction). .Pp If .Ev TZ @@ -81,13 +79,12 @@ the rest of its value is used as a pathname of a file from which to read the time conversion information. If the first character of the pathname is a slash .Pq Ql / -it is used as -an absolute pathname; otherwise, it is used as a pathname relative to -the system time conversion information directory. +it is used as an absolute pathname; otherwise, it is used as a +pathname relative to the system time conversion information directory. .Pp -If its value does not begin with a colon, it is first used as the pathname -of a file (as described above) from which to read the time conversion -information. +If its value does not begin with a colon, it is first used as the +pathname of a file (as described above) from which to read the time +conversion information. If that file cannot be read, the value is then interpreted as a direct specification (the format is described below) of the time conversion information. @@ -96,24 +93,23 @@ If the .Ev TZ environment variable does not specify a .Xr tzfile 5 Ns -format -file and cannot be interpreted as a direct specification, -.Tn UTC -is used. +file and cannot be interpreted as a direct specification, UTC is used. .Pp After the first call to .Nm tzset , the .Vt timezone -variable is set to the difference, in seconds, between Coordinated Universal -Time (UTC) and the local time. +variable is set to the difference, in seconds, between Coordinated +Universal Time (UTC) and the local time. The .Vt daylight variable is set to 0 if the local timezone is observing standard time. -It is set to 1 if the local timezone ever observes an alternate time, such as summer time. +It is set to 1 if the local timezone ever observes an alternate time, +such as summer time. The first element of the .Vt tzname -array is the timezone name of standard time, while the second element is the -name of the altnerative time zone. +array is the timezone name of standard time, while the second element +is the name of the altnerative time zone. .Sh SPECIFICATION FORMAT When .Ev TZ @@ -151,8 +147,7 @@ minus .Pq Ql \- , plus .Pq Ql + , -and -.Tn ASCII +and ASCII .Dv NUL are allowed. .It Em offset @@ -294,10 +289,8 @@ by the file .Em posixrules in the system time conversion information directory are used, with the -standard and summer time offsets from -.Tn UTC -replaced by those specified by -the +standard and summer time offsets from UTC replaced by those specified +by the .Em offset values in .Ev TZ . @@ -315,20 +308,14 @@ local time zone file .It Pa /usr/share/zoneinfo time zone directory .It Pa /usr/share/zoneinfo/posixrules -rules for -.Tn POSIX Ns -style -.Tn TZ Ns 's +rules for POSIX-style TZs .It Pa /usr/share/zoneinfo/Etc/GMT -for -.Tn UTC -leap seconds +for UTC leap seconds .El .Pp If the file .Pa /usr/share/zoneinfo/UTC -does not exist, -.Tn UTC -leap seconds are loaded from +does not exist, UTC leap seconds are loaded from .Pa /usr/share/zoneinfo/posixrules . .Sh SEE ALSO .Xr date 1 ,