src/newlib ChangeLog libc/stdio/fclose.c libc/ ...
corinna@sourceware.org
corinna@sourceware.org
Fri Jan 17 10:55:00 GMT 2014
CVSROOT: /cvs/src
Module name: src
Changes by: corinna@sourceware.org 2014-01-17 10:55:32
Modified files:
newlib : ChangeLog
newlib/libc/stdio: fclose.c fflush.c findfp.c local.h
Log message:
Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
semantics from POSIX to BSD.
* libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on
_STDIO_BSD_SEMANTICS. Call __sflush_r rather than _fflush_r. Add
comment.
* libc/stdio/fflush.c (__sflushw_r): New function, only available
if _STDIO_BSD_SEMANTICS is defined.
* libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than
_fwalk. Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS.
Add comments. Add FIXME.
* libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is
defined.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1892&r2=1.1893
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/fclose.c.diff?cvsroot=src&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/fflush.c.diff?cvsroot=src&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/findfp.c.diff?cvsroot=src&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdio/local.h.diff?cvsroot=src&r1=1.38&r2=1.39
More information about the Newlib-cvs
mailing list