Module Name:    src
Committed By:   martin
Date:           Wed Sep 10 14:28:02 UTC 2014

Modified Files:
        src/share/man/man9: todr.9

Log Message:
Adapt to recent changes.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man9/todr.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/todr.9
diff -u src/share/man/man9/todr.9:1.17 src/share/man/man9/todr.9:1.18
--- src/share/man/man9/todr.9:1.17	Sat Aug 30 14:48:10 2014
+++ src/share/man/man9/todr.9	Wed Sep 10 14:28:02 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: todr.9,v 1.17 2014/08/30 14:48:10 martin Exp $
+.\" $NetBSD: todr.9,v 1.18 2014/09/10 14:28:02 martin Exp $
 .\"
 .\" Copyright (c) 2000, 2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 6, 2006
+.Dd September 10, 2014
 .Dt TODR 9
 .Os
 .Sh NAME
@@ -45,7 +45,7 @@
 .Fn todr_gettime "todr_chip_handle_t" "struct timeval *"
 .Ft int
 .Fn todr_settime "todr_chip_handle_t" "struct timeval *"
-.Ft void
+.Ft int
 .Fn clock_secs_to_ymdhms "time_t" "struct clock_ymdhms *"
 .Ft time_t
 .Fn clock_ymdhms_to_secs "struct clock_ymdhms *"
@@ -92,7 +92,7 @@ tuple.
 This structure is defined as follows:
 .Bd -literal
 struct clock_ymdhms {
-	u_short dt_year;	/* Year */
+	uint64_t dt_year;	/* Year */
 	u_char dt_mon;		/* Month (1-12) */
 	u_char dt_day;		/* Day (1-31) */
 	u_char dt_wday;		/* Day of week (0-6) */
@@ -121,7 +121,9 @@ large to fit in a
 .Fa time_t .
 The
 .Fn clock_secs_to_ymdhms
-function never fails.
+function returns 0 on success or
+.Er EINVAL
+if the time passed is negative.
 .Sh SEE ALSO
 .Xr intersil7170 4 ,
 .Xr mk48txx 4 ,

Reply via email to