mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LibC: Implement __freadahead
This commit is contained in:
parent
9b543ddb16
commit
89ed0649f7
2 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue