|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0401 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 0401.
Report 0401 Actions
Problem Report Number 0401 Submitter's Classification Specification problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0020 Raised 1993-05-05 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.2.4 Test Identification POSIX.os/ioprim/fcntl 9 Problem Summary PG4R.020 Therefore the Interpretation Request VWG/008/063092 exists, in which the item "OPEN RESOLUTION" tells: The X/Open proposed behaviour is a temporary interpretation pending resolution by the IEEE. The "... Problem Text
Therefore the Interpretation Request VWG/008/063092 exists, in which
the item "OPEN RESOLUTION" tells:
The X/Open proposed behaviour is a temporary interpretation pending
resolution by the IEEE.
The "Test Suite Status" tells:
Retain a documented grey area where it has not yet been resolved and
X/Open's recommendation was to leave the tests as they are.Test Output
400|156 9 1 18:06:07|IC Start
200|156 9 18:06:07|TP Start
520|156 9 12932 1 1|fcntl(F_GETLK) on write-locked file did not set lock struct
fields properly
220|156 9 1 18:06:07|FAIL
410|156 9 1 18:06:07|IC End
************************************************************************
/tset/POSIX.os/ioprim/fcntl/T.fcntl 9 Failed
Test Description:
A call to fcntl(fildes, F_GETLK, arg) shall provide a description of
the first file lock for the file fildes which blocks the lock
description pointed to by arg by overwriting the original lock
description contained in arg with a new lock description containing
the following information:
(i) the lock type l_type is set to type of file lock which blocks
the original lock description;
(ii) the value l_whence is set to SEEK_SET;
(iii) the value l_start is set to the offset of the blocking lock
relative to the start of the file;
(iv) the value l_len is set to the length of locked area;
(v) the value l_pid is set to the process-id of the process that
created the lock.
When l_whence is one of SEEK_SET, SEEK_CUR, SEEK_END
Posix Ref: Component FCNTL Assertion 6.5.2.2-14(A)
Test Strategy:
OPEN new file using creat()
WRITE 40 bytes to file
SET lock {F_WRLCK, SEEK_SET, 10, 15, 0} using fcntl(F_SETLK)
SET lock {F_WRLCK, SEEK_END, -10, 5, 0} using fcntl(F_SETLK)
CREATE child process
VERIFY that fcntl(F_GETLK) with lock description {F_RDLCK, SEEK_SET,
0, 37, 0} gives lock description {F_WRLCK, SEEK_SET, 10, 15,
getppid()}
SET the current file pointer to 20 using lseek()
VERIFY that fcntl(F_GETLK) with lock description {F_RDLCK, SEEK_CUR,
-10, 37, 0} gives lock description {F_WRLCK, SEEK_SET, 10, 15,
getppid()}
VERIFY that fcntl(F_GETLK) with lock description {F_RDLCK, SEEK_END,
-30, 37, 0} gives lock description {F_WRLCK, SEEK_SET, 10, 15,
getppid()}
Test Information:
fcntl(F_GETLK) on write-locked file did not set lock struct fields
properly
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
The cited interpretation deals with the coalescing of locks which is agreed
not to be necessary. However, according to the strategy shown above the
locks are applied to the regions from byte 10 to 24 and from byte 30 to 34.
Since these regions are not adjacent, the locks will not be subject to
possible coalescing and the argument cited in VWG/008/063092 will not apply.
It is also noted that this interpretation was raised against VSX3.205 but
not against the test number for which this interpretation is requested.
It is not recommended that this request be granted on the evidence
provided.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This interpretation request is refused.
Problem Reporting System Options:
- View Report 0401
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority