1 --- usleep.3.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ usleep.3 2009-11-07 14:51:40.000000000 -0800
7 -.Nd suspend process execution for an interval measured in microseconds
8 +.Nd suspend thread execution for an interval measured in microseconds
14 -.Fn usleep "useconds_t microseconds"
16 +.Fa "useconds_t useconds"
21 -function suspends execution of the calling process until either
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
26 -System activity may lengthen the sleep by an indeterminate amount.
27 +function suspends execution of the calling thread until either
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.
36 -This function is implemented using
38 +This function is implemented, using
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.