From owner-freebsd-arch Sat Jun 2 14:20:22 2001 Delivered-To: freebsd-arch@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 6796C37B423 for ; Sat, 2 Jun 2001 14:20:18 -0700 (PDT) (envelope-from obrien@nuxi.ucdavis.edu) Received: from dragon.nuxi.com (root@trang.muxi.com [206.40.252.115] (may be forged)) by relay.nuxi.com (8.11.2/8.11.2) with ESMTP id f52LKBl83998; Sat, 2 Jun 2001 14:20:11 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f52LKB084083; Sat, 2 Jun 2001 14:20:11 -0700 (PDT) (envelope-from obrien) Date: Sat, 2 Jun 2001 14:20:11 -0700 From: "David O'Brien" To: Matt Dillon Cc: Garance A Drosihn , David Wolfskill , arch@FreeBSD.ORG, freebsd-standards@bostonradio.org Subject: Re: time_t definition is wrong Message-ID: <20010602142011.N31257@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <200106012318.f51NI8w38590@bunrab.catwhisker.org> <200106020823.f528N5O98998@earth.backplane.com> <20010602085237.A73968@dragon.nuxi.com> <200106021739.f52Hd9V03943@earth.backplane.com> <20010602124907.G31257@dragon.nuxi.com> <200106022005.f52K5FR04823@earth.backplane.com> <20010602131404.M31257@dragon.nuxi.com> <200106022040.f52KeSJ05088@earth.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106022040.f52KeSJ05088@earth.backplane.com>; from dillon@earth.backplane.com on Sat, Jun 02, 2001 at 01:40:28PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 02, 2001 at 01:40:28PM -0700, Matt Dillon wrote: > You have not justifed to any reasonable degree why you believe changing > time_t from a long to an int should be done. You have not argued a time_t needs to be consistent across all FreeBSD platforms. Otherwise we get in consistent behavior across our platforms. This includes both the size of it, and the spelling of the printf() format specifier. > single *functional* point for making that change beyond your commit > message, which makes no sense because the problem you site is even > *WORSE* if time_t is an int. > > I have repeateed the salient points of my argument several times now. > If you didn't read them, then I recommend you go back to my postings and > read them again. I will summarize: > > * Changing from long to int only makes the problems you site as > fixing in your commit message worse. Not better. How is it worse?!?!? You have yet to show me a compiler warning caused by this (I am sure there are some to fix); nor a piece of code that is now broken. > * The defacto standard for two decades+ is 'long'. You need a damn > good reason to change it now and so far you haven't presented one. I think I have. I would like to hear from others over the weekend what they think. > The onus of proof here is not on me, Brian, it is on you. Explain The name is O'Brien dammit. David also works. Brian and Dave do not. > * The two other platforms we have to maintain compatibility with > the most: Solaris and Linux, use 'long'. NetBSD? OpenBSD? Not > an issue for us. I *totally* disagree with your choice of who we need to maintain compatibility with the most. In fact several commits are made to make us more like NetBSD and OpenBSD. So freebsd-arch will need to decide who we should most be like. > In fact, NetBSD seems to be well on their way > to having an alternate API judging by the kernel changes they've > made. We do not want to follow that path. If they have, why don't we? > * We have the ability to stay consistent between 32 and 64 bit > platforms by defining time_t as 'long' on both, reducing portability > headaches. How is it consistent? It is consistent *only* in spelling, not storage size nor bit-wrapping characteristics. > This is what Solaris is doing. This is what Linux is > doing. This maintains a defacto standard that has been around > forever. We damn well ought to be doing it to. Should also also follow every other mistake Sun and Linux have made because they are the "defacto" standard? I see enough "defacto" standard things in the Linuxism I have to deal with daily. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message