Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



Am Fri, Oct 21, 2022 at 02:06:32PM +0700 schrieb Robert Elz:
>     Date:        Fri, 21 Oct 2022 03:05:15 +0000
>     From:        "Jan Schaumann" <jschauma%netbsd.org@localhost>
>     Message-ID:  <20221021030515.CDC9DFA90%cvs.NetBSD.org@localhost>
> 
>   | 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) then we really also need to specify in which order
> the fields are corrected.   It makes a difference.

I'd actually weasle out a bit and just declare that normalisation is
best effort and we don't guarantee behavior for values that are very
much outside the range of the corresponding field. E.g. anything where
numerical overflow can happen in a component.

Joerg


Home | Main Index | Thread Index | Old Index