mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Hide internal __sched_setaffinity_new function [BZ #18822]
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.
This commit is contained in:
parent
c0769f7031
commit
d0a4512bd4
@ -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]
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user