BSD 4_3 release
[unix-history] / usr / man / man3 / sleep.3
index a62945c..f45366a 100644 (file)
@@ -1,10 +1,18 @@
-.TH SLEEP 3 
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)sleep.3     6.2 (Berkeley) 5/12/86
+.\"
+.TH SLEEP 3  "May 12, 1986"
+.UC 4
 .SH NAME
 sleep \- suspend execution for interval
 .SH SYNOPSIS
 .SH NAME
 sleep \- suspend execution for interval
 .SH SYNOPSIS
+.nf
 .B sleep(seconds)
 .B sleep(seconds)
-.br
 .B unsigned seconds;
 .B unsigned seconds;
+.fi
 .SH DESCRIPTION
 The current process is suspended from execution for the number
 of seconds specified by the argument.
 .SH DESCRIPTION
 The current process is suspended from execution for the number
 of seconds specified by the argument.
@@ -13,11 +21,12 @@ that requested, because scheduled wakeups occur at fixed 1-second intervals,
 and an arbitrary amount longer because of other activity
 in the system.
 .PP
 and an arbitrary amount longer because of other activity
 in the system.
 .PP
-The routine is implemented by setting an alarm clock signal
+The routine is implemented by setting an interval timer
 and pausing until it occurs.
 and pausing until it occurs.
-The previous state of this signal is saved and restored.
-If the sleep time exceeds the time to the alarm signal,
+The previous state of this timer is saved and restored.
+If the sleep time exceeds the time to the expiration of the
+previous timer,
 the process sleeps only until the signal would have occurred, and the
 signal is sent 1 second later.
 .SH "SEE ALSO"
 the process sleeps only until the signal would have occurred, and the
 signal is sent 1 second later.
 .SH "SEE ALSO"
-alarm(2), pause(2)
+setitimer(2), sigpause(2), usleep(3)