Line | |
---|
1 | .\" Copyright (c) 1980 Regents of the University of California.
|
---|
2 | .\" All rights reserved. The Berkeley software License Agreement
|
---|
3 | .\" specifies the terms and conditions for redistribution.
|
---|
4 | .\"
|
---|
5 | .\" @(#)sleep.3 6.2 (Berkeley) 5/12/86
|
---|
6 | .\"
|
---|
7 | .TH SLEEP 3 "May 12, 1986"
|
---|
8 | .UC 4
|
---|
9 | .SH NAME
|
---|
10 | sleep \- suspend execution for interval
|
---|
11 | .SH SYNOPSIS
|
---|
12 | .nf
|
---|
13 | .ft B
|
---|
14 | #include <unistd.h>
|
---|
15 |
|
---|
16 | unsigned int sleep(unsigned int \fIseconds\fP)
|
---|
17 | .fi
|
---|
18 | .SH DESCRIPTION
|
---|
19 | The current process is suspended from execution for the number
|
---|
20 | of seconds specified by the argument.
|
---|
21 | .PP
|
---|
22 | The routine is implemented by setting an alarm timer
|
---|
23 | and pausing until it occurs.
|
---|
24 | The previous state of this timer is saved and restored.
|
---|
25 | If the sleep time exceeds the time to the expiration of the
|
---|
26 | previous timer,
|
---|
27 | the process sleeps only until the signal would have occurred, and the
|
---|
28 | signal is sent 1 second later.
|
---|
29 | .SH "SEE ALSO"
|
---|
30 | .BR alarm (2),
|
---|
31 | .BR pause (2).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.