[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [MISC] År 2038



On Tue, Sep 11, 2001 at 11:07:07 +0200, Jesper Bunch wrote:

> 
> Tirsdag 19. SSLUG - Panik, kaos og hysteri
> Fra 03:14 til 03:15 - i København
> perl -e 'print scalar(gmtime(2147483647))' - d. 19/1 2038 kl.
> 03:14 løber Linux' ur over og alt bliver nulstillet .
> 
> Hvorfor har man (Linus?) været så dum kun at bruge en signed 4
> byte værdi til datoen ?

Det er ikke linus, men standarderne for time(2) kaldet der anvendes,
den er ofte 32 bit (signed) på 32 bit maskiner.
(alm. 32 bit long i linux/i386)
Se  /usr/include/asm/posix_types.h

Men hvis vi til den tid er skiftet til 64, 128 bit eller mere
så er problemet måske løst. Kun gamle programmer med 32 bit vil få problemer.
Man kunne ændre det til "unsigned"  og udskyde problemet i 68 år
men det vil måske give andre problemer....


-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:24 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *