summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fwrite.c')
-rw-r--r--newlib/libc/stdio/fwrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio/fwrite.c b/newlib/libc/stdio/fwrite.c
index ce77c8dc1..dc218050e 100644
--- a/newlib/libc/stdio/fwrite.c
+++ b/newlib/libc/stdio/fwrite.c
@@ -119,14 +119,14 @@ _DEFUN(_fwrite_r, (ptr, buf, size, count, fp),
CHECK_INIT(ptr, fp);
- _flockfile (fp);
+ _newlib_flockfile_start (fp);
ORIENT (fp, -1);
if (__sfvwrite_r (ptr, fp, &uio) == 0)
{
- _funlockfile (fp);
+ _newlib_flockfile_exit (fp);
return count;
}
- _funlockfile (fp);
+ _newlib_flockfile_end (fp);
return (n - uio.uio_resid) / size;
}