From 6906cea4cc14c72110dc35c625491d482d4caef1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 4 Aug 2001 08:05:56 +0000 Subject: Update. 2001-08-04 Ulrich Drepper * libio/genops.c (_IO_unbuffer_write): Force streams in narrow orientation so that conversion modules aren't used anymore. * malloc/set-freeres.c: Call _IO_cleanup before running subfreeres functions to avoid using wide streams afterwards. * iconvdata/Makefile: Add rules to build GEORGIAN-PS and GEORGIAN-ACADEMY. * iconvdata/georgian-ps.c: New file. * iconvdata/georgian-academy.c: New file. * iconvdata/gconv-modules: Add entries for GEORGIAN-PS and GEORGIAN-ACADEMY. * iconvdata/tst-tables.sh: Add GEORGIAN-PS and GEORGIAN-ACADEMY. --- malloc/set-freeres.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'malloc/set-freeres.c') diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c index 1724070704..d836d0c1bf 100644 --- a/malloc/set-freeres.c +++ b/malloc/set-freeres.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,6 +21,10 @@ #include #include +#ifdef USE_IN_LIBIO +# include "../libio/libioP.h" +#endif + DEFINE_HOOK (__libc_subfreeres, (void)); void @@ -31,5 +35,11 @@ __libc_freeres (void) static long int already_called; if (compare_and_swap (&already_called, 0, 1)) - RUN_HOOK (__libc_subfreeres, ()); + { +#ifdef USE_IN_LIBIO + _IO_cleanup (); +#endif + + RUN_HOOK (__libc_subfreeres, ()); + } } -- cgit 1.4.1