From dc70356cbfc649af8e39c9a8d509fefd766fa8ef Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 12 May 2012 10:53:04 +0800 Subject: Avoid dup3 PLT usage. Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c. --- libio/freopen.c | 6 +++--- libio/freopen64.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'libio') diff --git a/libio/freopen.c b/libio/freopen.c index 025c55b655..fa89c277c6 100644 --- a/libio/freopen.c +++ b/libio/freopen.c @@ -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 diff --git a/libio/freopen64.c b/libio/freopen64.c index 24d0360625..c28a9925f0 100644 --- a/libio/freopen64.c +++ b/libio/freopen64.c @@ -73,9 +73,9 @@ freopen64 (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 -- cgit v1.2.3