diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libc-stdio.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libc-stdio.h b/src/libc-stdio.h index 7f09c74..9e4f72a 100644 --- a/src/libc-stdio.h +++ b/src/libc-stdio.h @@ -1,5 +1,7 @@ #pragma once +#include <wchar.h> + struct bionic___sFILE { #if defined(__LP64__) char __private[152]; @@ -43,6 +45,37 @@ bionic_fclose(FILE *stream) return fclose(bionic_file_to_glibc_file(stream)); } +int +bionic_fputc(int c, FILE *stream) +{ + return fputc(c, bionic_file_to_glibc_file(stream)); +} + +int +bionic_putc(int c, FILE *stream) +{ + return putc(c, bionic_file_to_glibc_file(stream)); +} + + +int +bionic_fputs(const char *c, FILE *stream) +{ + return fputs(c, bionic_file_to_glibc_file(stream)); +} + +wint_t +bionic_fputwc(wchar_t wc, FILE *stream) +{ + return fputwc(wc, bionic_file_to_glibc_file(stream)); +} + +wint_t +bionic_putwc(wchar_t wc, FILE *stream) +{ + return putwc(wc, bionic_file_to_glibc_file(stream)); +} + size_t bionic_fread(void *ptr, size_t size, size_t nmemb, FILE *stream) { |