|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0343 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 0343.
Report 0343 Actions
Problem Report Number 0343 Submitter's Classification Specification problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0059 Raised 1997-09-16 08:00 Updated 2003-03-13 08:00 Published 1997-09-23 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.6 Test Identification XPG4.hdr/misc/shm 2 Specification System Interfaces and Headers Issue 4 Location in Spec See Problem Text Problem Summary PIN4.059 We believe that this failure is similar to PIN4.057 except for the following: The tests are being run on a 64-bit system where the shm_segsz type is defined as a size_t. On our implementation size_t i... Problem Text
We believe that this failure is similar to PIN4.057 except for the following:
The tests are being run on a 64-bit system where the shm_segsz type is defined
as a size_t. On our implementation size_t is defined in our 64-bit system as
a long (i.e. the shared memory segment size on a 64-bit system is a long).
References: XPG5,
ogtgbase archive 2628,
http://www.rdg.opengroup.org/unix/version2/whatsnew/datasize.htmlTest Output
200|708 2 16:05:15|TP Start
520|708 2 8559 4 1|Feature test macros: -D_XOPEN_SOURCE
520|708 2 8559 4 2|Compiler or run-time messages or results:
520|708 2 8559 4 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 4 4|Incorrect type: shm.shm_segsz
520|708 2 8559 4 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 4 6|should be: 4
520|708 2 8559 7 1|Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
520|708 2 8559 7 2|Compiler or run-time messages or results:
520|708 2 8559 7 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 7 4|Incorrect type: shm.shm_segsz
520|708 2 8559 7 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 7 6|should be: 4
520|708 2 8559 10 1|Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=1
520|708 2 8559 10 2|Compiler or run-time messages or results:
520|708 2 8559 10 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 10 4|Incorrect type: shm.shm_segsz
520|708 2 8559 10 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 10 6|should be: 4
520|708 2 8559 13 1|Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2
520|708 2 8559 13 2|Compiler or run-time messages or results:
520|708 2 8559 13 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 13 4|Incorrect type: shm.shm_segsz
520|708 2 8559 13 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 13 6|should be: 4
520|708 2 8559 16 1|Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
-D_POSIX_C_SOURCE=1
520|708 2 8559 16 2|Compiler or run-time messages or results:
520|708 2 8559 16 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 16 4|Incorrect type: shm.shm_segsz
520|708 2 8559 16 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 16 6|should be: 4
520|708 2 8559 19 1|Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
-D_POSIX_C_SOURCE=2
520|708 2 8559 19 2|Compiler or run-time messages or results:
520|708 2 8559 19 3|cc: "cc02es.c", line 44: warning 728: Assignment converts
long* to int* "shm_segszp".
520|708 2 8559 19 4|Incorrect type: shm.shm_segsz
520|708 2 8559 19 5|sizeof( shm.shm_segsz ): 8
520|708 2 8559 19 6|should be: 4
220|708 2 1 16:05:23|FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This request relates to a change in the type associated with the
shm_segsz member of the shm structure between issues XSH4.2 and XSH5.
There was an inconsistency in XSH4.2 which was pointed out in PIN4.057,
whereby the prototype for shmget() used a field of type size_t to source
data into the shm_segsz member. This problem is exacerbated in a 64-bit
system where the type size_t is likely to differ in size from an int.
This is not a fault in the test suite, as claimed, but a discrepency in
the XSH4.2 specification. The problem in question should not affect the
portability of source code applications, and it is recommended that a
Permanent Interpretation be granted.
The problem should not arise in XSH5, where the anomaly has been resolved
by changing the size of shm_segsz to 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 0343
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority