summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libio/filedoalloc.c
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-15 07:33:00 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-15 07:33:00 +0000
commitd0896cfe769309bddc285f81503868d3b715c8dc (patch)
tree89ac49e996bad10bbe476c96c7b956f2cc858d99 /libstdc++-v3/libio/filedoalloc.c
parent442d2ce97ccd42d6a0909e4009404726bd10bc3b (diff)
downloadgcc-d0896cfe769309bddc285f81503868d3b715c8dc.tar.gz
2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
C/C++ io merge/sync. * libio/fileops.c * libio/genops.c * libio/iofclose.c * libio/iofopen.c * libio/iofwide.c * libio/libio.h * libio/libioP.h * libio/stdio.c * libio/wfileops.c * libio/wgenops.c * config/c_io_libio.cc (__basic_file): Add hacky casts to ((struct _IO_FILE_plus *) in ctors. (__basic_file<wchar_t>): Adjust _wide_data->_codecvt to just _codecvt. * libio/Makefile.am: Fix copyright. Remove cleanup.c. * libio/cleanup.c: Remove. * libio/filedoalloc.c (_IO_file_doallocate): Don't call _IO_cleanup_registration_needed, even if not libc. * testsuite/27_io/stringstream.cc (test02): Fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libio/filedoalloc.c')
-rw-r--r--libstdc++-v3/libio/filedoalloc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libstdc++-v3/libio/filedoalloc.c b/libstdc++-v3/libio/filedoalloc.c
index 6abab602d16..12c1135bcbe 100644
--- a/libstdc++-v3/libio/filedoalloc.c
+++ b/libstdc++-v3/libio/filedoalloc.c
@@ -75,15 +75,6 @@ _IO_file_doallocate (fp)
char *p;
struct _G_stat64 st;
-#ifndef _LIBC
- /* If _IO_cleanup_registration_needed is non-zero, we should call the
- function it points to. This is to make sure _IO_cleanup gets called
- on exit. We call it from _IO_file_doallocate, since that is likely
- to get called by any program that does buffered I/O. */
- if (_IO_cleanup_registration_needed)
- (*_IO_cleanup_registration_needed) ();
-#endif
-
if (fp->_fileno < 0 || _IO_SYSSTAT (fp, &st) < 0)
{
couldbetty = 0;