Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
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 2019-06-10 08:55
Reporter jokearney View Status public  
Assigned To ajosey
Priority normal Resolution Accepted  
Status Closed  
Name John Kearney
Organization
User Reference tmpfile.iso.c
Section tmpfile
Page Number 2121
Line Number 67136
Interp Status ---
Final Accepted Text see Desired Action
Summary 0000678: Update tmpfile defintion to line up with ISO c88/89 c99 c11
Description http://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 Action 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.

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.

Tags tc2-2008
Attached Files

- Relationships

-  Notes
(0001539)
eblake (manager)
2013-04-12 22:28

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: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
2019-06-10 08:55 agadmin Status Resolved => Closed


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker