|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2408 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2408.
Report 2408 Actions
Problem Report Number 2408 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1245 Raised 2004-07-22 01:46 Updated 2004-07-22 19:59 Published 2004-07-22 19:59 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.2.5 Test Identification CAPI.hdr/misc/socket/T.socket 86 Linked Problem Reports PR, 2405 Problem Summary socket #86 does not allow SCM_ prefix macros in sys/socket.h Problem Text From the online version of the SUSv2 specification,
http://www.opengroup.org/onlinepubs/007908799/xns/namespace.html:
If any header in the following table is included, macros with the
prefixes
shown may be defined. After the last inclusion of a given header, an
application may use identifiers with the corresponding prefixes for
its own
purpose, provided their use is preceded by an #undef of the
corresponding
macro.
Header Prefix
<netinet/in.h> IMPLINK_, IN_, INADDR_, IP_, IPPORT_, IPPROTO_, SOCK_
<sys/socket.h> AF_, CMSG_, MSG_, PF_, SCM_, SHUT_, SO
<xti.h> OPT_, T_, XTI_
For previous problem report sent on this issue, the reply was:
Neither XSH5 nor XNS5 reserves the prefix SCM_ for <sys/socket.h>,
and therefore the test is right to report that SCM_UCRED is not
allowed to be visible when _XOPEN_SOURCE is 500.
This is not correct. The section of the standard referenced above is
clear in allowing macros beginning with SCM_.
Similiar wording for this part of the standard appears in the SUSv3
edition of XSH6, page 18, line 693.Test Output
****************************************************************************************************************
/tset/CAPI.hdr/misc/socket/T.socket 86 Failed
Test Description:
Base Required Conformance
For UNIX98 mode:
When _XOPEN_SOURCE is defined with the value 500 and no other
feature test macros except _POSIX_SOURCE or
_POSIX_C_SOURCE<=199506L are defined, no other symbols than
those
defined or reserved by XSH5 are made visible.
For UNIX03 mode:
When _XOPEN_SOURCE is defined with the value 600 and no other
feature test macros except _POSIX_C_SOURCE<=200112L are defined,
no other symbols than those defined or reserved by POSIX.1-
2001/XSH6 (including the XSI option) are made visible.
Test Information:
Feature test macros: -D_XOPEN_SOURCE=500
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_SOURCE
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=1
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=1
-D_POSIX_SOURCE
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=2
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=2
-D_POSIX_SOURCE
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199309
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500
-D_POSIX_C_SOURCE=199309 -D_POSIX_SOURCE
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
Feature test macros: -D_XOPEN_SOURCE=500
-D_POSIX_C_SOURCE=199506 -D_POSIX_SOURCE
Compiler or run-time messages or results:
Illegal #defined symbol: SCM_UCRED
****************************************************************************************************************Review Information
Review Type TSMA Review Start Date 2004-07-22 01:46 Last Updated 2004-07-22 18:12 Completed 2004-07-22 18:12 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response The submitter is right to point out that the TSMA's comment in PR2405
was incorrect. The TSMA was misled by the <sys/socket.h> entry in the
table of reserved prefixes in XSH5, which specifies the reserved
prefixes for macros defined in that header as AF_ MSG_ PF_ SO. This
appears to be a defect in XSH5 - it should not list <sys/socket.h> in
the table at all, since the header is defined in XNS5 not in XSH5.
Review Type SA Review Start Date 2004-07-22 17:12 Last Updated 2004-07-22 19:59 Completed 2004-07-22 19:59 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion This is an agreed test suite deficiency.
Problem Reporting System Options:
- View Report 2408
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority