OSDN Git Service

2007-06-08 Francesco Palagi <palagi@arcetri.astro.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jun 2007 13:16:38 +0000 (13:16 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jun 2007 13:16:38 +0000 (13:16 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/fstream

index 3209524..d7f5525 100644 (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
index 18c24be..fb56412 100644 (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);