Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Edit previous HISTORY patch for style; note our...



details:   https://anonhg.NetBSD.org/src/rev/aa03e989fb5b
branches:  trunk
changeset: 754229:aa03e989fb5b
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Apr 24 01:35:50 2010 +0000

description:
Edit previous HISTORY patch for style; note our 64-bit time_t change.
Bump date.

diffstat:

 lib/libc/gen/time.3 |  28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diffs (48 lines):

diff -r 6129eec631d7 -r aa03e989fb5b lib/libc/gen/time.3
--- a/lib/libc/gen/time.3       Sat Apr 24 01:13:37 2010 +0000
+++ b/lib/libc/gen/time.3       Sat Apr 24 01:35:50 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: time.3,v 1.14 2010/04/03 14:49:31 jruoho Exp $
+.\"    $NetBSD: time.3,v 1.15 2010/04/24 01:35:50 dholland Exp $
 .\"
 .\" Copyright (c) 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     @(#)time.3     8.1 (Berkeley) 6/4/93
 .\"
-.Dd April 3, 2010
+.Dd April 23, 2010
 .Dt TIME 3
 .Os
 .Sh NAME
@@ -90,11 +90,23 @@
 A
 .Fn time
 function appeared in
-.At v2
-and used to return time in sixtieths of a second in 32 bits,
-which was to guarantee a crisis every 2.26 years.
-Since
+.At v2 .
+It returned a 32-bit value measuring sixtieths of a second, leading to
+rollover every 2.26 years.
+In
 .At v6 ,
+the precision of
 .Fn time
-scale was changed to seconds, extending the pre-crisis stagnation
-period up to a total of 68 years.
+was changed to seconds, allowing 135.6 years between rollovers.
+.Pp
+In
+.Nx 6.0
+the
+.Vt time_t
+type was changed to be 64 bits wide, including on 32-bit machines,
+making rollover a concern for the far distant future only.
+Note however that any code making the incorrect assumption that
+.Vt time_t
+is the same as
+.Vt long
+will fail on 32-bit machines in 2038.



Home | Main Index | Thread Index | Old Index