|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1304 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 1304.
Report 1304 Actions
Problem Report Number 1304 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0586 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-06-22 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSU version 5.0.2 Test Identification CAPIbase/lockf 42,43,44 Problem Summary TSD4U.00232 May fail due to missing #include of libgen.h. Problem Text
These tests all fail in the 64-bit environment due to the lack of
inclusion of <libgen.h> which is needed for the declaration of the
basename() function used in the tests. The basename() function
returns a char *, however, because it is not first declared (via
inclusion of the header), the compiler implicitly declares it's
return value as an int. In our 64-bit environment, this in turn
results in the compiler sign-extending the second argument to
execl():
execl(path1, basename(path1), "GET_OFFT_SIZE", (char *)0);
This results in an invalid value being passed to the execl() function
and hence the EFAULT error. If the appropriate test files are corrected
to include <libgen.h>, the tests successfully complete.
Test Output
TEST CASE: lockf
TEST PURPOSE #42
If the implementation allows creation of a file
description with an offset maximum less than the
largest size it supports for an off_t:
EOVERFLOW in errno and return -1 on a call to int
lockf(int fildes, int function, off_t size) when the
offset of the first byte in the requested section
cannot be represented correctly in an object of type
off_t.
PREP: Check for existence of programming environments
PREP: Obtain off_t size in XBS5_ILP32_OFF32 environment
execl failed to execute /export/home/vsu/CAPI/tset/CAPIbase/flockf/t42smloff1, errno = 14(EFAULT -
Bad address)
42 UNRESOLVED
TEST PURPOSE #43
EOVERFLOW in errno and return -1 on a call to int
lockf(int fildes, int function, off_t size) when size
is not 0 and the offset of the last byte in the
requested section cannot be represented correctly in
an object of type off_t.
PREP: Check for existence of programming environments
PREP: Obtain off_t size in XBS5_ILP32_OFF32 environment
execl failed to execute /export/home/vsu/CAPI/tset/CAPIbase/flockf/t43smloff1, errno = 14(EFAULT -
Bad address)
43 UNRESOLVED
TEST PURPOSE #44
If the implementation allows creation of a file
description with an offset maximum less than the
largest size it supports for an off_t:
A call to int lockf(int fildes, int function, off_t
size) when function is F_UNLOCK, size is non-zero, the
offset of the last byte of the requested section is
the maximum value for an object of type off_t, and the
process has an existing lock in which size is 0 and
which includes the last byte of the requested section
shall be equivalent to a request to unlock from the
start of the requested sections with a size equal to 0.
PREP: Check for existence of programming environments
PREP: Obtain off_t size in XBS5_ILP32_OFF32 environment
execl failed to execute /export/home/vsu/CAPI/tset/CAPIbase/flockf/t44smloff1, errno = 14(EFAULT -
Bad address)
44 UNRESOLVEDReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a Test Suite Deficiency in the test suite version listed.
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 1304
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority