From c6baa867d3d57ca3eb89226b44ad696960d869cd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Nov 2001 23:35:29 +0000 Subject: Update. 2001-11-28 Ulrich Drepper * libio/genops.c (_IO_flush_all_lockp): New function. The same code as the old _IO_flush_all but lock only if parameter is nonzero. (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter. * libio/libioP.h: Add prototype for _IO_flush_all_lockp. * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0) if libio is used. --- sysdeps/generic/abort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/abort.c b/sysdeps/generic/abort.c index 153faa1c5b..665bac6f0e 100644 --- a/sysdeps/generic/abort.c +++ b/sysdeps/generic/abort.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 93, 95, 96, 97, 98 Free Software Foundation, Inc. +/* Copyright (C) 1991, 93, 95, 96, 97, 98, 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 @@ -33,7 +33,7 @@ #ifdef USE_IN_LIBIO # include -# define fflush(s) _IO_fflush (s) +# define fflush(s) _IO_flush_all_lockp (0) #endif /* We must avoid to run in circles. Therefore we remember how far we -- cgit 1.4.1