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: 1164f8,b23f30c954cd197e X-Google-Attributes: gid1164f8,public X-Google-Thread: fcfb9,594e400adc8f1378 X-Google-Attributes: gidfcfb9,public From: eggert@twinsun.com (Paul Eggert) Subject: Re: Will Sun leave the HW arena? Date: 1998/05/03 Message-ID: <6iihrb$9aa$1@shade.twinsun.com>#1/1 X-Deja-AN: 349903136 References: <6dos27$gr8@eve.enteract.com> <3524DCA8.335@world.std.com> <353673FA.2 <35375A0B.446B@s054.aone.net.au> <6h7mde$pj6$1@ftel.ftel.co.uk> Organization: Twin Sun Inc, El Segundo, CA, USA Newsgroups: comp.os.linux.advocacy,comp.sys.sun.hardware,comp.sys.dec Ian G Batten writes: >And if anyone's managed to write code that _relies_ on time_t being 32 >bits, I'd be interested to see it... Unfortunately there's a lot of code like that, even now. Some algorithms are based on 32 bit time_t and will take some thinking to migrate to 64 bits. An example of this sort of problem can be found in the public domain time zone code at ftp://elsie.nci.nih.gov/pub/, which is widely used in various systems, including BSD, DJGPP/Windows, GNU/Linux, HP-UX, Irix, SunOS, and UnixWare. Its implementation uses files that store times as 32-bit integers. The code still ``works'', in some sense, with 64 bit time_t, as long as you stick to time_t values that fit in 32 bits; but it stops working once you get outside this range, and hence it does not work for time_t values after they wrap around in the year 2038. Fixing this will require changing the zoneinfo file format, something people are loath to do, and which hasn't been done yet on any system as far as I know.