From owner-freebsd-stable Fri Jun 1 13:39:18 2001 Delivered-To: freebsd-stable@freebsd.org Received: from castor.ssimicro.com (birch.ssimicro.com [199.247.51.10]) by hub.freebsd.org (Postfix) with ESMTP id 6EB6A37B422 for ; Fri, 1 Jun 2001 13:39:13 -0700 (PDT) (envelope-from dmitry@ssimicro.com) Received: from 199.247.84.16 (84x16.ssimicro.com [199.247.84.16]) by castor.ssimicro.com (8.9.3/8.9.3) with ESMTP id OAA18539; Fri, 1 Jun 2001 14:39:09 -0600 (MDT) Date: Fri, 1 Jun 2001 14:39:55 -0600 From: "Dmitry V. Dvoinikov" X-Blank: Reply-To: "Dmitry V. Dvoinikov" X-Priority: 3 (Normal) Message-ID: <14419530753.20010601143955@ssimicro.com> To: Matt Dillon Cc: freebsd-stable@FreeBSD.ORG Subject: Re[4]: time_t definition is worng In-reply-To: <200106011931.f51JVjx87071@earth.backplane.com> References: <20010601135122.A66182@sunbay.com> <20010601044526.A30739@xor.obsecurity.org> <200106011839.f51Idbj86306@earth.backplane.com> <149413595408.20010601130059@ssimicro.com> <200106011931.f51JVjx87071@earth.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Matt Dillon: > The data *ISN'T* SUPPOSED TO BE BINARY COMPATIBLE! Correct. But then there is no difference at all. You may typedef double time_t; :) And I can easily see where it can lead to bugs, pretty difficult to find. Therefore I'm still on the typedef int time_t; side. Best regards, Dmitry Dvoinikov mailto:dmitry@ssimicro.com Original message follows: > : :>> 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. > The data *ISN'T* SUPPOSED TO BE BINARY COMPATIBLE! > -Matt > :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:dmitry@ssimicro.com > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message