X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Fposix-functions%2Fselect.texi;h=0b52c27c067cbabed42bf07b4d5e29e83881bfdd;hb=54b5ce0e1a4f6a4af37f970e45e6e173e5b0a1c6;hp=1c6475263e52380187b70dba3d6c886b649e2ff9;hpb=2b6c08c775ae4e80b52aa41058ea5939f778b44b;p=gnulib.git diff --git a/doc/posix-functions/select.texi b/doc/posix-functions/select.texi index 1c6475263..0b52c27c0 100644 --- a/doc/posix-functions/select.texi +++ b/doc/posix-functions/select.texi @@ -2,28 +2,38 @@ @section @code{select} @findex select -POSIX specification: @url{http://www.opengroup.org/susv3xsh/select.html} +POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/select.html} -Gnulib module: --- +Gnulib module: select Portability problems fixed by Gnulib: @itemize +@item +On Windows platforms (excluding Cygwin), @code{select} can only be +called on descriptors created by the @code{socket} function, not on regular +file descriptors. +@item +On Windows platforms (excluding Cygwin), error codes for @code{accept} are not +placed in @code{errno}, and @code{WSAGetLastError} must be used instead. +@item +This function fails when the @code{nfds} argument is 0 on some platforms: +Interix 3.5. @end itemize Portability problems not fixed by Gnulib: @itemize @item -This function is missing on some platforms: -mingw. -@item When you call @code{select} with a timeout, some implementations modify the timeout parameter so that upon return from the function, it contains the amount of time not slept. Other implementations leave the timeout parameter unmodified. @item -On Windows platforms (excluding Cygwin) and on BeOS, @code{select} can only be -called on descriptors created by the @code{socket} function, not on regular -file descriptors. +On BeOS, @code{select} can only be called on descriptors created by the +@code{socket} function, not on regular file descriptors. +@item +On Solaris 2.6 and older, @code{select} applied to a file descriptor opened +for reading and associated with @code{/dev/null} hangs, waiting for input, +when instead it should return immediately. @item On Linux, when some file descriptor refers to a regular file, @code{select} may fail, setting @code{errno} to @code{EBADF}.