View Issue Details

IDProjectCategoryView StatusLast Update
00005891003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfileno
Page Number858
Line Number28463
Interp Status---
Final Accepted Text
Summary0000589: fileno() EBADF error needs updating
DescriptionThe 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 ActionReplace 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.

Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-06-25 16:10 geoffclare New Issue
2012-06-25 16:10 geoffclare Status New => Under Review
2012-06-25 16:10 geoffclare Assigned To => ajosey
2012-06-25 16:10 geoffclare Name => Geoff Clare
2012-06-25 16:10 geoffclare Organization => The Open Group
2012-06-25 16:10 geoffclare Section => fileno
2012-06-25 16:10 geoffclare Page Number => 858
2012-06-25 16:10 geoffclare Line Number => 28463
2012-06-25 16:10 geoffclare Interp Status => ---
2012-06-28 16:31 eblake Status Under Review => Resolved
2012-06-28 16:31 eblake Resolution Open => Accepted
2012-06-28 16:31 eblake Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed