|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0340 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 0340.
Report 0340 Actions
Problem Report Number 0340 Submitter's Classification Specification problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0056 Raised 1996-02-05 08:00 Updated 2003-03-13 08:00 Published 1996-03-06 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite Unknown version N/A Test Identification N/A Specification System Interfaces and Headers Issue 4 Location in Spec See Problem Text Problem Summary PIN4.056 BACKGROUND: This interpretation relates to the shared memory interface defined in XPG4 The size argument to shmget() is used to specify the size of a shared memory segment. In the X/Open specification... Problem Text
BACKGROUND:
This interpretation relates to the shared memory interface defined in XPG4
The size argument to shmget() is used to specify the size of a shared memory
segment.
In the X/Open specification, the size argument type is a size_t.
Shmctl() provides an option to get the size of an existing shared memory
segment.
The size is returned in the shm_segsz field of the shmid_ds structure.
X/Open specifies the type of shm_segsz to be an int.
OBSERVATION:
The two variables do not have the same type. This appear to be an error
introduced
at the time the interface was adopted into XPG4.
INTERPRETATION:
We request an interpretation that implementations where shm_segsz is of type
size_t is ALSO
accepted as compliant.Test Output Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This interpretation does not reference any test failures or provide any
test results which suggests that this is not currently causing a problem
with the test suites or with applications.
The change would only affect systems where the size_t type is set to a value
different from int, in which case there is the possibility of truncation on
assignment from the structure element to/from the function argument. It is
not believed that this is likely to be an issue on 32 bit systems, but is
likely to be an issue with 64 bit systems where it is more likely that the
sizes of int and size_t would differ.
The change certainly seems sensible, but this is really in the province of the
Base working group to provide a recommendation. I would suggest that this is
forwarded for a 14 day review.No Discussion comments in this Review.
Review Type Expert Group Review Start Date null Completed null Status Complete Review Resolution No Resolution Given Review Conclusion
The Base WG recommends that a PIN be granted for this issue. The group
recommends that a future revision of XSH will specify shm_segsz as a type
size_t.
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:
- View Report 0340
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority