about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-01-15 14:36:09 +0100
committerAndreas Schwab <schwab@suse.de>2013-01-16 15:57:11 +0100
commitcfa8054fbb6212e64d54a3d4926972a6a20e3498 (patch)
treeb5412874124a4ee94b998480a919ae901d2db896 /misc
parentf93a8d15699ee699282465dc1e03e033f3fabb52 (diff)
downloadglibc-cfa8054fbb6212e64d54a3d4926972a6a20e3498.tar.gz
glibc-cfa8054fbb6212e64d54a3d4926972a6a20e3498.tar.xz
glibc-cfa8054fbb6212e64d54a3d4926972a6a20e3498.zip
Hide reference to mktemp in libpthread
Diffstat (limited to 'misc')
-rw-r--r--misc/Versions1
-rw-r--r--misc/mktemp.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/misc/Versions b/misc/Versions
index 64632f0bfa..ec5aea7b52 100644
--- a/misc/Versions
+++ b/misc/Versions
@@ -151,6 +151,7 @@ libc {
   }
   GLIBC_PRIVATE {
     __madvise;
+    __mktemp;
     __libc_ifunc_impl_list;
   }
 }
diff --git a/misc/mktemp.c b/misc/mktemp.c
index 9886c5d751..55421fd74a 100644
--- a/misc/mktemp.c
+++ b/misc/mktemp.c
@@ -22,7 +22,7 @@
    The last six characters of TEMPLATE must be "XXXXXX";
    they are replaced with a string that makes the filename unique.  */
 char *
-mktemp (template)
+__mktemp (template)
      char *template;
 {
   if (__gen_tempname (template, 0, 0, __GT_NOCREATE) < 0)
@@ -31,5 +31,6 @@ mktemp (template)
 
   return template;
 }
+weak_alias (__mktemp, mktemp)
 
 link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp'")