mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibC: Some compat fixes for GNU make.
This commit is contained in:
parent
f490ce0fb5
commit
e388808479
4 changed files with 24 additions and 5 deletions
|
@ -440,7 +440,8 @@ int fclose(FILE* stream)
|
|||
{
|
||||
fflush(stream);
|
||||
int rc = close(stream->fd);
|
||||
free(stream);
|
||||
if (stream != &__default_streams[0] && stream != &__default_streams[1] && stream != &__default_streams[2] && stream != &__default_streams[3])
|
||||
free(stream);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -510,6 +511,11 @@ int vfscanf(FILE* stream, const char* fmt, va_list ap)
|
|||
return vsscanf(buffer, fmt, ap);
|
||||
}
|
||||
|
||||
FILE* tmpfile()
|
||||
{
|
||||
dbgprintf("FIXME: Implement tmpfile()\n");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue