summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-16 13:42:03 +0000
committerache <ache@FreeBSD.org>1997-10-16 13:42:03 +0000
commit892dc3af7f13eb32842f75312cfed61179246caf (patch)
tree3a5a47949e0893318649f9ba5f9d566f56a91567 /lib/libc/gen
parentac9461d96b88ad88a3e0ac7a244e06f7bad1fcb2 (diff)
downloadFreeBSD-src-892dc3af7f13eb32842f75312cfed61179246caf.zip
FreeBSD-src-892dc3af7f13eb32842f75312cfed61179246caf.tar.gz
Reflect current sleep/usleep implementations state
Diffstat (limited to 'lib/libc/gen')
-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