diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-05-26 12:34:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-03 19:15:14 +0200 |
commit | 3237efc661a2304eef12a86c2f581a26c1c440c2 (patch) | |
tree | 61d41122f3ba1f1a57d6c7583b033a1106909961 /Userland/Libraries/LibC/stdio.cpp | |
parent | 4f706d819af572f44a184d5f6e6b6bdae167c5ed (diff) | |
download | serenity-3237efc661a2304eef12a86c2f581a26c1c440c2.zip |
LibC: Implement __fseterr
Diffstat (limited to 'Userland/Libraries/LibC/stdio.cpp')
-rw-r--r-- | Userland/Libraries/LibC/stdio.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/stdio.cpp b/Userland/Libraries/LibC/stdio.cpp index e7306f9008..dd265a2275 100644 --- a/Userland/Libraries/LibC/stdio.cpp +++ b/Userland/Libraries/LibC/stdio.cpp @@ -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); |