|Anonymous | Login||2019-05-21 22:45 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0000678||[1003.1(2008)/Issue 7] Base Definitions and Headers||Editorial||Enhancement Request||2013-04-12 22:21||2013-04-18 16:13|
|Final Accepted Text||see Desired Action|
|Summary||0000678: Update tmpfile defintion to line up with ISO c88/89 c99 c11|
The following is miss-leading, "The file is opened as in fopen() for update (w+)"
All versions of ISO c specify that the file should be opened as binary as such it should read
The file is opened as in fopen() for update (wb+).
This is already implicitly the case as it defers to the ISO-C standard.
Request that the following text be updated in line with ISO C
The tmpfile() function shall create a temporary file and open a corresponding stream. The file shall be automatically deleted when all references to the file are closed. The file is opened as in fopen() for update (w+), except that implementations may restrict the permissions, either by clearing the file mode bits or setting them to the value S_IRUSR | S_IWUSR.
The tmpfile() function shall create a temporary file and open a corresponding stream. The file shall be automatically deleted when all references to the file are closed. The file is opened as in fopen() for update (wb+), except that implementations may restrict the permissions, either by clearing the file mode bits or setting them to the value S_IRUSR | S_IWUSR.
|Note that POSIX already has a <CX> requirement that for fopen(), "w+' and "wb+" behave identically in POSIX (it is only in C99 where they are not required to be identical, which is why the wb+ matters there). As such, your change is an editorial matter, and not a change in requirements; but I still agree that it makes sense for a minimum of confusion for people referring to POSIX documentation even on a non-POSIX system where binary files differ from text files.|
|2013-04-12 22:21||jokearney||New Issue|
|2013-04-12 22:21||jokearney||Status||New => Under Review|
|2013-04-12 22:21||jokearney||Assigned To||=> ajosey|
|2013-04-12 22:21||jokearney||Name||=> John Kearney|
|2013-04-12 22:21||jokearney||User Reference||=> tmpfile.iso.c|
|2013-04-12 22:21||jokearney||Section||=> (section number or name, can be interface name)|
|2013-04-12 22:21||jokearney||Page Number||=> (page or range of pages)|
|2013-04-12 22:21||jokearney||Line Number||=> (Line or range of lines)|
|2013-04-12 22:22||jokearney||Issue Monitored: jokearney|
|2013-04-12 22:28||eblake||Note Added: 0001539|
|2013-04-18 16:12||eblake||Interp Status||=> ---|
|2013-04-18 16:12||eblake||Final Accepted Text||=> see Desired Action|
|2013-04-18 16:12||eblake||Status||Under Review => Resolved|
|2013-04-18 16:12||eblake||Resolution||Open => Accepted|
|2013-04-18 16:12||eblake||Tag Attached: tc2-2008|
|2013-04-18 16:13||eblake||Section||(section number or name, can be interface name) => tmpfile|
|2013-04-18 16:13||eblake||Page Number||(page or range of pages) => 2121|
|2013-04-18 16:13||eblake||Line Number||(Line or range of lines) => 67136|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|