View Issue Details

IDProjectCategoryView StatusLast Update
00012491003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:08
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfsetpos()
Page Number960
Line Number32633
Interp Status---
Final Accepted Text
Summary0001249: fsetpos() "state indicator" text does not match C99
DescriptionThe description of fsetpos() says it "shall set the file position and
state indicators for the stream". It is not clear what "state indicator"
is intended to mean, but this text isn't shaded CX so presumably the
intention is to require the same thing as C99, which is that fsetpos() sets
"the mbstate_t object (if any)" for the stream.

Note that "indicators" is plural because it is referring to the file
position indicator and the state indicator, not because there is more
than one state indicator. (I.e. it is not referring to the eof and
error indicators, which a reader might otherwise assume based on the
plural.)

There are also some minor differences between the paragraph at line
32637 and the equivalent C99 paragraph.
Desired ActionOn page 960 line 32633 section fsetpos(), change:
The fsetpos() function shall set the file position and state indicators for the stream ...
to:
The fsetpos() function shall set the mbstate_t object (if any) and file position indicator for the stream ...

On page 960 line 32637 section fsetpos(), change:
A successful call to the fsetpos() function shall clear the end-of-file indicator for the stream and undo any effects of ungetc() on the same stream. After an fsetpos() call, the next operation on an update stream may be either input or output.
to:
A successful call to the fsetpos() function shall undo any effects of the ungetc() function on the stream, clear the end-of-file indicator for the stream, and then establish the new parse state and position. After a successful fsetpos() call, the next operation on an update stream can be either input or output.
Tagstc3-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-05-10 11:21 geoffclare New Issue
2019-05-10 11:21 geoffclare Name => Geoff Clare
2019-05-10 11:21 geoffclare Organization => The Open Group
2019-05-10 11:21 geoffclare Section => fsetpos()
2019-05-10 11:21 geoffclare Page Number => 960
2019-05-10 11:21 geoffclare Line Number => 32633
2019-05-10 11:21 geoffclare Interp Status => ---
2019-06-27 16:13 nick Status New => Resolved
2019-06-27 16:13 nick Resolution Open => Accepted
2019-06-27 16:13 nick Tag Attached: tc3-2008
2019-11-19 16:19 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed