Module Name: src
Committed By: jruoho
Date: Mon May 2 17:14:20 UTC 2011
Modified Files:
src/lib/libc/sys: getitimer.2
Log Message:
Note also that the interaction between setitimer(2) and alarm(3) or sleep(3)
is unspecified.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/sys/getitimer.2
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/getitimer.2
diff -u src/lib/libc/sys/getitimer.2:1.25 src/lib/libc/sys/getitimer.2:1.26
--- src/lib/libc/sys/getitimer.2:1.25 Mon May 2 17:01:52 2011
+++ src/lib/libc/sys/getitimer.2 Mon May 2 17:14:20 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: getitimer.2,v 1.25 2011/05/02 17:01:52 jruoho Exp $
+.\" $NetBSD: getitimer.2,v 1.26 2011/05/02 17:14:20 jruoho Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -89,9 +89,6 @@
to 0 causes a timer to be disabled after its next expiration (assuming
.Fa it_value
is non-zero).
-Note that time values smaller than the resolution of the
-system clock are rounded up to this resolution
-(typically 10 milliseconds).
.Pp
The
.Fa which
@@ -124,16 +121,29 @@
Because this signal may interrupt in-progress
system calls, programs using this timer must be prepared to
restart interrupted system calls.
+.El
+Note that:
+.Bl -bullet -offset indent
+.It
+Time values smaller than the resolution of the
+system clock are rounded up to this resolution
+(typically 10 milliseconds).
+.It
+The interaction between
+.Fn setitimer
+and
+.Xr alarm 3
+or
+.Xr sleep 3
+is unspecified by the specification.
+.El
.Sh RETURN VALUES
If the calls succeed, a value of 0 is returned.
If an error occurs, the value \-1 is returned, and a more precise error
code is placed in the global variable
.Va errno .
.Sh ERRORS
-.Fn getitimer
-and
-.Fn setitimer
-will fail if:
+Both functions may fail if:
.Bl -tag -width Er
.It Bq Er EFAULT
The