|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1483 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 1483.
Report 1483 Actions
Problem Report Number 1483 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0765 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-10-31 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.0.2 Test Identification base/ioctl 116 Problem Summary TSD4U.00048 The test may fail on implementations because ic_len is less than or equal to max_size. Problem Text
The test may fail on implementations because ic_len is less than or
equal to max_size.
I_STR Constructs an internal STREAMS ioctl() message from the data
pointed to by arg, and sends that message downstream.
To send requests downstream, arg must point to a strioctl
structure.
ic_len is the number of bytes in the data argument, and ic_dp is
a pointer to the data argument. The ic_len member has two uses:
on input, it contains the length of the data argument passed in,
and on return from the command, it contains the number of bytes
being returned to the process (the buffer pointed to by ic_dp
should be large enough to contain the maximum amount of data
that any module or the driver in the STREAM can return).
The STREAM head will convert the information pointed to by the
strioctl structure to an internal ioctl() command message and
send it downstream.
The ioctl() function with the I_STR command will fail if:
[EINVAL] The ic_len member is less than 0 or larger than the
maximum configured size of the data part of a message,
or ic_timout is less than -1.
"ic_len" needs to be set more than "max_size" (e.g. "max_size + 1")
instead of "max_size".
Test Output
/tset/CAPIbase/fioctl/fioctl116
TEST PURPOSE #116
EINVAL in errno and return -1 on a call to int
ioctl(int fildes, I_STR, struct strioctl *arg) when
fildes refers to a STREAMS device and the ic_len
member of the structure pointed to by arg is larger
than the maximum configured size of the data part of a
message.
PREP: Open master pseudo tty
PREP: Determine if pseudo tty is a stream
PREP: Open slave pseudo tty
PREP: Read VSU_STREAMS_MAX_DATA_SIZE configuration
PREP: Allocate large enough buffer
TEST: ioctl returns -1
TEST: ioctl sets errno to EINVAL
ERROR: ioctl set errno to 52(error not defined in XPG4V2)
116 FAIL
Review 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(s) 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 1483
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority