summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>1999-09-05 06:59:34 +0000
committerphantom <phantom@FreeBSD.org>1999-09-05 06:59:34 +0000
commit189bace3d76b821a6901760635a4cb2174dd8d16 (patch)
treef62adeba61be6cc4ab203d00fc63810bf0ff120f /lib
parent8ee1c94698585ce43d38213afa854fae00e608ff (diff)
downloadFreeBSD-src-189bace3d76b821a6901760635a4cb2174dd8d16.zip
FreeBSD-src-189bace3d76b821a6901760635a4cb2174dd8d16.tar.gz
Name Description (.Nd macro) added.
Style and punctuation errors fixes. ERRORS section included to RETURN VALUES because it's describing return values instead of errors and their handling. Reviewed by: mpp
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/nanosleep.213
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index c560582..fe39fd7 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -40,6 +40,7 @@
.Os
.Sh NAME
.Nm nanosleep
+.Nd suspend process execution for an interval measured in nanoseconds
.Sh SYNOPSIS
.Fd #include <time.h>
.Ft int
@@ -50,7 +51,7 @@ causes the process to sleep for the specified time. An unmasked signal will
cause it to terminate the sleep early, regardless of the
.Dv SA_RESTART
value on the interrupting signal.
-.Sh RETURN VALUE
+.Sh RETURN VALUES
If the
.Fn nanosleep
function returns because the requested time has elapsed, the value
@@ -68,12 +69,12 @@ is
.Pf non- Dv NULL ,
the timespec structure it references is updated to contain the
unslept amount (the request time minus the time actually slept).
-.Sh ERRORS
+.Pp
If any of the following conditions occur, the
-.Nm
+.Fn nanosleep
function shall return -1 and set
.Va errno
-to the corresponding value.
+to the corresponding value:
.Bl -tag -width Er
.It Bq Er EFAULT
Either
@@ -83,14 +84,14 @@ or
points to memory that is not a valid part of the process
address space.
.It Bq Er EINTR
-.Nm
+.Fn nanosleep
was interrupted by the delivery of a signal.
.It Bq Er EINVAL
.Fa rqtp
specified a nanosecond value less than zero
or greater than or equal to 1000 million.
.It Bq Er ENOSYS
-.Nm
+.Fn nanosleep
is not supported by this implementation.
.El
.Sh SEE ALSO
OpenPOWER on IntegriCloud