diff options
author | Jonathan Wakely <redi@gcc.gnu.org> | 2004-05-19 09:31:07 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2004-05-19 09:31:07 +0100 |
commit | c6618c0336a1c272391cf097b99e1bca019ed847 (patch) | |
tree | 9301346dd0168a45fe5d7d78f10b6a25dc98ffe1 | |
parent | 6af8eb5714109ffd15a57023ae7e2679d567e792 (diff) | |
download | gcc-c6618c0336a1c272391cf097b99e1bca019ed847.zip gcc-c6618c0336a1c272391cf097b99e1bca019ed847.tar.gz gcc-c6618c0336a1c272391cf097b99e1bca019ed847.tar.bz2 |
re PR libstdc++/11691 (stdio_filebuf leaks FILE buffer when "no close" is requested)
2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
* include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
From-SVN: r82019
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/stdio_filebuf.h | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6896f16..867dad6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2004-05-18 Jonathan Wakely <redi@gcc.gnu.org> + + * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691. + 2004-05-18 Jan Beulich <jbeulich@novell.com> PR libstdc++/15489 diff --git a/libstdc++-v3/include/ext/stdio_filebuf.h b/libstdc++-v3/include/ext/stdio_filebuf.h index 19649296..0461989 100644 --- a/libstdc++-v3/include/ext/stdio_filebuf.h +++ b/libstdc++-v3/include/ext/stdio_filebuf.h @@ -68,7 +68,8 @@ namespace __gnu_cxx * @param size Optimal or preferred size of internal buffer, in chars. * * This constructor associates a file stream buffer with an open - * POSIX file descriptor. + * POSIX file descriptor. The file descriptor will be automatically + * closed when the stdio_filebuf is closed/destroyed. */ stdio_filebuf(int __fd, std::ios_base::openmode __mode, size_t __size = static_cast<size_t>(BUFSIZ)); @@ -87,8 +88,8 @@ namespace __gnu_cxx size_t __size = static_cast<size_t>(BUFSIZ)); /** - * Possibly closes the external data stream, in the case of the file - * descriptor constructor and @c del @c == @c true. + * Closes the external data stream if the file descriptor constructor + * was used. */ virtual ~stdio_filebuf(); |