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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1582 Actions


    Problem Report Number 1582
    Submitter's Classification Specification problem
    State Resolved
    Resolution Permanent Interpretation (PIN)
    Problem Resolution ID PIN.X.0139
    Raised 1995-07-28 08:00
    Updated 2003-03-13 08:00
    Published 1995-08-24 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.0.2
    Test Identification CAPI.hdr/misc/stdlib 8 15
    Specification System Interfaces and Libraries Issue 4 Version 2
    Location in Spec See Problem Text
    Problem Summary PIN4U.00005 The spec has conflicting prototypes for initstate() and setstate(). Only valid for UNIX95 branding.
    Problem Text
    The function prototype for initstate() and setstate() printed
    in the XSH initstate() spec are

    char *initstate(unsigned int seed, char *state, size_t size);
    char *setstate(const char *state);

    but the prototypes printed in the stdlib.h spec are

    char *initstate(unsigned seed, char *state, int size);
    char *setstate(char *state);

    Which are the correct prototypes?
    Test Output

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We propose that the initstate() spec redefine the initstate()
    protype as

    char *initstate(unsigned seed, char *state, int size);

    and redefine the setstate() prototype as

    char *setstate(char *state);

    We believe this will align the initstate() spec with stdlib.h and
    with historical implementations of random().

    Review Type Expert Group Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    Review result agrees either definition is permitted.

    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