diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-08 13:16:38 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-08 13:16:38 +0000 |
| commit | 4423d8a557529c724448117d3ce2a99fe78b42f3 (patch) | |
| tree | 0193a21682b7a2ea346fdf91a05d7b2ffa289fad | |
| parent | 56c90f67e507207edc9514c70f8202b86a2d4caf (diff) | |
| download | ppe42-gcc-4423d8a557529c724448117d3ce2a99fe78b42f3.tar.gz ppe42-gcc-4423d8a557529c724448117d3ce2a99fe78b42f3.zip | |
2007-06-08 Francesco Palagi <palagi@arcetri.astro.it>
* include/std/fstream: Add Table 92 in comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125571 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
| -rw-r--r-- | libstdc++-v3/include/std/fstream | 27 |
2 files changed, 28 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3209524d919..d7f55253073 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/include/std/fstream b/libstdc++-v3/include/std/fstream index 18c24be4633..fb56412b212 100644 --- a/libstdc++-v3/include/std/fstream +++ b/libstdc++-v3/include/std/fstream @@ -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); |

