fstream: Add Table 92 in comment.

2007-06-08  Francesco Palagi  <palagi@arcetri.astro.it>

	* include/std/fstream: Add Table 92 in comment.

From-SVN: r125571
This commit is contained in:
Francesco Palagi 2007-06-08 15:16:38 +02:00 committed by Paolo Carlini
parent 837a895482
commit 9735f6ba52
2 changed files with 28 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-06-08 Francesco Palagi <palagi@arcetri.astro.it>
* include/std/fstream: Add Table 92 in comment.
2007-06-06 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/32233

View File

@ -257,9 +257,30 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* Otherwise it tries to open the file named @a s using the flags
* given in @a mode.
*
* [Table 92 gives the relation between openmode combinations and the
* equivalent fopen() flags, but the table has not been copied yet.]
*/
* 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)
* +---------------------------------------------------------+
* | ios_base Flag combination stdio equivalent |
* |binary in out trunc app |
* +---------------------------------------------------------+
* | + "w" |
* | + + "a" |
* | + + "w" |
* | + "r" |
* | + + "r+" |
* | + + + "w+" |
* | + + + "a+" |
* +---------------------------------------------------------+
* | + + "wb" |
* | + + + "ab" |
* | + + + "wb" |
* | + + "rb" |
* | + + + "r+b" |
* | + + + + "w+b" |
* | + + + + "a+b" |
* +---------------------------------------------------------+
*/
__filebuf_type*
open(const char* __s, ios_base::openmode __mode);