Austin Group Defect Tracker

Aardvark Mark IV


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

- Relationships

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker