From ec01f292364ce8183c0e17cc0a3eaca5c9a06842 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 8 Nov 2007 16:22:21 +0000 Subject: basic_file_stdio.cc (fopen_mode): Add modes missing per DR 596. 2007-11-08 Paolo Carlini * 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 --- libstdc++-v3/include/std/fstream | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libstdc++-v3/include') 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* -- cgit v1.1