1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Avoid dup3 PLT usage.

Fixes fallout from 5aa3a74a59.
This commit is contained in:
Thomas Schwinge
2012-05-12 10:53:04 +08:00
parent 9fb1a21f4d
commit dc70356cbf
5 changed files with 17 additions and 9 deletions

View File

@ -89,9 +89,9 @@ freopen (filename, mode, fp)
else
newfd =
# endif
dup3 (_IO_fileno (result), fd,
(result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0
? O_CLOEXEC : 0);
__dup3 (_IO_fileno (result), fd,
(result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0
? O_CLOEXEC : 0);
#else
# define newfd 1
#endif