mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
* doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration on IRIX 5.3. * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3. * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX 5.3. * doc/posix-functions/grantpt.texi: Likewise. * doc/posix-functions/unlockpt.texi: Likewise. * doc/posix-functions/lgamma.texi: Likewise. * doc/posix-functions/nextafter.texi: Likewise. * doc/posix-functions/remainder.texi: Likewise. * doc/posix-functions/select.texi: Mention misplaced declaration on IRIX 5.3. Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
@node select
|
|
@section @code{select}
|
|
@findex select
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/select.html}
|
|
|
|
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
|
|
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 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}.
|
|
@item
|
|
This function is declared in @code{<unistd.h>}, not @code{<sys/select.h>},
|
|
on some platforms:
|
|
IRIX 5.3.
|
|
@end itemize
|