HEADS UP! MAJOR change to FreeBSD/sparc64

Diomidis Spinellis dds at aueb.gr
Fri Mar 19 12:07:43 PST 2004


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



More information about the freebsd-current mailing list