Source-Changes-HG archive

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

[src/trunk]: src Reference timeval(3).



details:   https://anonhg.NetBSD.org/src/rev/3e883f8fb199
branches:  trunk
changeset: 754938:3e883f8fb199
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon May 17 07:22:03 2010 +0000

description:
Reference timeval(3).

diffstat:

 lib/libc/sys/nanosleep.2     |  11 ++++++++---
 lib/libc/sys/timer_settime.2 |   9 ++++++---
 share/man/man3/timeradd.3    |  18 ++++++------------
 3 files changed, 20 insertions(+), 18 deletions(-)

diffs (125 lines):

diff -r 3dacad8b40f4 -r 3e883f8fb199 lib/libc/sys/nanosleep.2
--- a/lib/libc/sys/nanosleep.2  Mon May 17 07:10:15 2010 +0000
+++ b/lib/libc/sys/nanosleep.2  Mon May 17 07:22:03 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: nanosleep.2,v 1.10 2004/05/13 10:20:58 wiz Exp $
+.\"    $NetBSD: nanosleep.2,v 1.11 2010/05/17 07:22:03 jruoho Exp $
 .\"
 .\" Copyright (c) 1986, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)sleep.3    8.1 (Berkeley) 6/4/93
 .\"
-.Dd April 17, 1997
+.Dd May 17, 2010
 .Dt NANOSLEEP 2
 .Os
 .Sh NAME
@@ -52,6 +52,10 @@
 process.
 The suspension time may be longer than requested due to the
 scheduling of other activity by the system.
+The
+.Em struct timespec
+is described in
+.Xr timespec 3 .
 .Sh RETURN VALUES
 If the
 .Fn nanosleep
@@ -95,7 +99,8 @@
 is not supported by this implementation.
 .El
 .Sh SEE ALSO
-.Xr sleep 3
+.Xr sleep 3 ,
+.Xr timespec 3
 .Sh STANDARDS
 The
 .Fn nanosleep
diff -r 3dacad8b40f4 -r 3e883f8fb199 lib/libc/sys/timer_settime.2
--- a/lib/libc/sys/timer_settime.2      Mon May 17 07:10:15 2010 +0000
+++ b/lib/libc/sys/timer_settime.2      Mon May 17 07:22:03 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: timer_settime.2,v 1.5 2008/04/30 13:10:51 martin Exp $
+.\"    $NetBSD: timer_settime.2,v 1.6 2010/05/17 07:22:03 jruoho Exp $
 .\"
 .\" Copyright (c) 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 13, 2003
+.Dd May 17, 2010
 .Dt TIMER_SETTIME 2
 .Os
 .Sh NAME
@@ -48,10 +48,12 @@
 .Sh DESCRIPTION
 The
 .Fn timer_settime
-sets the next expiration time of the timer with id
+sets the next expiration time of the timer with ID
 .Ar timerid
 to the
 .Fa it_value
+(see
+.Xr itimerspec 3 )
 specified in the
 .Ar tim
 argument.
@@ -61,6 +63,7 @@
 is not
 .Dv NULL
 the old timer settingas are returned.
+.Pp
 If the
 .Ar flags
 argument is set to
diff -r 3dacad8b40f4 -r 3e883f8fb199 share/man/man3/timeradd.3
--- a/share/man/man3/timeradd.3 Mon May 17 07:10:15 2010 +0000
+++ b/share/man/man3/timeradd.3 Mon May 17 07:22:03 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: timeradd.3,v 1.2 2010/01/24 12:58:37 jruoho Exp $
+.\" $NetBSD: timeradd.3,v 1.3 2010/05/17 07:22:03 jruoho Exp $
 .\" Copyright (c) 1999 Kelly Yancey <kbyanc%posi.net@localhost>
 .\" All rights reserved.
 .\"
@@ -28,7 +28,7 @@
 .\"
 .\" $FreeBSD: src/share/man/man3/timeradd.3,v 1.3 2003/09/08 19:57:19 ru Exp $
 .\"
-.Dd January 24, 2010
+.Dd May 17, 2010
 .Dt TIMERADD 3
 .Os
 .Sh NAME
@@ -58,15 +58,8 @@
 and
 .Xr settimeofday 2
 calls.
-The structure is defined in
-.In sys/time.h
-as:
-.Bd -literal
-struct timeval {
-       time_t          tv_sec;         /* seconds */
-       suseconds_t     tv_usec;        /* and microseconds */
-};
-.Ed
+The structure is described in
+.Xr timeval 3 .
 .Pp
 .Fn timeradd
 adds the time information stored in
@@ -110,7 +103,8 @@
 .Fa CMP ,
 and returns the result of that comparison.
 .Sh SEE ALSO
-.Xr gettimeofday 2
+.Xr gettimeofday 2 ,
+.Xr timeval 3
 .Sh HISTORY
 The
 .Fn timeradd



Home | Main Index | Thread Index | Old Index