LibC: Implement __fseterr

This commit is contained in:
Tim Schumacher 2021-05-26 12:34:05 +02:00 committed by Andreas Kling
commit 3237efc661
Notes: sideshowbarker 2024-07-17 14:32:27 +09:00
3 changed files with 8 additions and 0 deletions

View file

@ -1369,6 +1369,12 @@ void __freadptrinc(FILE* stream, size_t increment)
stream->readptr_increase(increment);
}
void __fseterr(FILE* stream)
{
ScopedFileLock lock(stream);
stream->set_err();
}
}
template bool FILE::gets<u8>(u8*, size_t);