Avoid a fault from locking a closed standard file.
* libc/stdio/fflush.c (_fflush_r): Give up early if stream has been previously closed.
This commit is contained in:
parent
dc176ff60c
commit
d6438f13d1
|
@ -1,3 +1,9 @@
|
||||||
|
2009-07-22 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
Avoid a fault from locking a closed standard file.
|
||||||
|
* libc/stdio/fflush.c (_fflush_r): Give up early if stream has
|
||||||
|
been previously closed.
|
||||||
|
|
||||||
2009-07-09 Craig Howland <howland@LGSInnovations.com>
|
2009-07-09 Craig Howland <howland@LGSInnovations.com>
|
||||||
|
|
||||||
* libm/math/ef_scalb.c: Replace isnanf() (pre-C99 function call) with
|
* libm/math/ef_scalb.c: Replace isnanf() (pre-C99 function call) with
|
||||||
|
@ -1553,8 +1559,8 @@
|
||||||
be in sync with current kernels.
|
be in sync with current kernels.
|
||||||
|
|
||||||
2008-11-20 Ken Werner <ken.werner@de.ibm.com>
|
2008-11-20 Ken Werner <ken.werner@de.ibm.com>
|
||||||
Patrick Mansfield <patmans@us.ibm.com>
|
Patrick Mansfield <patmans@us.ibm.com>
|
||||||
Joel Schopp <jschopp@austin.ibm.com>
|
Joel Schopp <jschopp@austin.ibm.com>
|
||||||
|
|
||||||
* libc/machine/spu/configure.in: Add __ea detection.
|
* libc/machine/spu/configure.in: Add __ea detection.
|
||||||
* libc/machine/spu/Makefile.am: Add new files.
|
* libc/machine/spu/Makefile.am: Add new files.
|
||||||
|
@ -2347,7 +2353,7 @@
|
||||||
* libc/machine/spu/Makefile.am: Add new files.
|
* libc/machine/spu/Makefile.am: Add new files.
|
||||||
* libc/machine/spu/Makefile.in: Likewise.
|
* libc/machine/spu/Makefile.in: Likewise.
|
||||||
* libc/machine/spu/include/spu_timer.h: New file to add timer support
|
* libc/machine/spu/include/spu_timer.h: New file to add timer support
|
||||||
using interrupts.
|
using interrupts.
|
||||||
* libc/machine/spu/spu_clock_stop.c: Likewise.
|
* libc/machine/spu/spu_clock_stop.c: Likewise.
|
||||||
* libc/machine/spu/spu_clock_svcs.c: Likewise.
|
* libc/machine/spu/spu_clock_svcs.c: Likewise.
|
||||||
* libc/machine/spu/spu_timer_flih.S: Likewise.
|
* libc/machine/spu/spu_timer_flih.S: Likewise.
|
||||||
|
|
|
@ -93,6 +93,9 @@ _DEFUN(_fflush_r, (ptr, fp),
|
||||||
|
|
||||||
CHECK_INIT (ptr, fp);
|
CHECK_INIT (ptr, fp);
|
||||||
|
|
||||||
|
if (!fp->_flags)
|
||||||
|
return 0;
|
||||||
|
|
||||||
_flockfile (fp);
|
_flockfile (fp);
|
||||||
|
|
||||||
t = fp->_flags;
|
t = fp->_flags;
|
||||||
|
|
Loading…
Reference in New Issue