|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1585 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 1585.
Report 1585 Actions
Problem Report Number 1585 Submitter's Classification Test Suite problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0142 Raised 1995-09-06 08:00 Updated 2003-03-13 08:00 Published 1995-11-08 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification CAPI.os/mman/mmap 20 Specification System Interfaces and Libraries Issue 4 Version 2 Location in Spec See Problem Text Problem Summary PIN4U.00008 Conditions leading to an ENXIO error should be UNTESTED. Problem Text
See Base resolution 1170/12. The test strategy is incorrect.
The test determines the hard RLIMIT_FSIZE for a test file, sets the
offset for the mmap call much greater than this and then makes an mmap
call expecting an ENXIO error. RLIMIT_FSIZE should have no effect on the
success or failure of mmap since RLIMIT_FSIZE controls the ability to
extend a file, it does not control the ability to read or write into
existing parts of the file. mmap never extends the file so RLIMIT_FSIZE
is irrelevent.Test Output
TEST PURPOSE #20
If the implementation does not inhibit enforcement of
limits for the resource RLIMIT_FSIZE:
ENXIO in errno and return -1 on a call to void
*mmap(void *addr, size_t len, int prot, int flags, int
fildes, off_t off) when addresses in the range [off,
(off+len)] are invalid for fildes.
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
PREP: Establish signal handlers for SIGSEGV and SIGBUS
PREP: Open a file and initialize it
PREP: Allocate memory for buffer
PREP: Now set proper permissions and re-open file
PREP: Obtain the maximum size of a file
TEST: Return -1 when the range [off,off+len] is
invalid for the file descriptor
ERROR: mmap() did not return -1
Expected :-1 Received: bff9a000
20 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
A permanent interpretation is recommended.
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 1585
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority