Mercurial > gnulib
view doc/posix-functions/select.texi @ 30233:8bf8bbba1c84
documentation update for mingw socket functions
2008-08-24 Paolo Bonzini <bonzini@gnu.org>
* doc/posix-functions/accept.texi: Update mingw problems.
* doc/posix-functions/bind.texi: Update mingw problems.
* doc/posix-functions/close.texi: Update mingw problems.
* doc/posix-functions/connect.texi: Update mingw problems.
* doc/posix-functions/getpeername.texi: Update mingw problems.
* doc/posix-functions/getsockname.texi: Update mingw problems.
* doc/posix-functions/getsockopt.texi: Update mingw problems.
* doc/posix-functions/ioctl.texi: Update mingw problems.
* doc/posix-functions/listen.texi: Update mingw problems.
* doc/posix-functions/recv.texi: Update mingw problems.
* doc/posix-functions/recvfrom.texi: Update mingw problems.
* doc/posix-functions/select.texi: Update mingw problems.
* doc/posix-functions/send.texi: Update mingw problems.
* doc/posix-functions/sendto.texi: Update mingw problems.
* doc/posix-functions/setsockopt.texi: Update mingw problems.
* doc/posix-functions/socket.texi: Update mingw problems.
author | Paolo Bonzini <bonzini@gnu.org> |
---|---|
date | Mon, 29 Sep 2008 13:23:50 +0200 |
parents | 8cd0f07812b0 |
children | a8bf2f84bb03 |
line wrap: on
line source
@node select @section @code{select} @findex select POSIX specification: @url{http://www.opengroup.org/susv3xsh/select.html} Gnulib module: sys_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. @end itemize Portability problems not fixed by Gnulib: @itemize @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 BeOS, @code{select} can only be called on descriptors created by the @code{socket} function, not on regular file descriptors. @item On Linux, when some file descriptor refers to a regular file, @code{select} may fail, setting @code{errno} to @code{EBADF}. @end itemize