summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/nanosleep.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/nanosleep.2')
-rw-r--r--lib/libc/sys/nanosleep.214
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index 0c4749f..832684d 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -54,26 +54,26 @@ cause it to terminate the sleep early, regardless of the
.Dv SA_RESTART
value on the interrupting signal.
.Sh RETURN VALUES
-If the
+If the
.Fn nanosleep
function returns because the requested time has elapsed, the value
-returned will be zero.
+returned will be zero.
.Pp
-If the
+If the
.Fn nanosleep
function returns due to the delivery of a signal, the value returned
will be the -1, and the global variable
.Va errno
will be set to indicate the interruption.
-If
+If
.Fa rmtp
-is
+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).
.Pp
If any of the following conditions occur, the
-.Fn nanosleep
+.Fn nanosleep
function shall return -1 and set
.Va errno
to the corresponding value:
@@ -81,7 +81,7 @@ to the corresponding value:
.It Bq Er EFAULT
Either
.Fa rqtp
-or
+or
.Fa rmtp
points to memory that is not a valid part of the process
address space.
OpenPOWER on IntegriCloud