This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH Newlib]Call _fflush_r instead of _fclose_r when cleanup if --enable-lite-exit is in effect


Hi,
Currently there is a FIXME in _cleanup_r in newlib, saying we may want to
call _fflush_r instead of _fclose_r.  This patch fixes the problem by using
--enable-lite-exit.  It makes sense to call light weight function _fflush_r
when lite exit is in effect.

Build and link with/without --enable-lite-exit.  Is it OK?

Thanks,
bin

2014-09-05  Bin Cheng  <bin.cheng@arm.com>

	* libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when
configuration
	option "--enable-lite-exit" is in effect.  Refactor the code.

Attachment: cleanup_lite_exit-20140905.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]