aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/fstream
diff options
context:
space:
mode:
authorFrancesco Palagi <palagi@arcetri.astro.it>2007-06-08 15:16:38 +0200
committerPaolo Carlini <paolo@gcc.gnu.org>2007-06-08 13:16:38 +0000
commit9735f6ba52f51011cf81f8b6e438edae371177f3 (patch)
tree0193a21682b7a2ea346fdf91a05d7b2ffa289fad /libstdc++-v3/include/std/fstream
parent837a895482f11eb619aec3e7495469f5c3b09545 (diff)
downloadgcc-9735f6ba52f51011cf81f8b6e438edae371177f3.zip
gcc-9735f6ba52f51011cf81f8b6e438edae371177f3.tar.gz
gcc-9735f6ba52f51011cf81f8b6e438edae371177f3.tar.bz2
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
Diffstat (limited to 'libstdc++-v3/include/std/fstream')
-rw-r--r--libstdc++-v3/include/std/fstream27
1 files changed, 24 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/fstream b/libstdc++-v3/include/std/fstream
index 18c24be..fb56412 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);