From owner-freebsd-arch Sat Jun 2 13:43:22 2001 Delivered-To: freebsd-arch@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 5B93B37B424 for ; Sat, 2 Jun 2001 13:43:18 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.1) with ESMTP id f52KhF028540; Sat, 2 Jun 2001 13:43:15 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.3/8.11.0) id f52KhFh35078; Sat, 2 Jun 2001 13:43:15 -0700 (PDT) (envelope-from jdp) Date: Sat, 2 Jun 2001 13:43:15 -0700 (PDT) Message-Id: <200106022043.f52KhFh35078@vashon.polstra.com> To: arch@freebsd.org From: John Polstra Cc: drosih@rpi.edu Subject: Re: time_t definition is wrong In-Reply-To: References: <200106012318.f51NI8w38590@bunrab.catwhisker.org> <20010602085237.A73968@dragon.nuxi.com> <200106021739.f52Hd9V03943@earth.backplane.com> Organization: Polstra & Co., Seattle, WA 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 In article , Garance A Drosihn wrote: > Still, it seems to me that a topic like this must come up in > discussions by the standards bodies. SingleUnixSpec seems to have > nothing useful to say about time_t, but maybe the latest draft of > Posix does. Actually the type of time_t was addressed by the original version of the ANSI/ISO C standard. The only requirement is that it be an "arithmetic type capable of representing times." That means it could be a signed or unsigned integer type or a floating point type, but not a pointer, struct, union, or function (duh). I'd prefer to keep it as "long" at least on the i386, because that's what the type was for years before ANSI renamed it to "time_t". John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message