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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1650 Actions


    Problem Report Number 1650
    Submitter's Classification Specification problem
    State Resolved
    Resolution Permanent Interpretation (PIN)
    Problem Resolution ID PIN.X.0207
    Raised 2002-10-09 08:00
    Updated 2003-03-13 08:00
    Published 2002-11-07 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.1.2
    Test Identification CAPI.util/command/c89 5
    Specification System Interfaces and Headers Issue 5
    Location in Spec See Problem Text
    Problem Summary PIN4U.00073 COLOR_PAIR and PAIR_NUMBER do not have to exist as functions
    Problem Text
    This test case performs a simple link test to determine if various
    curses interfaces are provided by the curses library. For two of the
    interfaces, COLOR_PAIR and PAIR_NUMBER, its not clear whether these
    should be functions or macros.

    The SUSv2 man page for can_change_color() refers to them as macros. The
    curses.h page in SUSv2 says this: "The following are declared as
    functions, and may also be defined as macros..." In SUSv2, "Use and
    Implementation of Curses Interfaces" refers to them in regard to
    something called "ENHANCED CURSES." In this case it also refers to them
    as macros.

    Are these interfaces, COLOR_PAIR and PAIR_NUMER, required to be
    functions? Its not clear whether functions are required, yet the c89
    test asserts that functions be available. Please clarify.
    Test Output
    /tset/CAPI.util/command/c89/T.c89 5 Failed

    Test Description:
    Base Required Conformance
    The command c89 when the -l curses operand is used and _XOPEN_SOURCE
    is defined by the application with the value 500 shall make visible
    all X/Open Curses, Issue 4, Version 2 library functions.

    Test Information:
    TEST: File referencing all functions built successfully
    ERROR: Unsatisfied references:
    COLOR_PAIR
    PAIR_NUMBER

    [ more "Unsatisfied references" truncated ]

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This appears to be an error on the curses.h page of the Xcurses
    specification. It should not have included COLOR_PAIR and PAIR_NUMBER
    in the list of function prototypes - it should have stated that they
    are defined as macros.

    Since it concerns a possible specification error, this request should
    be forwarded to the base working group for consideration. They may
    wish to issue a corrigendum for the curses.h page, in which case a TSD
    should be granted. If no corrigendum is issued, then a permanent
    interpretation is recommended.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    This request is being sent for a 14 day review by the Base Working Group.

    Review Type Expert Group Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    The Base WG concurs that the requirement that COLOR_PAIR and PAIR_NUMBER
    shall be provided as functions is a defect. They shall be defined as
    macros, and may optionally also be defined as functions. A PIN should
    be granted for this issue of the specification.


    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Permanent Interpretation (PIN)
    Review Conclusion
    A Permanent Interpretation is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority