Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/kern
Perry E. Metzger wrote:
> Garrett D'Amore <gdamore%netbsd.org@localhost> writes:
>
>> Log Message:
>> Don't warn about RTC losing/gaining days if the filesystem time is bogus.
>>
>
> The x86 port had code to make sure that, if time_t is 32 bits, you
> should get mad about times in 2038 and greater. (The code
> automagically was compiled out if time_t was > than 32 bits.)
>
> We be using that.
>
> Perry
>
The "clock implementation" (i.e. the code that is called by
todr_gettime()) should check that. For x86, it still does. In such a
case it returns an error back to todr_gettime() rather than providing a
bogus time.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191
Home |
Main Index |
Thread Index |
Old Index