Annotation of researchv10dc/man/adm/man3/sleep.3, revision 1.1.1.1

1.1       root        1: .TH SLEEP 3
                      2: .CT 2 time_man
                      3: .SH NAME
                      4: sleep \(mi suspend execution for an interval
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .B sleep(seconds)
                      8: .B unsigned seconds;
                      9: .fi
                     10: .SH DESCRIPTION
                     11: The current process is suspended from execution for the number
                     12: of seconds specified by the argument.
                     13: The actual suspension time may be up to
                     14: one
                     15: second less than
                     16: that requested, because scheduled wakeups occur at fixed
                     17: second
                     18: intervals,
                     19: and an arbitrary amount longer because of other activity
                     20: in the system.
                     21: .PP
                     22: The routine is implemented by setting an alarm clock signal
                     23: and pausing until it occurs.
                     24: The previous state of this signal is saved and restored.
                     25: If the sleep time exceeds the time to the alarm signal,
                     26: the process sleeps only until the signal would have occurred, and the
                     27: signal is sent one second later.
                     28: .SH "SEE ALSO"
                     29: .IR alarm (2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.