NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
standards/46150: Wrong errno from listen(2)
>Number: 46150
>Category: standards
>Synopsis: Wrong errno from listen(2)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: standards-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 07 07:15:00 +0000 2012
>Originator: Jukka Ruohonen
>Release: NetBSD 5.1_STABLE - NetBSD 6.0 BETA
>Organization:
>Environment:
Architecture: i386
Machine: i386
>Description:
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.
Related PRs:
PR kern/22522: connect(2) may fail with EINVAL
PR kern/46077: fstat() returns EINVAL
>How-To-Repeat:
A test case will follow.
>Fix:
Not investigated.
Home |
Main Index |
Thread Index |
Old Index