Anonymous | Login | 2024-04-20 11:27 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000589 | [1003.1(2008)/Issue 7] System Interfaces | Objection | Error | 2012-06-25 16:10 | 2019-06-10 08:55 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | fileno | ||||||
Page Number | 858 | ||||||
Line Number | 28463 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000589: fileno() EBADF error needs updating | ||||||
Description |
The fileno() ERRORS section has an optional EBADF error: The stream argument is not a valid stream, or the stream is not associated with a file. Now that the standard has fmemopen() and open_[w]memstream(), implementations are required to support streams that are not associated with a file. Therefore, the second part of this condition should be made mandatory. I also propose that the first part is changed for consistency with fgetc() and fputc(), whose EBADF errors are of the form "The file descriptor underlying stream is not a valid file descriptor open for reading" (for fgetc(); "... writing" for fputc()). |
||||||
Desired Action |
Replace the entire ERRORS section with:The fileno() function shall fail if: [EBADF] The stream is not associated with a file. The fileno() function may fail if: [EBADF] The file descriptor underlying stream is not a valid file descriptor. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |