aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2007-11-08 16:22:21 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2007-11-08 16:22:21 +0000
commitec01f292364ce8183c0e17cc0a3eaca5c9a06842 (patch)
tree9a2c2ff8200875ea21507a390d66abed02b6242e /libstdc++-v3/include
parent8dc9f613eac2c3449d1b1d6269c811802cfe4b9c (diff)
downloadgcc-ec01f292364ce8183c0e17cc0a3eaca5c9a06842.zip
gcc-ec01f292364ce8183c0e17cc0a3eaca5c9a06842.tar.gz
gcc-ec01f292364ce8183c0e17cc0a3eaca5c9a06842.tar.bz2
basic_file_stdio.cc (fopen_mode): Add modes missing per DR 596.
2007-11-08 Paolo Carlini <pcarlini@suse.de> * config/io/basic_file_stdio.cc (fopen_mode): Add modes missing per DR 596. * testsuite/27_io/basic_filebuf/open/char/4.cc: Extend. * include/std/fstream: Update comment preceding open. * docs/html/ext/howto.html: Update. From-SVN: r130004
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/std/fstream7
1 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/fstream b/libstdc++-v3/include/std/fstream
index fb56412..af7635e 100644
--- a/libstdc++-v3/include/std/fstream
+++ b/libstdc++-v3/include/std/fstream
@@ -259,26 +259,31 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*
* Table 92, adapted here, gives the relation between openmode
* combinations and the equivalent fopen() flags.
- * (NB: lines in|out|app and binary|in|out|app per DR 596)
+ * (NB: lines app, in|out|app, in|app, binary|app, binary|in|out|app,
+ * and binary|in|app per DR 596)
* +---------------------------------------------------------+
* | ios_base Flag combination stdio equivalent |
* |binary in out trunc app |
* +---------------------------------------------------------+
* | + "w" |
* | + + "a" |
+ * | + "a" |
* | + + "w" |
* | + "r" |
* | + + "r+" |
* | + + + "w+" |
* | + + + "a+" |
+ * | + + "a+" |
* +---------------------------------------------------------+
* | + + "wb" |
* | + + + "ab" |
+ * | + + "ab" |
* | + + + "wb" |
* | + + "rb" |
* | + + + "r+b" |
* | + + + + "w+b" |
* | + + + + "a+b" |
+ * | + + + "a+b" |
* +---------------------------------------------------------+
*/
__filebuf_type*