]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/usleep.3.patch
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / usleep.3.patch
1 --- usleep.3.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ usleep.3 2009-11-07 14:51:40.000000000 -0800
3 @@ -33,30 +33,34 @@
4 .Os
5 .Sh NAME
6 .Nm usleep
7 -.Nd suspend process execution for an interval measured in microseconds
8 +.Nd suspend thread execution for an interval measured in microseconds
9 .Sh LIBRARY
10 .Lb libc
11 .Sh SYNOPSIS
12 .In unistd.h
13 .Ft int
14 -.Fn usleep "useconds_t microseconds"
15 +.Fo usleep
16 +.Fa "useconds_t useconds"
17 +.Fc
18 .Sh DESCRIPTION
19 The
20 .Fn usleep
21 -function suspends execution of the calling process until either
22 -.Fa microseconds
23 -microseconds have elapsed or a signal is delivered to the process and its
24 -action is to invoke a signal-catching function or to terminate the
25 -process.
26 -System activity may lengthen the sleep by an indeterminate amount.
27 +function suspends execution of the calling thread until either
28 +.Fa useconds
29 +microseconds have elapsed
30 +or a signal is delivered to the thread whose action
31 +is to invoke a signal-catching function
32 +or to terminate the thread or process.
33 +The actual time slept may be longer, due to system latencies
34 +and possible limitations in the timer resolution of the hardware.
35 .Pp
36 -This function is implemented using
37 -.Xr nanosleep 2
38 +This function is implemented, using
39 +.Xr nanosleep 2 ,
40 by pausing for
41 -.Fa microseconds
42 +.Fa useconds
43 microseconds or until a signal occurs.
44 Consequently, in this implementation,
45 -sleeping has no effect on the state of process timers,
46 +sleeping has no effect on the state of process timers
47 and there is no special handling for SIGALRM.
48 .Sh RETURN VALUES
49 .Rv -std usleep