mescc: Tinycc support: fclose.
* mlibc/libc-mes+tcc.c (fclose): Implement.
This commit is contained in:
parent
7c233246d6
commit
63eded82e1
|
@ -98,15 +98,14 @@ execvp (char const *file, char *const argv[])
|
|||
int
|
||||
fclose (FILE *stream)
|
||||
{
|
||||
eputs ("fclose stub\n");
|
||||
return 0;
|
||||
int fd = (int)stream;
|
||||
return close (fd);
|
||||
}
|
||||
|
||||
FILE *
|
||||
fdopen (int fd, char const *mode)
|
||||
{
|
||||
eputs ("fdopen stub\n");
|
||||
return 0;
|
||||
return (FILE*)fd;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue