RE: time_t size: The year 2038 bug?

David Schwartz (davids@webmaster.com)
Wed, 5 Jan 2000 20:51:56 -0800


> 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/