View Issue Details

IDProjectCategoryView StatusLast Update
00001221003.1(2008)/Issue 7System Interfacespublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionftell
Page Number956
Line Number32054, 32056
Interp Status---
Final Accepted Text
Summary0000122: ESPIPE inconsistencies
DescriptionThere are some inconsistencies between the ESPIPE errors for the
various stream I/O seek functions.

For ftell() there is a "shall fail" ESPIPE for pipes and FIFOs,
and a "may fail" ESPIPE for sockets.

For ftello() there is a "shall fail" ESPIPE for pipes and FIFOs,
and no ESPIPE for sockets.

For fgetpos() there is a "may fail" ESPIPE for all three file types.

For fseek() and fseeko() there is a "shall fail" ESPIPE for pipes and
FIFOs, and no ESPIPE for sockets.

For fsetpos() there is a "shall fail" ESPIPE for all three file types.

Presumably where an ESPIPE for sockets is omitted this is simply an
oversight. For ftell() I can see no reason for the ESPIPE
requirements to be different for sockets than for pipes and FIFOs.
Likewise the requirements for fgetpos() should be the same as for
ftell() and ftello().

A related problem is that EBADF is "may fail" for fgetpos() but
"shall fail" for all the other functions.
Desired ActionOn line 32054 change "pipe or FIFO" to "pipe, FIFO, or socket".

Delete lines 32055 and 32056 (ftell "may fail" text and ESPIPE).

On the fgetpos() page delete line 28249 ("may fail" text) and
move EBADF to the beginning of the errors list.

On the fseek() page at line 31450 change "pipe or FIFO" to "pipe,
FIFO, or socket".
Tagstc1-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2009-07-13 15:43 geoffclare New Issue
2009-07-13 15:43 geoffclare Status New => Under Review
2009-07-13 15:43 geoffclare Assigned To => ajosey
2009-07-13 15:43 geoffclare Name => Geoff Clare
2009-07-13 15:43 geoffclare Organization => The Open Group
2009-07-13 15:43 geoffclare Section => ftell
2009-07-13 15:43 geoffclare Page Number => 956
2009-07-13 15:43 geoffclare Line Number => 32054, 32056
2009-08-20 15:18 ajosey Interp Status => ---
2009-08-20 15:18 ajosey Status Under Review => Resolved
2009-08-20 15:18 ajosey Resolution Open => Accepted
2010-08-27 13:16 ajosey Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed