]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Cleanup namespace use.
authorUlrich Drepper <drepper@gmail.com>
Fri, 20 May 2011 01:09:29 +0000 (21:09 -0400)
committerUlrich Drepper <drepper@gmail.com>
Fri, 20 May 2011 01:09:29 +0000 (21:09 -0400)
ChangeLog
libio/freopen.c
libio/freopen64.c

index c1bf490c1af28ee744d4f9fad006754698ef5cec..ada149527c11ef26466c210d3a2ab3baa05f50ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-19  Ulrich Drepper  <drepper@gmail.com>
+
+       * libio/freopen.c (freopen): Use __dup2, not dup2.
+       * libio/freopen64.c (freopen64): Likewise.
+
 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #12775]
index 20eda9d0f5e8d77da9a4c0c7d9c99cec33f32a0a..ee98b6e58016f33de5b8191b4cca51fe16a5ad59 100644 (file)
@@ -102,7 +102,7 @@ freopen (filename, mode, fp)
              if (errno == ENOSYS)
                __have_dup3 = -1;
 
-             dup2 (_IO_fileno (result), fd);
+             __dup2 (_IO_fileno (result), fd);
              if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
                __fcntl (fd, F_SETFD, FD_CLOEXEC);
            }
index 99045c64199ab6775a97f6e7247eb18a1762b75e..6c4a20f9a38f3151dba216c7a584b3ee6442404f 100644 (file)
@@ -86,7 +86,7 @@ freopen64 (filename, mode, fp)
              if (errno == ENOSYS)
                __have_dup3 = -1;
 
-             dup2 (_IO_fileno (result), fd);
+             __dup2 (_IO_fileno (result), fd);
              if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
                __fcntl (fd, F_SETFD, FD_CLOEXEC);
            }