From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,65925da605c1dd50 X-Google-Attributes: gidf4671,public X-Google-Thread: fcfb9,594e400adc8f1378 X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1164f8,b23f30c954cd197e X-Google-Attributes: gid1164f8,public From: Ian G Batten Subject: Re: Will Sun leave the HW arena? Date: 1998/04/17 Message-ID: <6h7mde$pj6$1@ftel.ftel.co.uk>#1/1 X-Deja-AN: 345025041 References: <6dos27$gr8@eve.enteract.com> <3524DCA8.335@world.std.com> <353673FA.2 <35375A0B.446B@s054.aone.net.au> Organization: Ian G Batten speaking for himself Newsgroups: comp.os.linux.advocacy,comp.sys.sun.hardware,comp.sys.dec Originator: I.G.Batten@ftel.co.uk -----BEGIN PGP SIGNED MESSAGE----- In article <35375A0B.446B@s054.aone.net.au>, Mark & Suzanne (gcs might work) wrote: > At least Digital know what a standard is! They have lots > of faults but this is not one of them! time_t is not a definition > that Digital choose. Its the standard and has been for quite some Indeed. time_t is typedef'd to be a long on the oldest system I have to hand (a Unisoft System V.2 machine) and it's typedef'd to be a long on the newest system I have to hand (Solaris 2.7). $ uname -a UniPlus+ fulcis 5.2V2.5 1274V M68K020 $ grep time_t /usr/include/sys/types.h typedef long time_t; penelope:/u/igb 14:40:09 (517) $ uname -a SunOS penelope.ftel.co.uk 5.7 Beta sun4u sparc SUNW,Ultra-1 penelope:/u/igb 14:40:12 (518) $ grep time_t /usr/include/sys/types.h typedef long time_t; /* time of day in seconds */ penelope:/u/igb 14:40:15 (519) That being the case, given the ILP32 vs LP64 models coming from the Colorado 64-bit agreement, surely the only reasonable value for the size of a time_t is 64 bits? It's a long. It always has been a long. On a 64 bit machine, a long is 64 bits. What else is there to discuss? And if anyone's managed to write code that _relies_ on time_t being 32 bits, I'd be interested to see it... ian -- -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQB1AwUBNTdO0soy0yij3IvtAQHmdQMAnPeJ7Wjp7vVFz+pfG4HeEWqF31wdOmyN HnmSYG3V6BNaTcjoKRCXKF9lVehm8S2cILcyiTFPimMvmofK7u4vj2qog629ZOxF HYhB/aWmxfpwzPa1RD06FF8p58pnoCHS =G35a -----END PGP SIGNATURE-----