Module Name: src Committed By: jruoho Date: Mon May 17 07:22:03 UTC 2010
Modified Files: src/lib/libc/sys: nanosleep.2 timer_settime.2 src/share/man/man3: timeradd.3 Log Message: Reference timeval(3). To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/sys/nanosleep.2 cvs rdiff -u -r1.5 -r1.6 src/lib/libc/sys/timer_settime.2 cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/timeradd.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/sys/nanosleep.2 diff -u src/lib/libc/sys/nanosleep.2:1.10 src/lib/libc/sys/nanosleep.2:1.11 --- src/lib/libc/sys/nanosleep.2:1.10 Thu May 13 10:20:58 2004 +++ src/lib/libc/sys/nanosleep.2 Mon May 17 07:22:03 2010 @@ -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 Index: src/lib/libc/sys/timer_settime.2 diff -u src/lib/libc/sys/timer_settime.2:1.5 src/lib/libc/sys/timer_settime.2:1.6 --- src/lib/libc/sys/timer_settime.2:1.5 Wed Apr 30 13:10:51 2008 +++ src/lib/libc/sys/timer_settime.2 Mon May 17 07:22:03 2010 @@ -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 Index: src/share/man/man3/timeradd.3 diff -u src/share/man/man3/timeradd.3:1.2 src/share/man/man3/timeradd.3:1.3 --- src/share/man/man3/timeradd.3:1.2 Sun Jan 24 12:58:37 2010 +++ src/share/man/man3/timeradd.3 Mon May 17 07:22:03 2010 @@ -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 <kby...@posi.net> .\" 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