BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 10 Jul 1983 11:56:38 +0000 (03:56 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 10 Jul 1983 11:56:38 +0000 (03:56 -0800)
Work on file usr/man/man3/sleep.3

Synthesized-from: CSRG/cd1/4.2

usr/man/man3/sleep.3 [new file with mode: 0644]

diff --git a/usr/man/man3/sleep.3 b/usr/man/man3/sleep.3
new file mode 100644 (file)
index 0000000..ee83063
--- /dev/null
@@ -0,0 +1,28 @@
+.TH SLEEP 3  "19 January 1983"
+.UC 4
+.SH NAME
+sleep \- suspend execution for interval
+.SH SYNOPSIS
+.nf
+.B sleep(seconds)
+.B unsigned seconds;
+.fi
+.SH DESCRIPTION
+The current process is suspended from execution for the number
+of seconds specified by the argument.
+The actual suspension time may be up to 1 second less than
+that requested, because scheduled wakeups occur at fixed 1-second intervals,
+and an arbitrary amount longer because of other activity
+in the system.
+.PP
+The routine is implemented by setting an interval timer
+and pausing until it occurs.
+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"
+setitimer(2), sigpause(2)
+.SH BUGS
+An interface with finer resolution is needed.