summaryrefslogtreecommitdiff
path: root/doc/pastposix-functions/usleep.texi
blob: 09a98f61c55c69bf45c6bf1603bd9b30fc9fc91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@node usleep
@section @code{usleep}
@findex usleep

POSIX specification: @url{https://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html}

Gnulib module: usleep

Portability problems fixed by Gnulib:
@itemize
@item
On some systems, @code{usleep} rejects attempts to sleep longer than 1
second, as allowed by POSIX:
NetBSD 9.0, mingw.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
According to POSIX, the @code{usleep} function may interfere with the program's
use of the @code{SIGALRM} signal.  On Linux, it doesn't; on other platforms,
it may.
@end itemize