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
|
int
|
||||||
fclose (FILE *stream)
|
fclose (FILE *stream)
|
||||||
{
|
{
|
||||||
eputs ("fclose stub\n");
|
int fd = (int)stream;
|
||||||
return 0;
|
return close (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE *
|
FILE *
|
||||||
fdopen (int fd, char const *mode)
|
fdopen (int fd, char const *mode)
|
||||||
{
|
{
|
||||||
eputs ("fdopen stub\n");
|
return (FILE*)fd;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue