sleep.3 (84306) | sleep.3 (131504) |
---|---|
1.\" Copyright (c) 1986, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1986, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/gen/sleep.3 84306 2001-10-01 16:09:29Z ru $ | 33.\" $FreeBSD: head/lib/libc/gen/sleep.3 131504 2004-07-02 23:52:20Z ru $ |
34.\" 35.Dd February 13, 1998 36.Dt SLEEP 3 37.Os 38.Sh NAME 39.Nm sleep 40.Nd suspend process execution for an interval measured in seconds 41.Sh LIBRARY --- 19 unchanged lines hidden (view full) --- 61seconds or until a signal occurs. 62Consequently, in this implementation, 63sleeping has no effect on the state of process timers, 64and there is no special handling for SIGALRM. 65.Sh RETURN VALUES 66If the 67.Fn sleep 68function returns because the requested time has elapsed, the value | 34.\" 35.Dd February 13, 1998 36.Dt SLEEP 3 37.Os 38.Sh NAME 39.Nm sleep 40.Nd suspend process execution for an interval measured in seconds 41.Sh LIBRARY --- 19 unchanged lines hidden (view full) --- 61seconds or until a signal occurs. 62Consequently, in this implementation, 63sleeping has no effect on the state of process timers, 64and there is no special handling for SIGALRM. 65.Sh RETURN VALUES 66If the 67.Fn sleep 68function returns because the requested time has elapsed, the value |
69returned will be zero. If the | 69returned will be zero. 70If the |
70.Fn sleep 71function returns due to the delivery of a signal, the value returned 72will be the unslept amount (the requested time minus the time actually 73slept) in seconds. 74.Sh SEE ALSO 75.Xr nanosleep 2 , 76.Xr usleep 3 77.Sh STANDARDS 78The 79.Fn sleep 80function conforms to 81.St -p1003.1-90 . 82.Sh HISTORY 83A 84.Fn sleep 85function appeared in 86.At v7 . | 71.Fn sleep 72function returns due to the delivery of a signal, the value returned 73will be the unslept amount (the requested time minus the time actually 74slept) in seconds. 75.Sh SEE ALSO 76.Xr nanosleep 2 , 77.Xr usleep 3 78.Sh STANDARDS 79The 80.Fn sleep 81function conforms to 82.St -p1003.1-90 . 83.Sh HISTORY 84A 85.Fn sleep 86function appeared in 87.At v7 . |