|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0053 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 0053.
Report 0053 Actions
Problem Report Number 0053 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0053 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 13 Problem Summary TSD4.053 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 13 Failed
Test Description:
When type = "ab", then the stream associated with the file descriptor
fildes is opened 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:
- View Report 0053
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority