HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0376 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0376.


Report 0376 Actions


    Problem Report Number 0376
    Submitter's Classification Minor System Fault
    State Resolved
    Resolution Minor System Fault (MSF)
    Problem Resolution ID MSF.X.0017
    Raised 1995-09-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-10-13 08:00
    Expiry Date 1996-10-12
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.3.5
    Test Identification XPG4.hdr/misc/wchar NA
    Problem Summary MSF4.017 The header check for wchar.h fails because it finds nine function definitions which were not expected. The ISO/IEC 9899:1990/Amendment 1:1994 draft - Multibyte Support Extensions(MSE) as documented in...
    Problem Text

    The header check for wchar.h fails because it finds nine
    function definitions which were not expected.
    The ISO/IEC 9899:1990/Amendment 1:1994 draft - Multibyte
    Support Extensions(MSE) as documented in the ISO Working
    Paper SC22/WG14/N325 defines the following additional function
    definitions in wchar.h:
    swprintf
    swscanf
    vswprintf
    mbsinit
    mbrlen
    wctob
    mbrtowc
    wcrtomb
    mbsrtowcs

    Our implementation conforms to MSE as documented in the ISO Working
    Paper SC22/WG14/N325. Since this area of the specification
    is subject to change, we request a permanent interpretation allowing
    the behaviour described in MSE as documented in the
    ISO Working Paper SC22/WG14/N325.
    Test Output
    /tset/XPG4.hdr/misc/wchar/T.wchar 43.Failed

    Test Description:
    When _XOPEN_SOURCE is defined and no other feature test macros except
    _POSIX_SOURCE, _POSIX_C_SOURCE=1 or _POSIX_C_SOURCE=2 are defined, no
    other symbols than those defined or reserved by the XPG are made
    visible.

    Test Strategy:
    FOR each unreserved struct/union member made visible by the header
    DEFINE a macro which will cause an error if not protected from
    expansion
    UNDEFINE those macros which correspond to allowed member names
    INCLUDE a copy of the header file modified to identify #defines
    FOR each unreserved symbol made visible by the header
    VERIFY that the symbol name is in a list of allowed names

    Test Information:
    Feature test macros: -D_XOPEN_SOURCE
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    first directive before any C code.
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    in a parameter list, and will go out of scope at the end of the
    function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    first directive before any C code.
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    .in a parameter list, and will go out of scope at the end of the
    .function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    first directive before any C code.
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    in a parameter list, and will go out of scope at the end of the
    function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    first directive before any C code.
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    in a parameter list, and will go out of scope at the end of the
    function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    first directive before any C code.
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    in a parameter list, and will go out of scope at the end of the
    function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    CBC1460(W) Negative form of option "USERLIB" is not allowed.
    CBC1460(W) Negative form of option "SYSLIB" is not allowed.
    CBC1049(W) The option "EVENTS" is not supported.
    WARNING CBC3565 ././wchar.h.D:36 #pragma filetag must appear on the
    WARNING CBC3310 ././wchar.h.D:662 The type "struct tm" was introduced
    .in a parameter list, and will go out of scope at the end of the
    .function declaration or definition.
    FSUM3065 The COMPILE step ended with return code 4.
    Illegal declared or 'typedef'ed symbol: swprintf
    Illegal declared or 'typedef'ed symbol: swscanf
    Illegal declared or 'typedef'ed symbol: vswprintf
    Illegal declared or 'typedef'ed symbol: mbsinit
    Illegal declared or 'typedef'ed symbol: mbrlen
    Illegal declared or 'typedef'ed symbol: wctob
    Illegal declared or 'typedef'ed symbol: mbrtowc
    Illegal declared or 'typedef'ed symbol: wcrtomb
    Illegal declared or 'typedef'ed symbol: mbsrtowcs
    ************************************************************************

    Test-Set Ended: 11:24:59

    Test-Set Results Summary:
    ------------------------

    43 Tests Executed
    1 Tests Failed
    41 Tests Further Information Provided
    1 Tests Unresolved

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    There is a significant issue regarding the change of the function prototype
    for the wcstok() function between the XPG4 definition and the MSE definition.
    Since these two prototypes are incompatible there will be a need for
    implementations to make appropriate use of feature test macros to ensure
    that applications which use the wcstok() function as defined in either of
    these documents will compile.

    Given that it will be necessary to select the appropriate prototype of
    wcstok(), it would also seem sensible to ensure that the other function
    prototypes remain unselected in an XPG4 environment.

    It is recommended that this issue is forwarded to the K/RT working group
    for consideration as to the manner in which the MSE extensions should be
    added to an XPG4 conforming system.

    This request should be considered in conjuction with request req.4.2.499.

    It is recommended that this waiver request is refused on the basis that
    the prototypes for these routines should not be visible in the XPG4
    environment.

    Review Type Expert Group Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    There is no affect on portability, a Temporary Waiver is recommended.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Minor System Fault (MSF)
    Review Conclusion
    A Temporary Waiver is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority