<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdtime, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-10-22T17:52:36Z</updated>
<entry>
<title>libc: Add "Z" as TZ designator for strptime.</title>
<updated>2025-10-22T17:52:36Z</updated>
<author>
<name>Gordon Tetlow</name>
<email>gordon@FreeBSD.org</email>
</author>
<published>2025-10-15T22:24:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b9b7e09e359ac20f83d4dd972271ff950b62da6'/>
<id>urn:sha1:3b9b7e09e359ac20f83d4dd972271ff950b62da6</id>
<content type='text'>
ISO 8601 allows use of "Z" as the time zone designator. Update the
strptime parser to allow this usage.

While we are at it, update the manpage to reflect that both UTC and Z
are now valid options.

Reviewed by:	des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53083

(cherry picked from commit 79e57ea662d92ffcbe7d65854a284aefac6a332d)
</content>
</entry>
<entry>
<title>libc: Avoid installing timezone.3 multiple times</title>
<updated>2025-10-20T17:10:44Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2025-10-20T16:16:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a1b0fae4182c3455ee24a5f3dcfc1a69553f2c93'/>
<id>urn:sha1:a1b0fae4182c3455ee24a5f3dcfc1a69553f2c93</id>
<content type='text'>
Commit a34940a9756a ("timezone: Move to the XSI/POSIX definition for
timezone") was not merged to stable/14.  The MFC of 29810aa6ae70
("libc: Move tzset.3 to stdtime") didn't take this into account and
ended up installing two different versions of timezone.3 over top of
each other.

This is a direcct commit to stable/14 as the issue is not present in
main.  If a34940a9756a gets merged in the future the reverted part of
29810aa6ae70 will need to be reapplied.

Fixes: 29810aa6ae70 ("libc: Move tzset.3 to stdtime")
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>libc: Add missing MLINK for tzname(3)</title>
<updated>2025-10-02T07:28:58Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-09-30T12:27:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50df33fd0dc86d2f50269af0d3e5b463c5c20934'/>
<id>urn:sha1:50df33fd0dc86d2f50269af0d3e5b463c5c20934</id>
<content type='text'>
While here, fix manlint warnings and a typo in tzset(3).

MFC after:	3 days

(cherry picked from commit be8830612314d9afb64b5c040db689de44eb4b85)
</content>
</entry>
<entry>
<title>libc: Move tzset.3 to stdtime</title>
<updated>2025-09-30T16:43:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-03-12T04:19:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=29810aa6ae70a5883dcb55c09a36ee38801dcd63'/>
<id>urn:sha1:29810aa6ae70a5883dcb55c09a36ee38801dcd63</id>
<content type='text'>
This really belongs in stddime, since it documents interfaces
implemented in stdtime.

Suggested by:	brooks
Sponsored by:	Netflix

(cherry picked from commit 7a0a6b276cfd7e072346842fe4746d08ee30e617)
</content>
</entry>
<entry>
<title>SPDX: Tag BSD-4.3TAHOE</title>
<updated>2025-07-04T18:20:02Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2025-05-15T13:53:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c3d1064e17e533094d6838209b3b3c8fe2b6e50'/>
<id>urn:sha1:9c3d1064e17e533094d6838209b3b3c8fe2b6e50</id>
<content type='text'>
TIL traceroute.8 has one of the oldest liceses, predating BSD-4-Clause!
The SPDX tag was not even on Wikipedia. These are all the files I could
find in the tree with git grep that look like the license reported on
the SPDX website, including one that was misfiled.

Ref:			https://spdx.org/licenses/BSD-4.3TAHOE.html
MFC after:		3 days
Reported by:		brooks
Reviewed by:		brooks, carlavilla, imp, ivy
Approved by:		carlavilla (mentor)
Differential Revision:	https://reviews.freebsd.org/D50362

(cherry picked from commit 7098712bbfd60df9db324decbc1a5dd8f751356f)
</content>
</entry>
<entry>
<title>strptime: Fix day-of-week calculation.</title>
<updated>2024-12-16T10:37:08Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-12-09T12:37:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=259dcedc4ade538c35100d364e5cfe30b89c9a95'/>
<id>urn:sha1:259dcedc4ade538c35100d364e5cfe30b89c9a95</id>
<content type='text'>
The day-of-week calculation used the raw year value without adjusting
for TM_YEAR_BASE, so it was off by one for 300 years out of every 400;
it just happened to be correct for 1901 through 2000.  It also used a
loop where a simple addition would have sufficed.

While here, simplify our version of Gauss's algorithm, and document
that we assume the Gregorian calendar.

MFC after:	1 week
PR:		282916
Reviewed by:	imp, allanjude, philip
Differential Revision:	https://reviews.freebsd.org/D47977

(cherry picked from commit 4285e024baa80f81d13cdcc016fdf0721fe57862)
</content>
</entry>
<entry>
<title>libc: Improve description of mktime() / timegm().</title>
<updated>2024-04-04T09:41:41Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-27T10:03:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdde01c5b44904e34ff3b003f446644de865fa21'/>
<id>urn:sha1:fdde01c5b44904e34ff3b003f446644de865fa21</id>
<content type='text'>
* Mention that mktime() and timegm() set errno on failure.
* Correctly determining whether mktime() / timegm() succeeded with
  arbitrary input (where -1 can be a valid result) is non-trivial.
  Document the recommended procedure.

PR:		277863
MFC after:	1 week
Reviewed by:	pauamma_gundo.com, gbe
Differential Revision:	https://reviews.freebsd.org/D44503

(cherry picked from commit 7534109d13a6cdb22e78d9d4c0a0cd5efd323c45)
</content>
</entry>
<entry>
<title>Update tzcode to 2024a.</title>
<updated>2024-02-21T20:33:23Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-02-13T20:20:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e257a38de4d57bb1884d5c7196131a81192d5252'/>
<id>urn:sha1:e257a38de4d57bb1884d5c7196131a81192d5252</id>
<content type='text'>
MFC after:	3 weeks
Sponsored by:	Klara, Inc.

(cherry picked from commit 46c599340f187db577b9212ab18022f3c7380c68)
</content>
</entry>
<entry>
<title>libc: Remove empty comments in Symbol.map</title>
<updated>2023-12-13T22:08:13Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2023-11-15T17:51:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=695639d2f4e1d618ffa10cf44a91db6dddf0709f'/>
<id>urn:sha1:695639d2f4e1d618ffa10cf44a91db6dddf0709f</id>
<content type='text'>
These were left over from $FreeBSD$ removal.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D42612

(cherry picked from commit 1ca63a8219b88b752b064d19bd3428c61dbcf1f9)
</content>
</entry>
<entry>
<title>libc: Purge unneeded cdefs.h</title>
<updated>2023-11-27T04:20:09Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-01T22:43:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4025b5b527c870cf095ac9531764f4e4d3feaec2'/>
<id>urn:sha1:4025b5b527c870cf095ac9531764f4e4d3feaec2</id>
<content type='text'>
These sys/cdefs.h are not needed. Purge them. They are mostly left-over
from the $FreeBSD$ removal. A few in libc are still required for macros
that cdefs.h defines. Keep those.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D42385

(cherry picked from commit 559a218c9b257775fb249b67945fe4a05b7a6b9f)
</content>
</entry>
</feed>
