summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-05-12 10:53:04 +0800
committerThomas Schwinge <thomas@codesourcery.com>2012-05-12 10:53:04 +0800
commitdc70356cbfc649af8e39c9a8d509fefd766fa8ef (patch)
tree1183fe5797332d424dd803f36c1ebda53ebe7324 /io
parent9fb1a21f4d33c4c82719d6130e149eb2c5a51ae8 (diff)
downloadglibc-dc70356cbfc649af8e39c9a8d509fefd766fa8ef.tar.gz
Avoid dup3 PLT usage.
Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c.
Diffstat (limited to 'io')
-rw-r--r--io/dup3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/io/dup3.c b/io/dup3.c
index 90a3d60898..7e97bf733c 100644
--- a/io/dup3.c
+++ b/io/dup3.c
@@ -24,7 +24,7 @@
open the same file as FD is which setting flags according to
FLAGS. Return FD2 or -1. */
int
-dup3 (fd, fd2, flags)
+__dup3 (fd, fd2, flags)
int fd;
int fd2;
int flags;
@@ -42,7 +42,8 @@ dup3 (fd, fd2, flags)
__set_errno (ENOSYS);
return -1;
}
-libc_hidden_def (dup3)
+libc_hidden_def (__dup3)
+weak_alias (__dup3, dup3)
stub_warning (dup3)
#include <stub-tag.h>