1
Fork 0
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:
Andreas Kling 2019-05-22 13:21:49 +02:00
parent f490ce0fb5
commit e388808479
4 changed files with 24 additions and 5 deletions

View file

@ -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();
}
}