mescc: Tinycc support: fdopen stub.

* mlibc/include/stdio.h (fdopen): Declare.
* mlibc/libc-mes+tcc.c (fdopen): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 17:23:32 +02:00
parent 3e39c56f35
commit b479d200b3
2 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,7 @@ typedef unsigned long size_t;
#endif
int eputs (char const* s);
FILE *fdopen (int fd, char const *mode);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);

View File

@ -54,6 +54,11 @@ unlink (char const *file_name)
FILE *
fdopen (int fd, char const *mode)
{
return 0;
}
int
fprintf (FILE *stream, char const *format, ...)