RE: time_t size: The year 2038 bug?

From: David Schwartz (davids@webmaster.com)
Date: Wed Jan 05 2000 - 23:51:56 EST


> Hannu Savolainen wrote:
> >
> > Another approach is making time_t to be 32 bit unsigned int which gives
> > about 70 more years.
>
> ANSI/ISO C defines time_t as a signed arithmetic type, so
> such a change would break correct code.

        Are you positive? I'm 99.9% sure it doesn't specify that it be signed.
Don't misunderstand the ability to return '((time_t)-1)' as requiring that
the type be signed.

        DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:05 EST