summaryrefslogtreecommitdiff
path: root/static/v10/man3/sleep.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/sleep.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/sleep.3')
-rw-r--r--static/v10/man3/sleep.329
1 files changed, 29 insertions, 0 deletions
diff --git a/static/v10/man3/sleep.3 b/static/v10/man3/sleep.3
new file mode 100644
index 00000000..98e6e438
--- /dev/null
+++ b/static/v10/man3/sleep.3
@@ -0,0 +1,29 @@
+.TH SLEEP 3
+.CT 2 time_man
+.SH NAME
+sleep \(mi suspend execution for an 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
+one
+second less than
+that requested, because scheduled wakeups occur at fixed
+second
+intervals,
+and an arbitrary amount longer because of other activity
+in the system.
+.PP
+The routine is implemented by setting an alarm clock signal
+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 process sleeps only until the signal would have occurred, and the
+signal is sent one second later.
+.SH "SEE ALSO"
+.IR alarm (2)