mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Cleanup namespace use.
This commit is contained in:
@ -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>
|
2011-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #12775]
|
[BZ #12775]
|
||||||
|
@ -102,7 +102,7 @@ freopen (filename, mode, fp)
|
|||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
__have_dup3 = -1;
|
__have_dup3 = -1;
|
||||||
|
|
||||||
dup2 (_IO_fileno (result), fd);
|
__dup2 (_IO_fileno (result), fd);
|
||||||
if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
|
if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
|
||||||
__fcntl (fd, F_SETFD, FD_CLOEXEC);
|
__fcntl (fd, F_SETFD, FD_CLOEXEC);
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ freopen64 (filename, mode, fp)
|
|||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
__have_dup3 = -1;
|
__have_dup3 = -1;
|
||||||
|
|
||||||
dup2 (_IO_fileno (result), fd);
|
__dup2 (_IO_fileno (result), fd);
|
||||||
if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
|
if ((result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0)
|
||||||
__fcntl (fd, F_SETFD, FD_CLOEXEC);
|
__fcntl (fd, F_SETFD, FD_CLOEXEC);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user