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/fpurge.c')
-rw-r--r--newlib/libc/stdio/fpurge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio/fpurge.c b/newlib/libc/stdio/fpurge.c
index dc052e85b..7e23bb7fd 100644
--- a/newlib/libc/stdio/fpurge.c
+++ b/newlib/libc/stdio/fpurge.c
@@ -68,13 +68,13 @@ _DEFUN(_fpurge_r, (ptr, fp),
CHECK_INIT (ptr, fp);
- _newlib_flockfile_start (fp);
+ _flockfile (fp);
t = fp->_flags;
if (!t)
{
ptr->_errno = EBADF;
- _newlib_flockfile_exit (fp);
+ _funlockfile (fp);
return EOF;
}
fp->_p = fp->_bf._base;
@@ -86,7 +86,7 @@ _DEFUN(_fpurge_r, (ptr, fp),
}
else
fp->_w = t & (__SLBF | __SNBF) ? 0 : fp->_bf._size;
- _newlib_flockfile_end (fp);
+ _funlockfile (fp);
return 0;
}