[rescue] UNIX 2038 bug - looking for a list

r.stricklin bear at typewritten.org
Sun May 18 23:15:33 CDT 2008


On May 18, 2008, at 8:06 PM, Bill Bradford wrote:

> Does anyone know at what versions (or kernel versions) the following  
> OSes went to a "long" time_t?
>
> - Mac OS X on 64-bit PowerPC
> - Mac OS X on 64-bit x86

OS X typedefs time_t as a __darwin_time_t; __darwin_time_t as long,  
independent of architecture. If you compile with LP64 support (#define  
__LP_64__), you get a 63-bit long, otherwise you get 31 bits (long is  
signed).

time.h
sys/types.h
i386/_types.h
ppc/_types.h
i386/limits.h
ppc/limits.h

That said:

$ file /mach_kernel
/mach_kernel: Mach-O universal binary with 2 architectures
/mach_kernel (for architecture i386):	Mach-O executable i386
/mach_kernel (for architecture ppc):	Mach-O executable ppc
$

...the kernel in 10.5 is still 32-bit. 2038 looms.

ok
bear



More information about the rescue mailing list