Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Adapt to recent changes.
details: https://anonhg.NetBSD.org/src/rev/8ca9fe9e0c21
branches: trunk
changeset: 332189:8ca9fe9e0c21
user: martin <martin%NetBSD.org@localhost>
date: Wed Sep 10 14:28:02 2014 +0000
description:
Adapt to recent changes.
diffstat:
share/man/man9/todr.9 | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 53ac3e13be49 -r 8ca9fe9e0c21 share/man/man9/todr.9
--- a/share/man/man9/todr.9 Wed Sep 10 13:45:52 2014 +0000
+++ b/share/man/man9/todr.9 Wed Sep 10 14:28:02 2014 +0000
@@ -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 @@
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 @@
.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 ,
Home |
Main Index |
Thread Index |
Old Index