View Issue Details

IDProjectCategoryView StatusLast Update
00006781003.1(2008)/Issue 7Base Definitions and Headerspublic2019-06-10 08:55
Reporterjokearney Assigned Toajosey  
PrioritynormalSeverityEditorialTypeEnhancement Request
Status ClosedResolutionAccepted 
NameJohn Kearney
Organization
User Referencetmpfile.iso.c
Sectiontmpfile
Page Number2121
Line Number67136
Interp Status---
Final Accepted Textsee Desired Action
Summary0000678: Update tmpfile defintion to line up with ISO c88/89 c99 c11
Descriptionhttp://pubs.opengroup.org/onlinepubs/9699919799/functions/tmpfile.html

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.
Desired ActionRequest 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.

to

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.

Tagstc2-2008

Activities

eblake

2013-04-12 22:28

manager   bugnote:0001539

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.

Issue History

Date Modified Username Field Change
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: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
2019-06-10 08:55 agadmin Status Resolved => Closed