summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sleep.38
-rw-r--r--lib/libc/gen/usleep.36
2 files changed, 5 insertions, 9 deletions
diff --git a/lib/libc/gen/sleep.3 b/lib/libc/gen/sleep.3
index ede3ef6..fa1057e 100644
--- a/lib/libc/gen/sleep.3
+++ b/lib/libc/gen/sleep.3
@@ -63,14 +63,10 @@ the sleep time is set to
the remaining clock time.
.Pp
This function is implemented using
-.Xr signanosleep 2
+.Xr nanosleep 2
by pausing for
.Fa seconds
of time or until any signal occurse.
-For compatibility reasons SIGALRM signal handled internally
-(if not blocked) during
-.Fn sleep
-call.
.Sh RETURN VALUES
The
.Fn sleep
@@ -81,8 +77,8 @@ needed to be passed to a subsequent sleep to complete the necessary delay.
repeatedly until it returns zero may busy-wait until a timer
is available.
.Sh SEE ALSO
+.Xr nanosleep 2 ,
.Xr setitimer 2 ,
-.Xr signanosleep 2 ,
.Xr alarm 3 ,
.Xr signal 3 ,
.Xr ualarm 3 ,
diff --git a/lib/libc/gen/usleep.3 b/lib/libc/gen/usleep.3
index 997ee76..b5ed4e9 100644
--- a/lib/libc/gen/usleep.3
+++ b/lib/libc/gen/usleep.3
@@ -63,16 +63,16 @@ the sleep time is set to
the remaining clock time.
.Pp
This function is implemented using
-.Xr signanosleep 2
+.Xr nanosleep 2
by pausing for
.Fa microseconds
-of time or until SIGALRM signal occurse (if not blocked).
+of time or until any signal occurse.
.Sh NOTES
.Pp
A microsecond is 0.000001 seconds.
.Sh SEE ALSO
+.Xr nanosleep 2 ,
.Xr setitimer 2 ,
-.Xr signanosleep 2 ,
.Xr alarm 3 ,
.Xr signal 3 ,
.Xr sleep 3 ,
OpenPOWER on IntegriCloud