gcc/libstdc++-v3/include/ext
Paolo Carlini dfad48c6e8 re PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf())
2003-11-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12875
	* include/bits/fstream.tcc (setbuf): Don't do anything
	after open(), in particular don't discard data.
	(_M_allocate_internal_buffer): Tweak to not allocate memory
	in case the buffer is provided by the user via setbuf.
	* include/ext/stdio_filebuf.h: Tweak comment.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
	setbuf does nothing after open().
	* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.

From-SVN: r73477
2003-11-12 01:14:34 +00:00
..
algorithm [multiple changes] 2003-11-11 20:09:16 +00:00
debug_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
enc_filebuf.h Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
functional stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
hash_fun.h stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
hash_map hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries. 2003-07-16 14:23:08 +00:00
hash_set hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries. 2003-07-16 14:23:08 +00:00
hashtable.h stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
iterator Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
malloc_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
memory stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
mt_allocator.h mt_allocator.h: Change include to gthr.h. 2003-10-21 18:01:37 +00:00
new_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
numeric Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
pod_char_traits.h re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
pool_allocator.h mt_allocator.h: Change include to gthr.h. 2003-10-21 18:01:37 +00:00
rb_tree stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
rope mt_allocator.h: Change include to gthr.h. 2003-10-21 18:01:37 +00:00
ropeimpl.h ropeimpl.h: #include <ostream> instead of <iostream> 2003-08-19 08:03:09 +00:00
slist Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
stdio_filebuf.h re PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf()) 2003-11-12 01:14:34 +00:00
stdio_sync_filebuf.h stdio_sync_filebuf.h: Don't include the whole <fstream>, only <streambuf> and <cstdio>. 2003-10-04 10:51:34 +00:00