summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sleep.3
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-08-12 17:53:00 +0000
committerache <ache@FreeBSD.org>1997-08-12 17:53:00 +0000
commit3451ae1ca3ed1ea94a33aaa30c1a91992e4dd2c2 (patch)
treea405f45c4c8a0dcd70230bdfa26cc70f2f6ab8c8 /lib/libc/gen/sleep.3
parent0f99da1026ed0bc78fd3883bdb217f6a210bf0ed (diff)
downloadFreeBSD-src-3451ae1ca3ed1ea94a33aaa30c1a91992e4dd2c2.zip
FreeBSD-src-3451ae1ca3ed1ea94a33aaa30c1a91992e4dd2c2.tar.gz
Reflect -current implementations
Diffstat (limited to 'lib/libc/gen/sleep.3')
-rw-r--r--lib/libc/gen/sleep.313
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/gen/sleep.3 b/lib/libc/gen/sleep.3
index ab7e6f0..22a0ab5 100644
--- a/lib/libc/gen/sleep.3
+++ b/lib/libc/gen/sleep.3
@@ -53,7 +53,9 @@ System activity or time spent in processing the
call may lengthen the sleep by a second.
.Pp
If a timer is already running on the process its state is unaltered by
-this sleep implementation.
+this
+.Fn sleep
+implementation.
If the value
.Fa seconds
is more than or equal to the remaining clock time for the running timer,
@@ -65,10 +67,10 @@ This function is implemented using
by pausing for
.Fa seconds
of time or until any signal occurse.
-For compatibility reasons during
+For compatibility reasons SIGALRM signal unblocked and handled
+internally during
.Fn sleep
-call SIGALRM handler is temporary set to the
-function which does nothing but returns.
+call.
.Sh RETURN VALUES
The
.Fn sleep
@@ -79,8 +81,11 @@ 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 alarm 3 ,
+.Xr setitimer 2 ,
.Xr signal 3 ,
.Xr signanosleep 2 ,
+.Xr ualarm 3 ,
.Xr usleep 3
.Sh HISTORY
A
OpenPOWER on IntegriCloud