[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
standards/46150: Wrong errno from listen(2)
>Synopsis: Wrong errno from listen(2)
>Arrival-Date: Wed Mar 07 07:15:00 +0000 2012
>Originator: Jukka Ruohonen
>Release: NetBSD 5.1_STABLE - NetBSD 6.0 BETA
According to IEEE Std 1003.1-2008, if a socket is already connected,
a call to listen(2) should fail with EINVAL, like it does on Linux. But on
NetBSD the call fails with EOPNOTSUPP.
Note that while this seems (and is) a trivial issue, some third-party
software (mainly programming languages) seem to rely on correct errors from
the networking functions.
PR kern/22522: connect(2) may fail with EINVAL
PR kern/46077: fstat() returns EINVAL
A test case will follow.
Main Index |
Thread Index |