James Carlson <james.d.carlson at sun.com> wrote:

> Glenn Fowler writes:
> > _LARGEFILE_SOURCE or not, sizeof(time_t)==4 for 32-bit objects
> > apparently sizeof(time_t)>4 for 64-bit objects?
> > so a file with mtime year > 2038 accessed by a 32-bit object
> > is mishandled in what way? just invalid st_mtime, or worse?
>
> Rather than return incorrect data, the system call itself fails.

This is no 100% correct:

>From a discussion fwith Frank Hofmann, I know that if you run a
32 bit kernel and try to acces a pcfs (FAT) filesystem with a time
stamp > 2038, the kernel will return the low 32 bits of the time_t.

A 64 Bit kernel will prevent you from accessing the file.

J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       schilling at fokus.fraunhofer.de     (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to