From 58e749e28269a5a05e02284a33cf61c95d7b667f Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 30 Jul 2018 15:54:41 +0300 Subject: stdio: Wrap fflush --- src/libc-stdio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libc-stdio.c b/src/libc-stdio.c index 713497b..34fe40d 100644 --- a/src/libc-stdio.c +++ b/src/libc-stdio.c @@ -28,6 +28,12 @@ bionic_file_to_glibc_file(FILE *f) return f; } +int +bionic_fflush(FILE *f) +{ + return fflush(bionic_file_to_glibc_file(f)); +} + // Wrapping internal glibc VTABLE functions to handle bionic's pre-M crap // We define __real_IO_file_xsputn in libc.c so linker will link our library, // it's not used however for anything. -- cgit v1.2.3