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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0054 Actions


    Problem Report Number 0054
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0054
    Raised 1992-12-24 08:00
    Updated 2003-03-13 08:00
    Published 1993-01-25 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.3
    Test Identification POSIX.os/Csupport/fdopen 16
    Problem Summary TSD4.054 There is a problem with the test strategy used in the fdopen() append mode tests (test cases 5,8,13,16). In these test cases, a call to open() is made with the mode O_RDWR, and then the file descripto...
    Problem Text
    There is a problem with the test strategy used in the fdopen() append
    mode tests (test cases 5,8,13,16).

    In these test cases, a call to open() is made with the mode O_RDWR,
    and then the file descriptor obtained is passed to fdopen() with
    an append mode selected. In our system such a scenario will cause
    fdopen() to fail since the open() mode does not have the O_APPEND
    flag set.

    An open() mode of O_RDWR implies a read or write update capability on the file,
    but not append capability, i.e the file offset does not get set to the end of
    the file prior to each write. An fdopen() of mode "a" is open for writing
    at the end-of-file -- which means open for appending to the file which
    implies that the underlying fd should have been opened with append capability.

    Since POSIX recommends applications shall ensure that the mode
    of the stream is allowed by the mode of the file -- it is allowable
    for an implementation to return NULL and EINVAL in these test cases .
    The strategy is attempting a scenario which a POSIX application
    would not, as such the test strategy is incorrect to assume this will
    succeed. The test strategy should be changed to open these
    files O_RDWR|O_APPEND.

    This has been reported as an error and will be fixed post VSX4.2.4.
    Test Output
    ************************************************************************
    /tset/POSIX.os/Csupport/fdopen/T.fdopen 16 Failed

    Test Description:
    When type = "a+b" or "ab+", then the stream associated with the file
    descriptor fildes is opened for reading and for writing at end of file
    only, the file length is unaltered.
    This test is not executed in XPG3 mode.

    Test Strategy:

    Test Information:
    fdopen(fd, "ab+") on valid read/write file descriptor failed - errno
    22(EINVAL)
    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a fault in VSX 4.2.4 and a test suite defificiency is
    recommended.

    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