X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fpoll.texi;h=ec1bdda9cd7c635e7247e77dbafc2402e4aa1ff1;hb=6e5f53c09490a510344a65d26f5e3989a048fcdf;hp=0adb30aaa4dd969ab08576107c3553b129d6caa5;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-functions/poll.texi b/doc/posix-functions/poll.texi index 0adb30aaa..ec1bdda9c 100644 --- a/doc/posix-functions/poll.texi +++ b/doc/posix-functions/poll.texi @@ -2,7 +2,7 @@ @section @code{poll} @findex poll -POSIX specification: @url{http://www.opengroup.org/susv3xsh/poll.html} +POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/poll.html} Gnulib module: poll @@ -10,13 +10,25 @@ Portability problems fixed by Gnulib: @itemize @item This function is missing on some platforms: -mingw, BeOS. +mingw, MSVC 9, BeOS, HP NonStop. @item This function doesn't work on special files like @file{/dev/null} and ttys like @file{/dev/tty} on some platforms: -MacOS X 10.4.0, AIX 5.3. +Mac OS X 10.4.0, AIX 5.3. @end itemize Portability problems not fixed by Gnulib: @itemize +@item +Under BeOS, Gnulib's @code{poll} replacement can only be called on descriptors +created by the @code{socket} function, not on regular file descriptors. + +@item +Under Windows, when passing a pipe, Gnulib's @code{poll} replacement might +return 0 even before the timeout has passed. Programs using it with pipes can +thus busy wait. + +@item +Under HP NonStop, file descriptors other than sockets do not support +POLLHUP; they will return a "readable" status instead. @end itemize