diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:12:42 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:12:42 +0100 |
commit | 78e132b31941842d70f91eecc2a42c182b8b7cb4 (patch) | |
tree | b8d37ca150ff723963019946d5ae8386a0e28207 | |
parent | Linux: statx syscall number is always available (diff) | |
download | glibc-78e132b31941842d70f91eecc2a42c182b8b7cb4.tar.gz glibc-78e132b31941842d70f91eecc2a42c182b8b7cb4.tar.bz2 glibc-78e132b31941842d70f91eecc2a42c182b8b7cb4.zip |
Linux: sched_setaffinity syscall number is always available
Due to the built-in tables, __NR_sched_setaffinity is always defined.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r-- | sysdeps/unix/sysv/linux/sched_setaffinity.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index bc0c42ce52..fc2c692783 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -24,8 +24,6 @@ #include <shlib-compat.h> -#ifdef __NR_sched_setaffinity - extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *); libc_hidden_proto (__sched_setaffinity_new) @@ -46,7 +44,7 @@ versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, GLIBC_2_3_4); -# if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) +#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) int attribute_compat_text_section __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) @@ -55,7 +53,4 @@ __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) return __sched_setaffinity_new (pid, 128, cpuset); } compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3); -# endif -#else -# include <posix/sched_setaffinity.c> #endif |