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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1871 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 1871.


Report 1871 Actions


    Problem Report Number 1871
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0932
    Raised 1998-01-19 08:00
    Updated 2003-03-13 08:00
    Published 1998-01-29 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.4.2
    Test Identification ANSI.hdr/misc/stdlib 48
    Problem Summary TSD5.001 The above errors are caused by the testcase not expecting to see the members of the ucontext_t structure in the stdlib.h namespace. The contents of stdlib.h.M are as follows: #if !defined(_XOPEN_SOURC...
    Problem Text

    The above errors are caused by the testcase not expecting to
    see the members of the ucontext_t structure in the stdlib.h
    namespace. The contents of stdlib.h.M are as follows:

    #if !defined(_XOPEN_SOURCE) || TEST_XPG > 3
    #define uc_sigmask "uc_sigmask unprotected"))))))))))
    #define uc_mcontext "uc_mcontext unprotected"))))))))))
    #define uc_link "uc_link unprotected"))))))))))
    #define uc_stack "uc_stack unprotected"))))))))))
    #endif

    These are required members of the ucontext_t structure per page
    1193 of the XPG5 XSH. They are allowed in the stdlib.h namespace
    via the following chain of text from the spec

    page 1146 states the following:

    "Inclusion of the <stdlib.h> header may also make visible all
    symbols from <stddef.h>, <limits.h>, <math.h> and <sys/wait.h>."

    page 1181 (sys/wait.h) states the following:

    "Inclusion of the <sys/wait.h> header may also make visible all
    symbols from <signal.h> and <sys/resource.h>."

    page 1132 (signal.h) states the following:

    "The uncontext_t structure is defined through typedef as described
    in <ucontext.h>."

    In addition, a corrigenda item adds the prefix uc_ to the allowable in
    the XPG5 namespace.
    Test Output
    ************************************************************************
    /tset/ANSI.hdr/misc/stdlib/T.stdlib 48 Failed

    Test Description:
    For POSIX90 and FIPS modes:
    When _POSIX_SOURCE is defined and no other feature test macros are
    defined, no other symbols than those defined or reserved by
    POSIX.1-1990 are made visible.
    For POSIX96 mode:
    When _POSIX_C_SOURCE is defined with the value 199506L and no
    other feature test macros except _POSIX_SOURCE are defined, no
    other symbols than those defined or reserved by POSIX.1-1996 are
    made visible.
    For XPG4 mode:
    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 XPG4
    are made visible.
    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.
    Posix Ref: Component C Language Definitions Assertion 2.7.2-05(B)

    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:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE=500
    Compiler or run-time messages or results:
    "./stdlib.h.D", line 13054.21: 1506-046 (S) Syntax error.
    "./stdlib.h.D", line 13058.27: 1506-277 (S) Syntax error: possible
    missing ';' or ','?
    "./stdlib.h.D", line 13054.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    "./stdlib.h.D", line 13057.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "./stdlib.h.D", line 13054.21: 1506-046 (S) Syntax error.
    "./stdlib.h.D", line 13058.27: 1506-277 (S) Syntax error: possible
    missing ';' or ','?
    "./stdlib.h.D", line 13054.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    "./stdlib.h.D", line 13057.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    "./stdlib.h.D", line 13054.21: 1506-046 (S) Syntax error.
    "./stdlib.h.D", line 13058.27: 1506-277 (S) Syntax error: possible
    missing ';' or ','?
    "./stdlib.h.D", line 13054.9: 1506-274 (S) Missing declarator in
    structure member declaration.

    "./stdlib.h.D", line 13057.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=1
    -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "./stdlib.h.D", line 13054.21: 1506-046 (S) Syntax error.
    "./stdlib.h.D", line 13058.27: 1506-277 (S) Syntax error: possible
    missing ';' or ','?
    "./stdlib.h.D", line 13054.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    "./stdlib.h.D", line 13057.9: 1506-274 (S) Missing declarator in
    structure member declaration.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    "./stdlib.h.D", line 13054.21: 1506-046 (S) Syntax error.
    TEST INFORMATION TRUNCATED BY -t OPTION

    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The item in question is a recent addition to the XSH5 corrigenda, and
    the test suite will be changed to align with it in the next release.

    Since this addition to the corrigenda has not yet been published, it
    may be more appropriate to grant a permanent interpretation rather
    than a test suite deficiency.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority