Module Name: src
Committed By: jruoho
Date: Mon May 17 20:25:19 UTC 2010
Modified Files:
src/share/man/man3: timeval.3
src/share/man/man9: microtime.9 microuptime.9
Log Message:
Briefly describe and note also struct bintime.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man3/timeval.3
cvs rdiff -u -r1.15 -r1.16 src/share/man/man9/microtime.9
cvs rdiff -u -r1.8 -r1.9 src/share/man/man9/microuptime.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/man3/timeval.3
diff -u src/share/man/man3/timeval.3:1.3 src/share/man/man3/timeval.3:1.4
--- src/share/man/man3/timeval.3:1.3 Mon May 17 12:27:13 2010
+++ src/share/man/man3/timeval.3 Mon May 17 20:25:19 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: timeval.3,v 1.3 2010/05/17 12:27:13 jruoho Exp $
+.\" $NetBSD: timeval.3,v 1.4 2010/05/17 20:25:19 jruoho Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -129,8 +129,26 @@
.Va it_value
is non-zero, it indicates the time left to the next timer expiration.
A value zero implies that the timer is disabled.
-.El
+.It
+The following structure is used by
+.Xr microtime 9 ,
+among others:
+.Bd -literal -offset indent
+struct bintime {
+ time_t sec;
+ uint64_t frac;
+};
+.Ed
.Pp
+The
+.Va sec
+member specifies the time in seconds and the
+.Va frac
+represents 64-bit fraction of seconds.
+The
+.Va struct bintime
+is meant to be used in the kernel only.
+.El
.Sh STANDARDS
These structures conform to
.St -p1003.1-2004 .
Index: src/share/man/man9/microtime.9
diff -u src/share/man/man9/microtime.9:1.15 src/share/man/man9/microtime.9:1.16
--- src/share/man/man9/microtime.9:1.15 Fri Nov 28 10:55:41 2008
+++ src/share/man/man9/microtime.9 Mon May 17 20:25:19 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: microtime.9,v 1.15 2008/11/28 10:55:41 tsutsui Exp $
+.\" $NetBSD: microtime.9,v 1.16 2010/05/17 20:25:19 jruoho Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -53,7 +53,7 @@
.\"
.\" $FreeBSD: src/share/man/man9/microtime.9,v 1.11 2005/10/13 16:01:28 jhb Exp $
.\"
-.Dd November 24, 2008
+.Dd May 17, 2010
.Dt MICROTIME 9
.Os
.Sh NAME
@@ -112,6 +112,8 @@
.Fn getnanotime
functions store the time as a
.Vt "struct timespec" .
+The structures are described in
+.Xr timeval 3 .
.Pp
The
.Fn bintime ,
Index: src/share/man/man9/microuptime.9
diff -u src/share/man/man9/microuptime.9:1.8 src/share/man/man9/microuptime.9:1.9
--- src/share/man/man9/microuptime.9:1.8 Fri Nov 28 10:52:22 2008
+++ src/share/man/man9/microuptime.9 Mon May 17 20:25:19 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: microuptime.9,v 1.8 2008/11/28 10:52:22 tsutsui Exp $
+.\" $NetBSD: microuptime.9,v 1.9 2010/05/17 20:25:19 jruoho Exp $
.\"
.\" Copyright (c) 2000 Kelly Yancey
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/share/man/man9/microuptime.9,v 1.7 2005/01/12 21:48:25 ru Exp $
.\"
-.Dd November 24, 2008
+.Dd May 17, 2010
.Dt MICROUPTIME 9
.Os
.Sh NAME
@@ -73,6 +73,8 @@
.Fn getnanouptime
functions store the elapsed time as a
.Vt "struct timespec" .
+These structures are described in
+.Xr timeval 3 .
.Pp
The
.Fn binuptime ,