From owner-freebsd-alpha Thu Dec 24 05:10:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA29761 for freebsd-alpha-outgoing; Thu, 24 Dec 1998 05:10:29 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA29756 for ; Thu, 24 Dec 1998 05:10:27 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id OAA25450 for freebsd-alpha@FreeBSD.ORG; Thu, 24 Dec 1998 14:10:14 +0100 (CET) (envelope-from olli) Date: Thu, 24 Dec 1998 14:10:14 +0100 (CET) From: Oliver Fromme Message-Id: <199812241310.OAA25450@dorifer.heim3.tu-clausthal.de> To: freebsd-alpha@FreeBSD.ORG Subject: Re: time_t and clock_t Newsgroups: list.freebsd-alpha Organization: Administration Heim 3 Reply-To: freebsd-alpha@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jonathan Chen wrote in list.freebsd-alpha: > On Tue, 22 Dec 1998, Kaleb S. KEITHLEY wrote: > > Neither POSIX nor XPG require any particular type, only that it be large > > enough to hold a particular range of values; e.g. time_t must be large > > enough to hold a count of the number of seconds in a day, a number that > > easily fits in an int. > > Here's my 2 cents: > > time_t should be `long' ie 64 bits, 'cos once 2038(?) rolls around > we're gonna have problems with time(3) - which gets used heaps - > if we still stuck with 32 bits. > > IMHO, Digital really made a bad boo-boo with sticking to 32 bits. ... and the 2 cents of mine: In the year 2038, int will be >= 64 bits anyway (IF we're still programming in C by then, which I doubt). So let's rather stay compatible and let time_t be an int. In fact, we're gonna have problems if it's not an int, because many software assumes that it's an int. This might not be good style, but it's a fact. Oliver Fromme -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message