libc: Add "Z" as TZ designator for strptime.ISO 8601 allows use of "Z" as the time zone designator. Update thestrptime parser to allow this usage.While we are at it, update the manpage to reflec
libc: Add "Z" as TZ designator for strptime.ISO 8601 allows use of "Z" as the time zone designator. Update thestrptime parser to allow this usage.While we are at it, update the manpage to reflect that both UTC and Zare now valid options.Reviewed by: desMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D53083
show more ...
libc: Add missing MLINK for tzname(3)While here, fix manlint warnings and a typo in tzset(3).MFC after: 3 days
tzcode: Expose and document offtime() and offtime_r()Includes diff reduction to upstream version of this patch.MFC after: 3 daysSponsored by: Klara, Inc.Reviewed by: philipDifferential Revisio
tzcode: Expose and document offtime() and offtime_r()Includes diff reduction to upstream version of this patch.MFC after: 3 daysSponsored by: Klara, Inc.Reviewed by: philipDifferential Revision: https://reviews.freebsd.org/D39715
libc: Test time zone change detection.While here, clean the detection code up a bit.Sponsored by: Klara, Inc.Sponsored by: NetApp, Inc.Reviewed by: markjDifferential Revision: https://reviews.
libc: Test time zone change detection.While here, clean the detection code up a bit.Sponsored by: Klara, Inc.Sponsored by: NetApp, Inc.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D51343
SPDX: Tag BSD-4.3TAHOETIL 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 couldfind in the tree with git grep
SPDX: Tag BSD-4.3TAHOETIL 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 couldfind in the tree with git grep that look like the license reported onthe SPDX website, including one that was misfiled.Ref: https://spdx.org/licenses/BSD-4.3TAHOE.htmlMFC after: 3 daysReported by: brooksReviewed by: brooks, carlavilla, imp, ivyApproved by: carlavilla (mentor)Differential Revision: https://reviews.freebsd.org/D50362
strptime: Fix day-of-week calculation.The day-of-week calculation used the raw year value without adjustingfor TM_YEAR_BASE, so it was off by one for 300 years out of every 400;it just happened t
strptime: Fix day-of-week calculation.The day-of-week calculation used the raw year value without adjustingfor 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 aloop where a simple addition would have sufficed.While here, simplify our version of Gauss's algorithm, and documentthat we assume the Gregorian calendar.MFC after: 1 weekPR: 282916Reviewed by: imp, allanjude, philipDifferential Revision: https://reviews.freebsd.org/D47977
libc: Improve description of mktime() / timegm().* Mention that mktime() and timegm() set errno on failure.* Correctly determining whether mktime() / timegm() succeeded with arbitrary input (whe
libc: Improve description of mktime() / timegm().* 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: 277863MFC after: 1 weekReviewed by: pauamma_gundo.com, gbeDifferential Revision: https://reviews.freebsd.org/D44503
libc: Move tzset.3 to stdtimeThis really belongs in stddime, since it documents interfacesimplemented in stdtime.Suggested by: brooksSponsored by: Netflix
timezone: Move to the XSI/POSIX definition for timezone.The old timezone(3) function has long since been obsolete and has afatally flawed interface. Retain this function for compatibilitypurposes
timezone: Move to the XSI/POSIX definition for timezone.The old timezone(3) function has long since been obsolete and has afatally flawed interface. Retain this function for compatibilitypurposes, but shift to providing the offset from UTC in the timezonevariable, whether or not the timezone observes summer time in the'daylight' variable. Document the tzname variable that's already beenset. Also make _tztab() static. It's not used in libc (or anywhere inthe tree) and it's not exported as a public dynamic symbol.Sponsored by: NetflixReviewed by: brooks, kibDifferential Revision: https://reviews.freebsd.org/D44281
Update tzcode to 2024a.MFC after: 3 weeksSponsored by: Klara, Inc.
Remove copyright strings ifdef'd outWe've ifdef'd out the copyright strings for some time now. Go ahead andremove the ifdefs. Plus whatever other detritis was left over from otherrecent removals.
Remove copyright strings ifdef'd outWe've ifdef'd out the copyright strings for some time now. Go ahead andremove the ifdefs. Plus whatever other detritis was left over from otherrecent removals. These copyright strings are present in the comments andare largely from CSRG's attempt at adding their copyright to everybinary file (which modern interpretations of the license doesn'trequire).Sponsored by: Netflix
lib: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl s
lib: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl script.Sponsored by: Netflix
libc: Remove empty comments in Symbol.mapThese were left over from $FreeBSD$ removal.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D42612
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Kee
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Keep those.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D42385
Remove $FreeBSD$: one-line nroff patternRemove /^\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
tzcode: Clean up the ctime(3) manual page.MFC after: 3 weeksSponsored by: Klara, Inc.Reviewed by: pauamma_gundo.comDifferential Revision: https://reviews.freebsd.org/D39714
Update tzcode to 2023c.MFC after: 3 weeksSponsored by: Klara, Inc.Reviewed by: philipDifferential Revision: https://reviews.freebsd.org/D39712
libc: Remove prototype and documentation for tzsetwall().PR: 269445Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D38481
tzcode: Move configuration into separate header.MFC after: 1 weekSponsored by: Klara, Inc.
1234567891011