poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / sleep.texi
blob07188250fc918294d01a1233eade24ff50409dfe
1 @node sleep
2 @section @code{sleep}
3 @findex sleep
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/sleep.html}
7 Gnulib module: sleep
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 mingw (2005 or newer), MSVC 14.
14 @item
15 This function takes milliseconds as argument and returns @code{void} on some
16 platforms:
17 mingw (2005 and older).
18 @item
19 This function cannot sleep longer than 49.7 days on some platforms:
20 Cygwin 1.5.x.
21 @end itemize
23 Portability problems not fixed by Gnulib:
24 @itemize
25 @item
26 According to POSIX, the @code{sleep} function may interfere with the program's
27 use of the @code{SIGALRM} signal.  On Linux, it doesn't; on other platforms,
28 it may.
29 @end itemize