|Anonymous | Login||2021-01-16 04:46 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001414||[1003.1(2016/18)/Issue7+TC2] System Interfaces||Objection||Clarification Requested||2020-10-25 17:51||2020-10-26 10:35|
|Page Number||1821 (for info: in 202x d1.1 it is page 1740)|
|Line Number||90114 (in 202x d1.1 it is line 57200)|
|Final Accepted Text|
|Summary||0001414: rewind() clears the error indicator, but when?|
rewind() is defined to be (void) fseek(stream, 0L, SEEK_SET)
(line 90114): except that rewind() shall also clear the error indicator.
That's fine, as it stands, but nothing here says whether the error
indicator is cleared before, or after, the fseek() call (or whatever
equivalent code the implementation uses in its stead).
This matters if the fseek() call sets the error indicator, which it can do.
Now we all know that the error indicator (after a rewind()) is always clear,
so it must be cleared after the fseek() (or equivalent) happens. But what
"we all know" is not in the standard, and should be.
In line 90114 (quoted in the description) insert the word "subsequently"
between the words "also" and "clear" to produce:
except that rewind() shall also subsequently clear the error indicator.
|The text in question is derived directly from C99, so we should liaise with the C committee on this issue.|
|2020-10-25 17:51||kre||New Issue|
|2020-10-25 17:51||kre||Name||=> Robert Elz|
|2020-10-25 17:51||kre||Section||=> XSH 3.rewind|
|2020-10-25 17:51||kre||Page Number||=> 1821 (for info: in 202x d1.1 it is page 1740)|
|2020-10-25 17:51||kre||Line Number||=> 90114 (in 202x d1.1 it is line 57200)|
|2020-10-26 10:34||geoffclare||Tag Attached: c99|
|2020-10-26 10:35||geoffclare||Note Added: 0005064|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|