LibC: Implement __freadahead

This commit is contained in:
Tim Schumacher 2021-11-07 17:19:16 +01:00 committed by Andreas Kling
commit 89ed0649f7
Notes: sideshowbarker 2024-07-17 14:32:35 +09:00
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);