Report 1191 Actions
Problem Report Number |
1191 |
Submitter's Classification |
Test Suite problem |
State |
Resolved |
Resolution |
Rejected (REJ) |
Problem Resolution ID |
REJ.X.0393 |
Raised |
1970-01-01 08:00 |
Updated |
2003-03-13 08:00 |
Published |
null |
Product Standard |
Sockets (UNIX 95) |
Certification Program |
The Open Brand certification program |
Test Suite |
VSU version 4.1.0 |
Test Identification |
sockets/socketpair 9 |
Problem Summary |
PG4U.00074 This request claims that socketpair is only required to work with AF_UNIX sockets. |
Problem Text |
This request claims that socketpair is only required to work with AF_UNIX sockets. This test case attempts to test an invalid protocol with the INET address family (STREAMS type). However, our implementation does not support using the INET address family with socketpair(). Using INET on this call is invalid and generates EINVAL. The Networking Services, Issue 4, states under Application Usage: "The socketpair() function is used primarily with UNIX domain sockets and need not be supported for other domains."
|
Test Output |
TEST PURPOSE #8 If the implementation supports a communications domain and a connection-oriented socket type: EPROTONOSUPPORT in errno and return -1 on a call to int socketpair(int domain, int type, int protocol, int socket_vector[2]) when the address family does not support the specified protocol. PREP: Get VSU_PROTO_FOR_AF_INVALID configuration parameter TEST: Create socketpair TEST: Return value TEST: errno value ERROR: socketpair call failed incorrectly, errno was 121(EINVAL - Invalid argument) should have been EPROTONOSUPPORT 8 FAIL
|
Review Information
Review Type |
TSMA Review |
Start Date |
null |
Completed |
null |
Status |
Complete |
Review Recommendation |
No Resolution Given |
Review Response |
We recommend this request be refused after review. The spec text the submitter quotes from the socketpair() Application Usage section is not normative. A Base Resolution is necessary to make the statement normative. This should be taken up with the XNET group. While the XNI spec allows AFs to be optional, the GP1 Sockets Component Definition requires both that AF_UNIX and AF_INET support STREAMS sockets. A change to this document may be required as well. This should be brought to the attention of the X/Open Testing Business Unit. If a base resolution making socketpair() support for AF_INET sockets optional is passed we will still believe that returning EINVAL is non-compliant. We believe EAFNOSUPPORT or EOPNOTSUP is the proper error in this case and request that the base working group clarify this issue while resolving the submitter's request.
|
Review Type |
Expert Group Review |
Start Date |
null |
Completed |
null |
Status |
Complete |
Review Resolution |
No Resolution Given |
Review Conclusion |
The Base Working Group agrees with the consultant that EPROTONOSUPPORT is the expected error number. The request should be refused.
|
Review Type |
SA Review |
Start Date |
null |
Completed |
null |
Status |
Complete |
Review Resolution |
Rejected (REJ) |
Review Conclusion |
This request is refused.
|
Problem Reporting System Options:
|