From owner-freebsd-hackers Thu Aug 13 21:30:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA17232 for freebsd-hackers-outgoing; Thu, 13 Aug 1998 21:30:09 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA17189 for ; Thu, 13 Aug 1998 21:30:01 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id NAA07687; Fri, 14 Aug 1998 13:59:19 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id NAA14277; Fri, 14 Aug 1998 13:59:19 +0930 (CST) Message-ID: <19980814135919.U1921@freebie.lemis.com> Date: Fri, 14 Aug 1998 13:59:19 +0930 From: Greg Lehey To: Matthew Hunt , Ivan Brawley , hackers@FreeBSD.ORG Subject: Re: 64-bit time_t References: <199808131721.KAA00864@antipodes.cdrom.com> <199808140040.KAA14156@mad.ct> <19980814000605.A25012@astro.psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980814000605.A25012@astro.psu.edu>; from Matthew Hunt on Fri, Aug 14, 1998 at 12:06:05AM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 14 August 1998 at 0:06:05 -0400, Matthew Hunt wrote: > On Fri, Aug 14, 1998 at 10:10:02AM +0930, Ivan Brawley wrote: > >> Question: What is wrong with using an unsigned long for time_t, instead of >> long (which is then assumed signed). > > man 3 time: > > Upon successful completion, time() returns the value of time. Otherwise > a value of ((time_t) -1) is returned and the global variable errno is set > to indicate the error. More to the point, time_t *can* be used to represent BE (Before Epoch) dates. Make it unsigned and you break that. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message