Subject: Re: CVS commit: src/sys/kern
To: Perry E. Metzger <perry@piermont.com>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: source-changes
Date: 09/03/2006 09:23:56
Perry E. Metzger wrote:
> Garrett D'Amore <gdamore@netbsd.org> 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