From owner-freebsd-stable Sat Jun 2 8:52:49 2001 Delivered-To: freebsd-stable@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id B930D37B423 for ; Sat, 2 Jun 2001 08:52:46 -0700 (PDT) (envelope-from obrien@nuxi.ucdavis.edu) Received: from dragon.nuxi.com (root@[206.40.252.115]) by relay.nuxi.com (8.11.2/8.11.2) with ESMTP id f52Fqcl82642; Sat, 2 Jun 2001 08:52:38 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f52Fqcb74072; Sat, 2 Jun 2001 08:52:38 -0700 (PDT) (envelope-from obrien) Date: Sat, 2 Jun 2001 08:52:37 -0700 From: "David O'Brien" To: Matt Dillon Cc: David Wolfskill , stable@FreeBSD.ORG Subject: Re: time_t definition is worng Message-ID: <20010602085237.A73968@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <200106012318.f51NI8w38590@bunrab.catwhisker.org> <200106020823.f528N5O98998@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: <200106020823.f528N5O98998@earth.backplane.com>; from dillon@earth.backplane.com on Sat, Jun 02, 2001 at 01:23:05AM -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-stable@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:23:05AM -0700, Matt Dillon wrote: > Yes, I know all that. The problem isn't that you couldn't have an > unsigned time_t, the problem is that there are vast amounts of software > already out there that would "break mysteriously" if you did. So, > like the int<->long problem, the best thing to do is not rock the boat. > That means for maximum portability time_t has to be a signed long. Not > int, not unsigned int, not unsigned long... just 'long'. There is not enough context here for me to get any idea what the issue is. This email argued signed vs. unsigned, and that has nothing to do with time_t being an int. Since on IA-32 int == long, the only issue is what ones uses in printf() and scanf(). I have not seen anyone having a problem with this yet. So I ask you to bring this up on freebsd-arch@freebsd.org why time_t needs to be a long. If you had more multi-platform concerns you would understand why having as consistent defintions of things is best for FreeBSD. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message