mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Linux: sched_getaffinity syscall number is always available
Due to the built-in tables, __NR_sched_getaffinity is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <shlib-compat.h>
|
||||
|
||||
|
||||
#ifdef __NR_sched_getaffinity
|
||||
#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)
|
||||
extern int __sched_getaffinity_new (pid_t, size_t, cpu_set_t *);
|
||||
libc_hidden_proto (__sched_getaffinity_new)
|
||||
@@ -60,6 +59,3 @@ __sched_getaffinity_old (pid_t pid, cpu_set_t *cpuset)
|
||||
}
|
||||
compat_symbol (libc, __sched_getaffinity_old, sched_getaffinity, GLIBC_2_3_3);
|
||||
#endif
|
||||
#else
|
||||
# include <posix/sched_getaffinity.c>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user