|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1604 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 1604.
Report 1604 Actions
Problem Report Number 1604 Submitter's Classification Specification problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0161 Raised 1995-04-22 08:00 Updated 2003-03-13 08:00 Published 1996-04-26 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/devclass/tcgetsid 2 Specification System Interfaces and Libraries Issue 4 Version 2 Location in Spec See Problem Text Problem Summary PIN4U.00027 This test may fail on IUTs which return ENOTTY instead of EACCESS. ENOTTY is consistent with POSIX tcgetpgrp()/tcsetpgrp() behavior. Problem Text
This test may fail on IUTs which return ENOTTY instead of EACCESS.
ENOTTY is consistent with POSIX tcgetpgrp()/tcsetpgrp() behavior.
The following is a recent Base resolution concerning error codes
for tcgetsid. We request a PIN is raised to cover this issue.
> ______________________________________________________________________
> +Resolution Request ref : 1170/163
> Publication : XSH4 V2
> Interface : tcgetsid
> Date requested : 19.12.95
> Status : Closed
> _______________________________________________________________________
> [Request text starts]
>
> tcgetsid() has the error case
>
> [EACCESS] The fildes argument is not associated with a
> controlling terminal
>
> This seems to be inconsistent with the POSIX functions
> tcgetpgrp() and tcsetpgrp() which define
>
> [ENOTTY] The calling process does not have a controlling terminal,
> or the file is not the controlling terminal.
>
> Also other POSIX.1 tc* functions do not define an EACCESS error
> condition.
>
> tcgetsid() should be consistent with the POSIX functions,
> and we'd propose the ENOTTY also be a permitted error for this
> case.
>
>
> [Request text ends]
>
>
> [Resolution response]
>
> X/Open Resolution:
>
> Implementations are allowed to return ENOTTY or EACCESS for this
> edition of the specification. It is recommended that this be
> revisited in the next revision of the specification.Test Output
TEST CASE: tcgetsid
TEST PURPOSE #2
EACCES in errno and return -1 on a call to pid_t
tcgetsid(int fildes) when fildes is not associated
with a controlling terminal.
PREP: Open master side of pseudo terminal
PREP: Create session
PREP: Open slave side of pty as non-controlling terminal
TEST: tcgetsid returns -1 for slave side
TEST: tcgetsid placed EACCES in errno
ERROR: tcgetsid set errno to 25(ENOTTY - Not a typewriter)
2 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 1604
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority