CVS commit: src/lib/libc/time

2024-03-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 18 16:15:24 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Declare digit d as time_t. This doesn't make a semantic difference -- d can only take on the ten values {0,1,2,3,4,5,6,7,8,9}

CVS commit: src/lib/libc/time

2024-03-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 18 16:15:24 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Declare digit d as time_t. This doesn't make a semantic difference -- d can only take on the ten values {0,1,2,3,4,5,6,7,8,9}

CVS commit: src/lib/libc/time

2024-03-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 16 00:16:21 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Reduce unnecessary indentation. Post-fix tidying. No functional change intended. PR lib/58041 To generate a diff of this

CVS commit: src/lib/libc/time

2024-03-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 16 00:16:21 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Reduce unnecessary indentation. Post-fix tidying. No functional change intended. PR lib/58041 To generate a diff of this

CVS commit: src/lib/libc/time

2024-03-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 16 00:06:46 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Avoid arithmetic overflow. PR lib/58041 To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/libc/time/str

CVS commit: src/lib/libc/time

2024-03-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 16 00:06:46 UTC 2024 Modified Files: src/lib/libc/time: strptime.c Log Message: strptime(3): Avoid arithmetic overflow. PR lib/58041 To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/libc/time/str

CVS commit: src/lib/libc/time

2024-03-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Mar 11 23:03:35 UTC 2024 Modified Files: src/lib/libc/time: localtime.c Log Message: add casts for compat code where time_t is 32 bits. To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143 src/lib/libc/time/loca

CVS commit: src/lib/libc/time

2024-03-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Mar 11 23:03:35 UTC 2024 Modified Files: src/lib/libc/time: localtime.c Log Message: add casts for compat code where time_t is 32 bits. To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143 src/lib/libc/time/loca

CVS commit: src/lib/libc/time

2024-03-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Mar 7 20:42:04 UTC 2024 Modified Files: src/lib/libc/time: localtime.c Log Message: pass lint on sparc64 where int_fast32_t is long. To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142 src/lib/libc/time/localt

CVS commit: src/lib/libc/time

2024-03-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Mar 7 20:42:04 UTC 2024 Modified Files: src/lib/libc/time: localtime.c Log Message: pass lint on sparc64 where int_fast32_t is long. To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142 src/lib/libc/time/localt

CVS commit: src/lib/libc/time

2024-02-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Feb 18 12:47:08 UTC 2024 Modified Files: src/lib/libc/time: strftime.c Log Message: Revert this part: strftime %s now uses tm_gmtoff if available. (Problem and draft patch reported by Dag-Erling Smørgrav.) of t

CVS commit: src/lib/libc/time

2024-02-18 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Feb 18 12:47:08 UTC 2024 Modified Files: src/lib/libc/time: strftime.c Log Message: Revert this part: strftime %s now uses tm_gmtoff if available. (Problem and draft patch reported by Dag-Erling Smørgrav.) of t

CVS commit: src/lib/libc/time

2023-12-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 23 20:48:38 UTC 2023 Modified Files: src/lib/libc/time: Makefile NEWS README localtime.c private.h tz-art.html tz-link.html Log Message: Import tzcode 2023d: localtime.c no longer mishandles TZif files t

CVS commit: src/lib/libc/time

2023-12-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 23 20:48:38 UTC 2023 Modified Files: src/lib/libc/time: Makefile NEWS README localtime.c private.h tz-art.html tz-link.html Log Message: Import tzcode 2023d: localtime.c no longer mishandles TZif files t

Re: CVS commit: src/lib/libc/time

2023-12-07 Thread Steffen Nurpmeso
Valery Ushakov wrote in : |On Fri, Dec 08, 2023 at 01:32:49 +0300, Valery Ushakov wrote: | |> On Thu, Dec 07, 2023 at 20:13:37 +, Robert Elz wrote: |> |>> While here, consistemntly use minus when minus is meant, rather that |>> just using a hyphen. |> |> One has to be careful with this

Re: CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
On Fri, Dec 08, 2023 at 01:32:49 +0300, Valery Ushakov wrote: > On Thu, Dec 07, 2023 at 20:13:37 +, Robert Elz wrote: > > > While here, consistemntly use minus when minus is meant, rather that > > just using a hyphen. > > One has to be careful with this. And to have this on record for refernc

CVS commit: src/lib/libc/time

2023-12-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 7 23:42:28 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: Fix yet another wording (editing) botch noticed by uwe@ To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/lib/libc/time/zic.8 Pleas

CVS commit: src/lib/libc/time

2023-12-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 7 23:42:28 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: Fix yet another wording (editing) botch noticed by uwe@ To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/lib/libc/time/zic.8 Pleas

CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Dec 7 23:21:21 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: zic(8): missed a .Ql To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/zic.8 Please note that diffs are not public do

CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Dec 7 23:21:21 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: zic(8): missed a .Ql To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/zic.8 Please note that diffs are not public do

Re: CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
On Thu, Dec 07, 2023 at 20:13:37 +, Robert Elz wrote: > While here, consistemntly use minus when minus is meant, rather that > just using a hyphen. One has to be careful with this. In the literal context (Ql, Li, etc) the ascii minus-hyphen in the input is preserved as such. In other contex

CVS commit: src/lib/libc/time

2023-12-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 7 20:13:37 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: Fix a wording botch noticed by uwe@ (and one more smaller one), and a few more markup issues. While here, consistemntly use minus when minus is mean

CVS commit: src/lib/libc/time

2023-12-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Dec 7 20:13:37 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: Fix a wording botch noticed by uwe@ (and one more smaller one), and a few more markup issues. While here, consistemntly use minus when minus is mean

CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Dec 7 16:16:03 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: zic(8): more markup fixes Still need to go over the tables. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/zic.8

CVS commit: src/lib/libc/time

2023-12-07 Thread Valery Ushakov
Module Name:src Committed By: uwe Date: Thu Dec 7 16:16:03 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: zic(8): more markup fixes Still need to go over the tables. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/zic.8

CVS commit: src/lib/libc/time

2023-12-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 6 21:45:11 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 Log Message: A couple more (relatively minor) markup fixes. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/zdump.8 Please not

CVS commit: src/lib/libc/time

2023-12-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 6 21:45:11 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 Log Message: A couple more (relatively minor) markup fixes. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/zdump.8 Please not

CVS commit: src/lib/libc/time

2023-12-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 6 21:42:01 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: More markup fixes.This man page remains exceedingly ugly (particularly relating to vertical space - which often is missing where it would be bette

CVS commit: src/lib/libc/time

2023-12-06 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Dec 6 21:42:01 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: More markup fixes.This man page remains exceedingly ugly (particularly relating to vertical space - which often is missing where it would be bette

CVS commit: src/lib/libc/time

2023-12-06 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Dec 6 20:01:44 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: PR/57757: Izumi Tsutsui: Fix markup errors To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zdump.8 cvs

CVS commit: src/lib/libc/time

2023-12-06 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Dec 6 20:01:44 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: PR/57757: Izumi Tsutsui: Fix markup errors To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zdump.8 cvs

CVS commit: src/lib/libc/time

2023-09-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 12 21:56:05 UTC 2023 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime.3: fix merge mistake The paragraphs about the *_r and *_z/rz functions belong at the end of the section (or somewhere like that), not af

CVS commit: src/lib/libc/time

2023-09-12 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Sep 12 21:56:05 UTC 2023 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime.3: fix merge mistake The paragraphs about the *_r and *_z/rz functions belong at the end of the section (or somewhere like that), not af

CVS commit: src/lib/libc/time

2023-07-26 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Wed Jul 26 09:17:20 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: Fix formatting corruption for manpages from tzcode. Comment out .TH macros, that cause mandoc(1) to run into man(7) mode. To generate a dif

CVS commit: src/lib/libc/time

2023-07-26 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Wed Jul 26 09:17:20 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: Fix formatting corruption for manpages from tzcode. Comment out .TH macros, that cause mandoc(1) to run into man(7) mode. To generate a dif

CVS commit: src/lib/libc/time

2023-01-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Jan 17 13:18:03 UTC 2023 Modified Files: src/lib/libc/time: zic.c Log Message: put attributes first for c23 compliance. To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/lib/libc/time/zic.c Please note tha

CVS commit: src/lib/libc/time

2023-01-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Jan 17 13:18:03 UTC 2023 Modified Files: src/lib/libc/time: zic.c Log Message: put attributes first for c23 compliance. To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/lib/libc/time/zic.c Please note tha

CVS commit: src/lib/libc/time

2023-01-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 15 18:12:37 UTC 2023 Modified Files: src/lib/libc/time: NEWS localtime.c private.h zdump.c zic.c Log Message: Apply 9cfe9507fcc22cd4a0c4da486ea1c7f0de6b075f for C23 attribute compliance. Requested by Jan-Benedict Glaw.

CVS commit: src/lib/libc/time

2023-01-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 15 18:12:37 UTC 2023 Modified Files: src/lib/libc/time: NEWS localtime.c private.h zdump.c zic.c Log Message: Apply 9cfe9507fcc22cd4a0c4da486ea1c7f0de6b075f for C23 attribute compliance. Requested by Jan-Benedict Glaw.

CVS commit: src/lib/libc/time

2022-12-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Dec 13 19:08:42 UTC 2022 Modified Files: src/lib/libc/time: zdump.c zic.c Log Message: Handle the case the code originally intended to handle; systems where: SIZE_MAX < PTRDIFF_MAX To generate a diff of this commit: cvs rd

CVS commit: src/lib/libc/time

2022-12-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Dec 13 19:08:42 UTC 2022 Modified Files: src/lib/libc/time: zdump.c zic.c Log Message: Handle the case the code originally intended to handle; systems where: SIZE_MAX < PTRDIFF_MAX To generate a diff of this commit: cvs rd

CVS commit: src/lib/libc/time

2022-12-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 11 17:57:23 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS ctime.3 localtime.c private.h strftime.c theory.html time2posix.3 tzfile.5 tzselect.8 tzset.3 version zdump.8 zdump.c zic.8 zic

CVS commit: src/lib/libc/time

2022-12-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 11 17:57:23 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS ctime.3 localtime.c private.h strftime.c theory.html time2posix.3 tzfile.5 tzselect.8 tzset.3 version zdump.8 zdump.c zic.8 zic

CVS commit: src/lib/libc/time

2022-11-17 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Thu Nov 17 17:35:25 UTC 2022 Modified Files: src/lib/libc/time: private.h Log Message: Simply set HAVE_GETRANDOM to false on __APPLE__. Addresses PR 57083. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/lib

CVS commit: src/lib/libc/time

2022-11-17 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Thu Nov 17 17:35:25 UTC 2022 Modified Files: src/lib/libc/time: private.h Log Message: Simply set HAVE_GETRANDOM to false on __APPLE__. Addresses PR 57083. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/lib

CVS commit: src/lib/libc/time

2022-11-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Nov 16 19:38:08 UTC 2022 Modified Files: src/lib/libc/time: private.h Log Message: PR/57083: Jiaxun Yang: Fix build on MacOS/X which has but no getrandom(3). To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 s

CVS commit: src/lib/libc/time

2022-11-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Nov 16 19:38:08 UTC 2022 Modified Files: src/lib/libc/time: private.h Log Message: PR/57083: Jiaxun Yang: Fix build on MacOS/X which has but no getrandom(3). To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 s

CVS commit: src/lib/libc/time

2022-11-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Nov 2 12:49:10 UTC 2022 Modified Files: src/lib/libc/time: zic.c Log Message: Cleaner to use if/then/else rather than a ton of casts in the ternary operator. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 s

CVS commit: src/lib/libc/time

2022-11-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Nov 2 12:49:10 UTC 2022 Modified Files: src/lib/libc/time: zic.c Log Message: Cleaner to use if/then/else rather than a ton of casts in the ternary operator. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 s

CVS commit: src/lib/libc/time

2022-10-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Oct 29 13:55:50 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS localtime.c private.h theory.html version zdump.c zic.8 zic.c Log Message: Update to tzcode2022f Changes to code zic now supports

CVS commit: src/lib/libc/time

2022-10-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Oct 29 13:55:50 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS localtime.c private.h theory.html version zdump.c zic.8 zic.c Log Message: Update to tzcode2022f Changes to code zic now supports

CVS commit: src/lib/libc/time

2022-10-26 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Wed Oct 26 23:22:54 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: rephrase / clarify explanation of struct tm member normalization To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/lib/libc/t

CVS commit: src/lib/libc/time

2022-10-26 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Wed Oct 26 23:22:54 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: rephrase / clarify explanation of struct tm member normalization To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/lib/libc/t

Re: CVS commit: src/lib/libc/time

2022-10-26 Thread Robert Elz
Date:Wed, 26 Oct 2022 10:42:15 -0400 From:Jan Schaumann Message-ID: | New proposal: That looks better (it needs some minor wording changes, there are too many indefinite articles ('a') which aren't needed, and there midnight should be just that, no hyphen or space

Re: CVS commit: src/lib/libc/time

2022-10-26 Thread Jan Schaumann
Robert Elz wrote: > Date:Sun, 23 Oct 2022 13:53:01 -0400 > From:Jan Schaumann > Message-ID: > > | Hmm, maybe something like this? > > I think there is still too much there, you don't have > to explain everything (or almost anything), but it is > in the right dire

CVS commit: src/lib/libc/time

2022-10-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 25 08:07:08 UTC 2022 Modified Files: src/lib/libc/time: strftime.3 Log Message: Fix a merge or conversion problem (probably) - a .SH BUGS (meaningless macro in mdoc) followed by the first line of the real BUGS section somehow

CVS commit: src/lib/libc/time

2022-10-25 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Oct 25 08:07:08 UTC 2022 Modified Files: src/lib/libc/time: strftime.3 Log Message: Fix a merge or conversion problem (probably) - a .SH BUGS (meaningless macro in mdoc) followed by the first line of the real BUGS section somehow

CVS commit: src/lib/libc/time

2022-10-24 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Mon Oct 24 23:18:31 UTC 2022 Modified Files: src/lib/libc/time: strptime.3 Log Message: strptime(3): make the fact that %z is an extension more prominent Mention it near the format itself, not on the next screen (with an awkward ind

CVS commit: src/lib/libc/time

2022-10-24 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Mon Oct 24 23:18:31 UTC 2022 Modified Files: src/lib/libc/time: strptime.3 Log Message: strptime(3): make the fact that %z is an extension more prominent Mention it near the format itself, not on the next screen (with an awkward ind

Re: CVS commit: src/lib/libc/time

2022-10-24 Thread Steffen Nurpmeso
Taylor R Campbell wrote in <20221023170035.2542f60...@jupiter.mumble.net>: ... |If you use a monotonic timer to sample the POSIX clock before and |after a leap second, the POSIX clock will appear to have taken twice |as long as it should to pass the leap second. Just to note that the next lea

Re: CVS commit: src/lib/libc/time

2022-10-24 Thread Robert Elz
Date:Sun, 23 Oct 2022 13:53:01 -0400 From:Jan Schaumann Message-ID: | Hmm, maybe something like this? I think there is still too much there, you don't have to explain everything (or almost anything), but it is in the right direction I think. | For example, cons

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Warner Losh
On Sun, Oct 23, 2022 at 11:00 AM Taylor R Campbell < campbell+netbsd-source-change...@mumble.net> wrote: > > Date: Sun, 23 Oct 2022 07:39:25 -0600 > > From: Warner Losh > > > > I guess a more accurate way of saying this is that leap seconds simply > > aren't reliable, cannot be made reliable, and

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Taylor R Campbell
> Date: Sun, 23 Oct 2022 12:19:37 -0600 > From: Warner Losh > > You must have a table of all past > leap seconds to do any kind of sensible mapping. And you also must > have some way to keep that up to date, [...] It's the same for all civil calendar matters

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Jan Schaumann
Robert Elz wrote: > Date:Sat, 22 Oct 2022 13:42:54 -0400 > From:Jan Schaumann > Message-ID: > > | A full set of examples strikes me as too much here > > A full set would be yes, but I think we could handle 3. Hmm, maybe something like this? ...and will be

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Taylor R Campbell
> Date: Sun, 23 Oct 2022 07:39:25 -0600 > From: Warner Losh > > I guess a more accurate way of saying this is that leap seconds simply > aren't reliable, cannot be made reliable, and this affects normalization > in ways too numerous to mention due to the details of the tz files, bugs > in the sys

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Warner Losh
On Sat, Oct 22, 2022 at 10:55 PM Robert Elz wrote: > Date:Sat, 22 Oct 2022 20:17:57 -0600 > From:Warner Losh > Message-ID: < > canczdfqhkz0xs7lf6lmjveontc5dgsonons_ug6fzsf30og...@mail.gmail.com> > > > | On the other hand, adding a caveat that leap seconds don't exi

Re: CVS commit: src/lib/libc/time

2022-10-23 Thread Warner Losh
On Sat, Oct 22, 2022, 8:05 PM Robert Elz wrote: > Date:Sat, 22 Oct 2022 13:42:54 -0400 > From:Jan Schaumann > Message-ID: > > | A full set of examples strikes me as too much here > > A full set would be yes, but I think we could handle 3. > They don't need to be C

Re: CVS commit: src/lib/libc/time

2022-10-22 Thread Robert Elz
Date:Sat, 22 Oct 2022 20:17:57 -0600 From:Warner Losh Message-ID: | On the other hand, adding a caveat that leap seconds don't exist in a POSIX | time_t and that's necessarily reflected in the normalization wouldn't be | bad. The problem with doing that is t

Re: CVS commit: src/lib/libc/time

2022-10-22 Thread Robert Elz
Date:Sun, 23 Oct 2022 08:33:18 +0700 From:Robert Elz Message-ID: <7638.1666488...@jacaranda.noi.kre.to> | and tm_min was incremented as tm_min+=180, and then | mktime() called upon the result, the struct tm would | now have tm_min==1 tm_hour==24 and tm_mday==20,

Re: CVS commit: src/lib/libc/time

2022-10-22 Thread Robert Elz
Date:Sat, 22 Oct 2022 13:42:54 -0400 From:Jan Schaumann Message-ID: | A full set of examples strikes me as too much here A full set would be yes, but I think we could handle 3. They don't need to be C code examples, just something like if tm_year==2022 tm_

Re: CVS commit: src/lib/libc/time

2022-10-22 Thread Jan Schaumann
Robert Elz wrote: > jo...@bec.de said: > | I'd actually weasle out a bit > > Yes, I would too, but A full set of examples strikes me as too much here still, and I do like the idea of weaseling out. Perhaps: This normalization is done in order from tm_sec up to tm_year, possibly leading to ca

Re: CVS commit: src/lib/libc/time

2022-10-22 Thread Robert Elz
Date:Fri, 21 Oct 2022 15:00:41 -0400 From:Jan Schaumann Message-ID: | I believe that it's useful for people to know that | values outside the normal ranges are normalized, Agreed. | as well as what that might look like. The problem with trying to specify tha

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Joerg Sonnenberger
Am Fri, Oct 21, 2022 at 02:06:32PM +0700 schrieb Robert Elz: > Date:Fri, 21 Oct 2022 03:05:15 + > From:"Jan Schaumann" > Message-ID: <20221021030515.cdc9df...@cvs.netbsd.org> > > | Note normalizing behavior of mktime(3) using language from FreeBSD. > > If we ar

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Jan Schaumann
Robert Elz wrote: > Date:Fri, 21 Oct 2022 11:54:08 -0400 > From:Jan Schaumann > Message-ID: > > | Right, but all that strikes me as too much to put into > | the manual page here. > > I agree, which is why I wondered if we should be giving any > details about ho

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Robert Elz
Date:Fri, 21 Oct 2022 11:54:08 -0400 From:Jan Schaumann Message-ID: | Right, but all that strikes me as too much to put into | the manual page here. I agree, which is why I wondered if we should be giving any details about how it is done at all. | I think wha

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Jan Schaumann
Robert Elz wrote: > Date:Fri, 21 Oct 2022 10:36:23 -0400 > From:Jan Schaumann > Message-ID: > > > | Perhaps like this? > > Like that, yes, but as you wrote it isn't how it is actually > done I believe. > > The order looks to be secs, mins, hours, month, day(of

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Robert Elz
Date:Fri, 21 Oct 2022 10:36:23 -0400 From:Jan Schaumann Message-ID: | Perhaps like this? Like that, yes, but as you wrote it isn't how it is actually done I believe. The order looks to be secs, mins, hours, month, day(of month). There's no normalisation of the

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Jan Schaumann
Robert Elz wrote: > Date:Fri, 21 Oct 2022 03:05:15 + > From:"Jan Schaumann" > Message-ID: <20221021030515.cdc9df...@cvs.netbsd.org> > > | Note normalizing behavior of mktime(3) using language from FreeBSD. > > If we are going to start specifying what happens (

CVS commit: src/lib/libc/time

2022-10-21 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Fri Oct 21 12:28:43 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime(3): fix unbalanced paren introduced in 1.40 To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/lib/libc/time/ctime.3 Please

CVS commit: src/lib/libc/time

2022-10-21 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Fri Oct 21 12:28:43 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime(3): fix unbalanced paren introduced in 1.40 To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/lib/libc/time/ctime.3 Please

CVS commit: src/lib/libc/time

2022-10-21 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Fri Oct 21 12:11:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime(3): add missing leading slash in a pathname To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/ctime.3 Please

CVS commit: src/lib/libc/time

2022-10-21 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Fri Oct 21 12:11:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: ctime(3): add missing leading slash in a pathname To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/ctime.3 Please

Re: CVS commit: src/lib/libc/time

2022-10-21 Thread Robert Elz
Date:Fri, 21 Oct 2022 03:05:15 + From:"Jan Schaumann" Message-ID: <20221021030515.cdc9df...@cvs.netbsd.org> | Note normalizing behavior of mktime(3) using language from FreeBSD. If we are going to start specifying what happens (how the struct tm is normalised)

CVS commit: src/lib/libc/time

2022-10-20 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:08:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: escape mathematical minus so it doesn't get rendered as a dash To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libc/tim

CVS commit: src/lib/libc/time

2022-10-20 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:08:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: escape mathematical minus so it doesn't get rendered as a dash To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libc/tim

CVS commit: src/lib/libc/time

2022-10-20 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:05:15 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: Note normalizing behavior of mktime(3) using language from FreeBSD. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/lib

CVS commit: src/lib/libc/time

2022-10-20 Thread Jan Schaumann
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:05:15 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: Note normalizing behavior of mktime(3) using language from FreeBSD. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/lib

CVS commit: src/lib/libc/time

2022-10-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Oct 15 18:57:37 UTC 2022 Modified Files: src/lib/libc/time: NEWS tzselect.ksh version Log Message: update to 2022e; no real changes To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/lib/libc/time/NEWS cvs r

CVS commit: src/lib/libc/time

2022-10-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Oct 15 18:57:37 UTC 2022 Modified Files: src/lib/libc/time: NEWS tzselect.ksh version Log Message: update to 2022e; no real changes To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/lib/libc/time/NEWS cvs r

CVS commit: src/lib/libc/time

2022-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Aug 24 06:39:14 UTC 2022 Modified Files: src/lib/libc/time: zic.8 Log Message: add missing text. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/zic.8 Please note that diffs are not public

CVS commit: src/lib/libc/time

2022-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Aug 24 06:39:14 UTC 2022 Modified Files: src/lib/libc/time: zic.8 Log Message: add missing text. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/zic.8 Please note that diffs are not public

CVS commit: src/lib/libc/time

2022-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 23 14:54:50 UTC 2022 Modified Files: src/lib/libc/time: tzset.3 Log Message: Fix argument name To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/tzset.3 Please note that diffs are not pub

CVS commit: src/lib/libc/time

2022-08-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 23 14:54:50 UTC 2022 Modified Files: src/lib/libc/time: tzset.3 Log Message: Fix argument name To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/tzset.3 Please note that diffs are not pub

CVS commit: src/lib/libc/time

2022-08-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 16 11:07:40 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS ctime.3 private.h theory.html tz-art.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh version zic.c Log Message: Welcome to

CVS commit: src/lib/libc/time

2022-08-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 16 11:07:40 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS ctime.3 private.h theory.html tz-art.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh version zic.c Log Message: Welcome to

CVS commit: src/lib/libc/time

2022-08-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 16 10:56:22 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS asctime.c calendars localtime.c private.h strftime.c theory.html tz-how-to.html tz-link.html tzselect.8 version zdump.c zic.8 z

CVS commit: src/lib/libc/time

2022-08-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Aug 16 10:56:22 UTC 2022 Modified Files: src/lib/libc/time: Makefile NEWS asctime.c calendars localtime.c private.h strftime.c theory.html tz-how-to.html tz-link.html tzselect.8 version zdump.c zic.8 z

Re: CVS commit: src/lib/libc/time

2022-03-26 Thread Christos Zoulas
In article <977b81a4-d330-6722-7ce4-cc4e61011...@gmx.de>, Roland Illig wrote: >Am 25.03.2022 um 22:25 schrieb Christos Zoulas: >> In article <20220325183551.0f039f...@cvs.netbsd.org>, >> Roland Illig wrote: >>> -=-=-=-=-=- >>> >>> Module Name:src >>> Committed By: rillig >>> Date:

Re: CVS commit: src/lib/libc/time

2022-03-25 Thread Roland Illig
Am 26.03.2022 um 00:50 schrieb Tobias Nygren: On Sat, 26 Mar 2022 00:31:45 +0100 Roland Illig wrote: localtime.c: add back storage class 'register' This reduces the differences to the upstream code. I don't know why you did that. It is as simple to sed -e 's/register //g' in upstream when y

Re: CVS commit: src/lib/libc/time

2022-03-25 Thread Tobias Nygren
On Sat, 26 Mar 2022 00:31:45 +0100 Roland Illig wrote: > >> localtime.c: add back storage class 'register' > >> > >> This reduces the differences to the upstream code. > > > > I don't know why you did that. It is as simple to sed -e 's/register //g' > > in upstream when you diff. Adding register

  1   2   3   >