mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* malloc/set-freeres.c: Really use already_called variable.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
1999-12-01 Ulrich Drepper <drepper@cygnus.com>
|
1999-12-01 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* malloc/set-freeres.c: Really use already_called variable.
|
||||||
|
|
||||||
* libio/iosetbuffer.c: Use _IO_WSETBUF instead of constructing
|
* libio/iosetbuffer.c: Use _IO_WSETBUF instead of constructing
|
||||||
function call directly.
|
function call directly.
|
||||||
* libio/iosetvbuf.c: Likewise.
|
* libio/iosetvbuf.c: Likewise.
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
1999-12-01 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* proc_service.h: Add ps_pstop, ps_pcontinue, ps_lstop, and
|
||||||
|
ps_lcontinue prototypes.
|
||||||
|
|
||||||
1999-11-23 Ulrich Drepper <drepper@cygnus.com>
|
1999-11-23 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* Makefile: Correct dependency for shared object.
|
* Makefile: Correct dependency for shared object.
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <atomicity.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <set-hooks.h>
|
#include <set-hooks.h>
|
||||||
|
|
||||||
@@ -26,8 +27,8 @@ __libc_freeres (void)
|
|||||||
{
|
{
|
||||||
/* This function might be called from different places. So better
|
/* This function might be called from different places. So better
|
||||||
protect for multiple executions since these are fatal. */
|
protect for multiple executions since these are fatal. */
|
||||||
static int already_called;
|
static long int already_called;
|
||||||
|
|
||||||
if (!already_called)
|
if (compare_and_swap (&already_called, 0, 1))
|
||||||
RUN_HOOK (__libc_subfreeres, ());
|
RUN_HOOK (__libc_subfreeres, ());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user