Import http://code.metager.de/source/raw/android/4.3/bionic/libc/stdio/fflush.c
Bits for fflush
Define write() callback