]> sourceware.org Git - glibc.git/commitdiff
Hide internal __sched_setaffinity_new function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 01:03:46 +0000 (18:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 01:03:59 +0000 (18:03 -0700)
Hide internal __sched_setaffinity_new function to allow direct access
within libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* sysdeps/unix/sysv/linux/sched_setaffinity.c
(__sched_setaffinity_new): Add libc_hidden_proto and
libc_hidden_def.

ChangeLog
sysdeps/unix/sysv/linux/sched_setaffinity.c

index 5d417cb4eb8475ef50681a018d129481904f6959..567a258cc5088be8ec685802be1fc63247506acc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * sysdeps/unix/sysv/linux/sched_setaffinity.c
+       (__sched_setaffinity_new): Add libc_hidden_proto and
+       libc_hidden_def.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 8854e72c67f384f2699268e20a58f65ff65e3b13..9a40b581aed7790d9d9a099c3d85ead56a947350 100644 (file)
@@ -26,6 +26,9 @@
 
 #ifdef __NR_sched_setaffinity
 
+extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *);
+libc_hidden_proto (__sched_setaffinity_new)
+
 int
 __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
 {
@@ -38,6 +41,7 @@ __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
 
   return result;
 }
+libc_hidden_def (__sched_setaffinity_new)
 versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity,
                  GLIBC_2_3_4);
 
This page took 0.071144 seconds and 5 git commands to generate.