View Issue Details

IDProjectCategoryView StatusLast Update
00005571003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfprintf, fwprintf
Page Number899, 979
Line Number30006, 32818
Interp Status---
Final Accepted Text
Summary0000557: f[w]printf EINVAL and undefined behaviour
DescriptionThe descriptions of fprintf() and fwprintf() say "The results are
undefined if there are insufficient arguments for the format."
However, the ERRORS section on each of those pages also specifies
a "may fail" EINVAL error for this condition.

This is the same problem that many pthread functions used to have,
and it was solved by removing the "may fail" errors and adding
rationale recommending what implementations should do if they detect
the error.
Desired ActionAt page 899 line 30005 delete the lines:

    In addition, all forms of fprintf() may fail if:

    [EINVAL] There are insufficient arguments.

At page 904 line 30225 change the RATIONALE section from:

    None

to:

    If an implementation detects that there are insufficient arguments
    for the format, it is recommended that the function should fail
    and report an [EINVAL] error.

At page 979 line 32817 delete the lines:

    In addition, all forms of fwprintf() may fail if:

    [EINVAL] There are insufficient arguments.

At page 979 line 32838 change the RATIONALE section from:

    None

to:

    If an implementation detects that there are insufficient arguments
    for the format, it is recommended that the function should fail
    and report an [EINVAL] error.
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-04-25 15:41 geoffclare New Issue
2012-04-25 15:41 geoffclare Status New => Under Review
2012-04-25 15:41 geoffclare Assigned To => ajosey
2012-04-25 15:41 geoffclare Name => Geoff Clare
2012-04-25 15:41 geoffclare Organization => The Open Group
2012-04-25 15:41 geoffclare Section => fprintf, fwprintf
2012-04-25 15:41 geoffclare Page Number => 899, 979
2012-04-25 15:41 geoffclare Line Number => 30006, 32818
2012-04-25 15:41 geoffclare Interp Status => ---
2012-05-10 15:33 nick Status Under Review => Resolved
2012-05-10 15:33 nick Resolution Open => Accepted
2012-05-10 15:33 nick Desired Action Updated
2012-05-10 15:33 nick Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed