mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibC: Implement __freadahead
This commit is contained in:
parent
9b543ddb16
commit
89ed0649f7
Notes:
sideshowbarker
2024-07-17 14:32:35 +09:00
Author: https://github.com/timschumi
Commit: 89ed0649f7
Pull-request: https://github.com/SerenityOS/serenity/pull/13333
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