Module Name: src
Committed By: dholland
Date: Sat Apr 24 01:35:51 UTC 2010
Modified Files:
src/lib/libc/gen: time.3
Log Message:
Edit previous HISTORY patch for style; note our 64-bit time_t change.
Bump date.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/time.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/time.3
diff -u src/lib/libc/gen/time.3:1.14 src/lib/libc/gen/time.3:1.15
--- src/lib/libc/gen/time.3:1.14 Sat Apr 3 14:49:31 2010
+++ src/lib/libc/gen/time.3 Sat Apr 24 01:35:50 2010
@@ -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.