From 76e97a9b08d6d6d086fc37597c3a4c6bc01535f1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 24 Jul 2017 20:08:38 +0200 Subject: [PATCH] mescc: Tinycc support: fopen stub. * mlibc/include/stdio.h (fopen): Declare. * mlibc/libc-mes+tcc.c (fopen): Add stub. --- mlibc/include/stdio.h | 1 + mlibc/libc-mes+tcc.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/mlibc/include/stdio.h b/mlibc/include/stdio.h index 882e69d0..fb7a0ecb 100644 --- a/mlibc/include/stdio.h +++ b/mlibc/include/stdio.h @@ -99,6 +99,7 @@ int eputs (char const* s); int fclose (FILE *stream); FILE *fdopen (int fd, char const *mode); int fflush (FILE *stream); + FILE *fopen (char const *pathname, char const *mode); int fprintf (FILE *stream, char const *format, ...); int fputc (int c, int fd); int fputs (char const* s, int fd); diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 19353555..e75dd77d 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -85,6 +85,12 @@ fflush (FILE *stream) return 0; } +FILE * +fopen (char const *pathname, char const *mode) +{ + return 0; +} + int fprintf (FILE *stream, char const *format, ...) {