summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-07-30 15:54:41 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-07-30 15:54:41 +0300
commit58e749e28269a5a05e02284a33cf61c95d7b667f (patch)
tree8f2d9bc341d6a0353e6a5cd3601e78b3e6e233f3 /src
parent2af136ce5a822e0b995bb8dd055092f842693d57 (diff)
stdio: Wrap fflush
Diffstat (limited to 'src')
-rw-r--r--src/libc-stdio.c6
1 files changed, 6 insertions, 0 deletions
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.