poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / poll.texi
bloba04d3b8b189b4c85edb5a8cfbe5d3ff7e4c70414
1 @node poll
2 @section @code{poll}
3 @findex poll
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html}
7 Gnulib module: poll
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 mingw, MSVC 14, HP NonStop.
14 @item
15 This function doesn't work on special files like @file{/dev/null} and ttys like
16 @file{/dev/tty} on some platforms:
17 AIX 5.3.
18 @end itemize
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 Under Windows, when passing a pipe, Gnulib's @code{poll} replacement might
24 return 0 even before the timeout has passed.  Programs using it with pipes can
25 thus busy wait.
27 @item
28 Under HP NonStop, file descriptors other than sockets do not support
29 POLLHUP; they will return a "readable" status instead.
30 @end itemize