diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-17 09:59:14 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-17 10:25:12 +0200 |
commit | 7b300ec7f9a5a271f2169aa6e924184a41b3a9a8 (patch) | |
tree | d13702e187c0e4ece4af31ed8cd1ed38baebbbfd /nptl/pthread_setaffinity.c | |
parent | c924e44acddc7b1e259da21ee101085006071cef (diff) | |
download | glibc-7b300ec7f9a5a271f2169aa6e924184a41b3a9a8.tar.gz glibc-7b300ec7f9a5a271f2169aa6e924184a41b3a9a8.tar.xz glibc-7b300ec7f9a5a271f2169aa6e924184a41b3a9a8.zip |
nptl: Move pthread_setaffinity_np into libc
The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_setaffinity.c')
-rw-r--r-- | nptl/pthread_setaffinity.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nptl/pthread_setaffinity.c b/nptl/pthread_setaffinity.c index e0226ea890..3bfdc63e19 100644 --- a/nptl/pthread_setaffinity.c +++ b/nptl/pthread_setaffinity.c @@ -37,11 +37,15 @@ __pthread_setaffinity_new (pthread_t th, size_t cpusetsize, ? INTERNAL_SYSCALL_ERRNO (res) : 0); } -versioned_symbol (libpthread, __pthread_setaffinity_new, - pthread_setaffinity_np, GLIBC_2_3_4); +versioned_symbol (libc, __pthread_setaffinity_new, + pthread_setaffinity_np, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_setaffinity_new, + pthread_setaffinity_np, GLIBC_2_3_4); +#endif -#if SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_3_4) +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_3_4) int __pthread_setaffinity_old (pthread_t th, cpu_set_t *cpuset) { |