From owner-freebsd-hackers Fri Aug 14 16:03:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA09097 for freebsd-hackers-outgoing; Fri, 14 Aug 1998 16:03:57 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA09087 for ; Fri, 14 Aug 1998 16:03:54 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id QAA25645; Fri, 14 Aug 1998 16:03:23 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp01.primenet.com, id smtpd025607; Fri Aug 14 16:03:16 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id QAA23463; Fri, 14 Aug 1998 16:03:15 -0700 (MST) From: Terry Lambert Message-Id: <199808142303.QAA23463@usr04.primenet.com> Subject: Re: 64-bit time_t To: mph@pobox.com (Matthew Hunt) Date: Fri, 14 Aug 1998 23:03:14 +0000 (GMT) Cc: brawley@camtech.com.au, hackers@FreeBSD.ORG In-Reply-To: <19980814000605.A25012@astro.psu.edu> from "Matthew Hunt" at Aug 14, 98 00:06:05 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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. See also: http://www.eunet.pt/ano2000/sun/sup_sun5.htm Negative values are (potentially) abused for dates back to December 13th, 1901. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message