aboutsummaryrefslogtreecommitdiff
path: root/libio/freopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/freopen.c')
-rw-r--r--libio/freopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/freopen.c b/libio/freopen.c
index 584b6e033d..a38313c334 100644
--- a/libio/freopen.c
+++ b/libio/freopen.c
@@ -47,7 +47,7 @@ freopen (filename, mode, fp)
_IO_flockfile (fp);
if (filename == NULL && _IO_fileno (fp) >= 0)
{
- fd = dup (_IO_fileno (fp));
+ fd = __dup (_IO_fileno (fp));
if (fd != -1)
filename = fd_to_filename (fd);
}
@@ -67,7 +67,7 @@ freopen (filename, mode, fp)
result->_mode = 0;
if (fd != -1)
{
- close (fd);
+ __close (fd);
if (filename != NULL)
free ((char *) filename);
}