]> sourceware.org Git - newlib-cygwin.git/commit
Fix re-initialization of FILE flags and mbstate in freopen
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Dec 2015 17:44:23 +0000 (18:44 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Dec 2015 17:44:23 +0000 (18:44 +0100)
commit414e7948118bb3b7071e7c8cbddcf371e0d48e38
treeb66300de097cb4c8e82f961f53dcf384dfa45e45
parent6c3a5d263f3cdfb6703434439bdc84c3a1e29159
Fix re-initialization of FILE flags and mbstate in freopen

        * libc/stdio/freopen.c (_freopen_r): Only reset __SWID bit per SUSv4.
        * libc/stdio64/freopen64.c (_freopen64_r): Add missing resetting of
        flag values and _mbstate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/ChangeLog
newlib/libc/stdio/freopen.c
newlib/libc/stdio64/freopen64.c
This page took 0.030766 seconds and 5 git commands to generate.