| #
79e57ea6
|
| 15-Oct-2025 |
Gordon Tetlow <gordon@FreeBSD.org> |
libc: Add "Z" as TZ designator for strptime.
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 reflec
libc: Add "Z" as TZ designator for strptime.
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
show more ...
|
| #
4285e024
|
| 09-Dec-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
strptime: Fix day-of-week calculation.
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 t
strptime: Fix day-of-week calculation.
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
show more ...
|
| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
bc421551
|
| 10-Jan-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Bring our tzcode up to date.
* Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg].
MFC after
Bring our tzcode up to date.
* Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg].
MFC after: 1 week Sponsored by: Klara, Inc.
show more ...
|
| #
5b5fa75a
|
| 04-Aug-2022 |
Ed Maste <emaste@FreeBSD.org> |
libc: drop "All rights reserved" from Foundation copyrights
This has already been done for most files that have the Foundation as the only listed copyright holder. Do it now for files that list mul
libc: drop "All rights reserved" from Foundation copyrights
This has already been done for most files that have the Foundation as the only listed copyright holder. Do it now for files that list multiple copyright holders, but have the Foundation copyright in its own section.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2a22df74
|
| 04-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339813 through r340125.
|
| #
32a8ec8b
|
| 03-Nov-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
strptime: make %k and %l specifiers match their description in strftime(3), and allow them to process space-padded input.
PR: 230720 Submitted by: rlittle@inetco.com (original version) Approved by:
strptime: make %k and %l specifiers match their description in strftime(3), and allow them to process space-padded input.
PR: 230720 Submitted by: rlittle@inetco.com (original version) Approved by: kib (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17761
show more ...
|
| #
c6879c6c
|
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
| #
eb144aa0
|
| 17-Oct-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
strptime: fix parsing of tm_year when both %C and %y appear in the format string in arbitrary order. This makes the related test cases in lib/libc/tests/time (not yet connected to the build) pass.
strptime: fix parsing of tm_year when both %C and %y appear in the format string in arbitrary order. This makes the related test cases in lib/libc/tests/time (not yet connected to the build) pass.
While here, don't error on negative tm_year value based on the APPLICATION USAGE in http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html (glibc does the same):
tm_year is a signed value; therefore, years before 1900 may be represented.
Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17550
show more ...
|
| #
cbc00629
|
| 13-Oct-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
strptime: disallow zero hour for %I (defined by POSIX as [01,12]) and %l (extension, defined in strftime(3) as 1-12).
Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freeb
strptime: disallow zero hour for %I (defined by POSIX as [01,12]) and %l (extension, defined in strftime(3) as 1-12).
Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17543
show more ...
|
| #
7c328352
|
| 09-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339253.
Sponsored by: The FreeBSD Foundation
|
| #
92cbfb63
|
| 08-Oct-2018 |
Konstantin Belousov <kib@FreeBSD.org> |
Disallow zero day of month from strptime("%d").
It is required by POSIX, specified in our man page, and followed by Linux.
PR: 232072 Reported by: miguel_tete17@hotmail.com Sponsored by: The FreeBS
Disallow zero day of month from strptime("%d").
It is required by POSIX, specified in our man page, and followed by Linux.
PR: 232072 Reported by: miguel_tete17@hotmail.com Sponsored by: The FreeBSD Foundation Approved by: re (gjb) MFC after: 1 week
show more ...
|
| #
79e57ea6
|
| 15-Oct-2025 |
Gordon Tetlow <gordon@FreeBSD.org> |
libc: Add "Z" as TZ designator for strptime.
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 reflec
libc: Add "Z" as TZ designator for strptime.
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
show more ...
|
| #
4285e024
|
| 09-Dec-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
strptime: Fix day-of-week calculation.
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 t
strptime: Fix day-of-week calculation.
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
show more ...
|
| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
bc421551
|
| 10-Jan-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Bring our tzcode up to date.
* Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg].
MFC after
Bring our tzcode up to date.
* Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg].
MFC after: 1 week Sponsored by: Klara, Inc.
show more ...
|
| #
5b5fa75a
|
| 04-Aug-2022 |
Ed Maste <emaste@FreeBSD.org> |
libc: drop "All rights reserved" from Foundation copyrights
This has already been done for most files that have the Foundation as the only listed copyright holder. Do it now for files that list mul
libc: drop "All rights reserved" from Foundation copyrights
This has already been done for most files that have the Foundation as the only listed copyright holder. Do it now for files that list multiple copyright holders, but have the Foundation copyright in its own section.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2a22df74
|
| 04-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339813 through r340125.
|
| #
32a8ec8b
|
| 03-Nov-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
strptime: make %k and %l specifiers match their description in strftime(3), and allow them to process space-padded input.
PR: 230720 Submitted by: rlittle@inetco.com (original version) Approved by:
strptime: make %k and %l specifiers match their description in strftime(3), and allow them to process space-padded input.
PR: 230720 Submitted by: rlittle@inetco.com (original version) Approved by: kib (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17761
show more ...
|
| #
c6879c6c
|
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
| #
eb144aa0
|
| 17-Oct-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
strptime: fix parsing of tm_year when both %C and %y appear in the format string in arbitrary order. This makes the related test cases in lib/libc/tests/time (not yet connected to the build) pass.
strptime: fix parsing of tm_year when both %C and %y appear in the format string in arbitrary order. This makes the related test cases in lib/libc/tests/time (not yet connected to the build) pass.
While here, don't error on negative tm_year value based on the APPLICATION USAGE in http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html (glibc does the same):
tm_year is a signed value; therefore, years before 1900 may be represented.
Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17550
show more ...
|