|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1876 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 1876.
Report 1876 Actions
Problem Report Number 1876 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0937 Raised 1998-02-17 08:00 Updated 2003-03-13 08:00 Published 1998-02-20 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 POSIX.os/ioprim/fcntl 5 Problem Summary TSD5.006 This test fails because the test fails to properly compare the fcntl() return and the file status flags and file access mode. The test does the following: private int t4_status[T4_NFD] = { O_RDONLY | ... Problem Text
This test fails because the test fails to properly compare the
fcntl() return and the file status flags and file access mode.
The test does the following:
private int t4_status[T4_NFD] = { O_RDONLY | O_NONBLOCK | O_APPEND,
O_RDWR | O_APPEND,
O_WRONLY | O_NONBLOCK
};
fd[i] = open_to(t5_file, O_CREAT|t4_status[i], MODEGEN,
WAITTIME)) == SYSERROR)
rval[i] = tb_fcntl(fd[i], F_GETFL, 0, NULLFLK, NOERROR, NOERROR);
if (rval[i] != t4_status[i])
However, page 211 of the XPG5 XSH states:
"F_GETFL Get the file status flags and file access modes, ...
The file access modes can be extracted from the return
value using the mask O_ACCMODE, which is defined in
<fcntl.h>"
The test cannot do a straight comparsion of the fcntl() return
value to open() creation mask.Test Output
************************************************************************
/tset/POSIX.os/ioprim/fcntl/T.fcntl 5 Unresolved
Test Description:
On a call to fcntl(fildes, F_GETFL), the file access modes and status
flags O_RDONLY, O_WRONLY, O_RDWR, O_NONBLOCK and O_APPEND shall be
returned for the file specified by fildes.
Posix Ref: Component FCNTL Assertion 6.5.2.2-08(A)
Test Information:
fcntl(537915360, F_GETFL, 0) did not return flags file was opened with
fcntl(F_GETFL) returned 0400000014, file was opened with 014
fcntl(-1610596152, F_GETFL, 0) did not return flags file was opened with
fcntl(F_GETFL) returned 0400000012, file was opened with 012
fcntl(-1610596152, F_GETFL, 0) did not return flags file was opened with
fcntl(F_GETFL) returned 0400000005, file was opened with 05
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
It is accepted that this is a test suite error and it is recommended
that a waiver is granted on the grounds of 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:
- View Report 1876
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority