aboutsummaryrefslogtreecommitdiff
path: root/libio/freopen64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/freopen64.c')
-rw-r--r--libio/freopen64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/freopen64.c b/libio/freopen64.c
index 28cfb79df7..941eda0aa9 100644
--- a/libio/freopen64.c
+++ b/libio/freopen64.c
@@ -47,7 +47,7 @@ freopen64 (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);
}
@@ -57,7 +57,7 @@ freopen64 (filename, mode, fp)
result->_mode = 0;
if (fd != -1)
{
- close (fd);
+ __close (fd);
if (filename != NULL)
free ((char *) filename);
}