> Matt Dillon:
>     time_t should remain 'long' on IA32 (even though sizeof(int) ==
>     sizeof(long) on IA32), and it damn well should be 'long' on Alpha ...

I believe you are wrong. If it's "long" on both i386 and Alpha,
data will not be binary compatible.

In fact as far as I understand, the origin of this confusion
is making sizeof(int) == sizeof(long) on i386, which is kind of a stretchy.

Best regards,
Dmitry Dvoinikov
mailto:[EMAIL PROTECTED]

Original message follows:


> :On Fri, Jun 01, 2001 at 02:39:33PM +0300, Amir Shalem wrote:
:>> it was always long int,
:>> whenever you want to print time_t
:>> in programs it was always
:>> printf("%ld", (time_t)time);
> :
> :That cast is wrong; if you want to print a long, cast it to long.
> :time_t is (was) only a long on the i386; on the alpha it was an int,
> :and code which assumed it to be a long was unportable.  It was changed
> :to help catch exactly this kind of mistake.
> :
> :Kris

>     What, are you guys nuts?  time_t is 64 bits on 64 bit platforms for
>     everyone except us?  We may be screwed for 32 bit platforms, but don't
>     screw us on 64 bit platforms.

>     time_t should remain 'long' on IA32 (even though sizeof(int) == 
>     sizeof(long) on IA32), and it damn well should be 'long' on Alpha ...
>     the alpha guys should change it if it is currently an int on Alpha.

>     Please back out this commit.  It is not appropriate to make time_t
>     an 'int' on IA32.  time_t has been 'long' from time immemorial.  This
>     is an unbelievably bad commit.

>                                                 -Matt

> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to