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')
-rw-r--r--newlib/libc/stdio/fputwc.c7
-rw-r--r--newlib/libc/stdio/fputwc_u.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fputwc.c b/newlib/libc/stdio/fputwc.c
index 12a6170bb..e2aadefd5 100644
--- a/newlib/libc/stdio/fputwc.c
+++ b/newlib/libc/stdio/fputwc.c
@@ -181,5 +181,10 @@ fputwc (wchar_t wc,
struct _reent *reent = _REENT;
CHECK_INIT(reent, fp);
- return _fputwc_r (reent, wc, fp);
+ wint_t r;
+
+ _newlib_flockfile_start (fp);
+ r = __fputwc(reent, wc, fp);
+ _newlib_flockfile_end (fp);
+ return r;
}
diff --git a/newlib/libc/stdio/fputwc_u.c b/newlib/libc/stdio/fputwc_u.c
index 7e7403b99..f54bcf30f 100644
--- a/newlib/libc/stdio/fputwc_u.c
+++ b/newlib/libc/stdio/fputwc_u.c
@@ -44,5 +44,5 @@ fputwc_unlocked (wchar_t wc,
struct _reent *reent = _REENT;
CHECK_INIT(reent, fp);
- return _fputwc_unlocked_r (reent, wc, fp);
+ return __fputwc(reent, wc, fp);
}