1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

LibC: Implement __freadahead

This commit is contained in:
Tim Schumacher 2021-11-07 17:19:16 +01:00 committed by Andreas Kling
parent 9b543ddb16
commit 89ed0649f7
2 changed files with 12 additions and 0 deletions

View file

@ -1328,6 +1328,17 @@ void __fpurge(FILE* stream)
stream->purge();
}
size_t __freadahead(FILE* stream)
{
VERIFY(stream);
ScopedFileLock lock(stream);
size_t available_size;
stream->readptr(available_size);
return available_size;
}
char const* __freadptr(FILE* stream, size_t* sizep)
{
VERIFY(stream);