Merge branch 'stable'
[gnulib.git] / doc / pastposix-functions / usleep.texi
1 @node usleep
2 @section @code{usleep}
3 @findex usleep
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/usleep.html}
6
7 Gnulib module: usleep
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On some systems, @code{usleep} rejects attempts to sleep longer than 1
13 second, as allowed by POSIX:
14 mingw.
15 @item
16 This function is missing on some platforms.  However, the replacement
17 is designed to be lightweight, and may round to the neareset second;
18 use @code{select} or @code{nanosleep} if better resolution is needed:
19 IRIX 5.3, Solaris 2.4, older mingw, MSVC 9, BeOS.
20 @end itemize
21
22 Portability problems not fixed by Gnulib:
23 @itemize
24 @item
25 According to POSIX, the @code{usleep} function may interfere with the program's
26 use of the @code{SIGALRM} signal.  On Linux, it doesn't; on other platforms,
27 it may.
28 @end itemize