From owner-freebsd-current@FreeBSD.ORG Fri Mar 19 12:07:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE67A16A4CE for ; Fri, 19 Mar 2004 12:07:42 -0800 (PST) Received: from hermes.aueb.gr (hermes.aueb.gr [195.251.255.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BEE743D31 for ; Fri, 19 Mar 2004 12:07:42 -0800 (PST) (envelope-from dds@aueb.gr) Received: from aueb.gr (faculty06.right.dialup.aueb.gr [195.251.255.250]) by hermes.aueb.gr (8.12.9/8.12.9) with ESMTP id i2JK763g006375; Fri, 19 Mar 2004 22:07:06 +0200 Message-ID: <405B519E.4060501@aueb.gr> Date: Fri, 19 Mar 2004 22:01:34 +0200 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en, el, de MIME-Version: 1.0 To: Garance A Drosihn References: <200403140716.i2E7GDKa007204@dungeon.home> <200403142317.09065.craig@xfoil.gank.org> <405AAC1A.20408@aueb.gr> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: HEADS UP! MAJOR change to FreeBSD/sparc64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 20:07:43 -0000 Garance A Drosihn wrote: > At 10:15 AM +0200 3/19/04, Diomidis Spinellis wrote: [...] >> Another interesting possibility that the standard appears to >> allow, is to change the *precision* of time_t. For example, >> if time_t represented time in two-second intervals ... [...] > Not allowed. time_t has to be a value of "seconds". When the > standard talks about "precision", it means we might only UPDATE > that value every 10 seconds, but the value itself is in seconds. I could not find anything in my copy of C99, substantiating that. Seconds are not mentioned in any of the sections 7.23.1 defining time_t, 7.23.2.3 defining mktime, and 7.23.2.4 defining time. Section 7.23.2.4 specifically states that "the encoding of the value is unspecified", and 7.23.2.3 specifies that "mktime returns the specified calendar time encoded as a value of type time_t". POSIX is of course a different story. Diomidis