lkml.org 
[lkml]   [2000]   [Jan]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From"David Schwartz" <>
SubjectRE: time_t size: The year 2038 bug?
DateWed, 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2008