Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/clearerr.c')
-rw-r--r--newlib/libc/stdio/clearerr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/clearerr.c b/newlib/libc/stdio/clearerr.c
index 861d9a211..6a1b0af3c 100644
--- a/newlib/libc/stdio/clearerr.c
+++ b/newlib/libc/stdio/clearerr.c
@@ -59,5 +59,7 @@ _VOID
_DEFUN (clearerr, (fp),
FILE * fp)
{
+ _flockfile(fp);
__sclearerr (fp);
+ _funlockfile(fp);
}