aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fputc.c')
-rw-r--r--newlib/libc/stdio/fputc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c
index 777a342..6af79d4 100644
--- a/newlib/libc/stdio/fputc.c
+++ b/newlib/libc/stdio/fputc.c
@@ -83,9 +83,9 @@ _DEFUN(_fputc_r, (ptr, ch, file),
{
int result;
CHECK_INIT(ptr, file);
- _flockfile (file);
+ _newlib_flockfile_start (file);
result = _putc_r (ptr, ch, file);
- _funlockfile (file);
+ _newlib_flockfile_end (file);
return result;
}
@@ -98,9 +98,9 @@ _DEFUN(fputc, (ch, file),
#if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED)
int result;
CHECK_INIT(_REENT, file);
- _flockfile (file);
+ _newlib_flockfile_start (file);
result = _putc_r (_REENT, ch, file);
- _funlockfile (file);
+ _newlib_flockfile_end (file);
return result;
#else
return _fputc_r (_REENT, ch, file);