Commit c6618c03 by Jonathan Wakely

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
parent 6af8eb57
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> 2004-05-18 Jan Beulich <jbeulich@novell.com>
PR libstdc++/15489 PR libstdc++/15489
......
...@@ -68,7 +68,8 @@ namespace __gnu_cxx ...@@ -68,7 +68,8 @@ namespace __gnu_cxx
* @param size Optimal or preferred size of internal buffer, in chars. * @param size Optimal or preferred size of internal buffer, in chars.
* *
* This constructor associates a file stream buffer with an open * 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, stdio_filebuf(int __fd, std::ios_base::openmode __mode,
size_t __size = static_cast<size_t>(BUFSIZ)); size_t __size = static_cast<size_t>(BUFSIZ));
...@@ -87,8 +88,8 @@ namespace __gnu_cxx ...@@ -87,8 +88,8 @@ namespace __gnu_cxx
size_t __size = static_cast<size_t>(BUFSIZ)); size_t __size = static_cast<size_t>(BUFSIZ));
/** /**
* Possibly closes the external data stream, in the case of the file * Closes the external data stream if the file descriptor constructor
* descriptor constructor and @c del @c == @c true. * was used.
*/ */
virtual virtual
~stdio_filebuf(); ~stdio_filebuf();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment