diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 15:12:05 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-04-19 15:12:05 +0300 |
commit | d194dfe969ca5fb5d405fad102b58c114ee83b9b (patch) | |
tree | c2b54066d9e0f2b9bdd5f6db539b3b79912f07d9 | |
parent | 729566b9db41a4425c26ee7fad8c5d1f48355f4c (diff) |
libc: Wrap more stdio funcs
-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) { |