[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recent glibc time_t redefinition?

On Mon, Feb 03, 2003 at 12:13:28PM +1000, Andrew Pollock wrote:
> On Mon, Feb 03, 2003 at 10:05:52AM +1100, Brian May wrote:
> > On Mon, Feb 03, 2003 at 06:50:42AM +1000, Andrew Pollock wrote:
> > > Can anyone provide me with mailing list archive URLs from when this change
> > > would have been discussed publically?
> > 
> > I assume it was deliberate? Or was it unintentional?
> I'm assuming it was deliberate also, to address the 2038 bug. I've seen 
> much talk of it back in 2000 in Google, but nothing more recent.

It was deliberate. The postgresql guys noticed when some release redhat
shipped with these modifications. They tried to convince the glibc guys to
revert but they refused.

Basically, POSIX doesn't define mktime() before 1970, so glibc doesn't
support it. Or so the argument goes.

IIRC, postgresql has now copied the mktime code from FreeBSDs libc to deal
with the problem. Or maybe they're just thinking about it.

Some references:
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.

Attachment: pgpGxT_FZxDMB.pgp
Description: PGP signature

Reply to: