mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -24,8 +24,6 @@
|
|||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef __NR_sched_setaffinity
|
|
||||||
|
|
||||||
extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *);
|
extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *);
|
||||||
libc_hidden_proto (__sched_setaffinity_new)
|
libc_hidden_proto (__sched_setaffinity_new)
|
||||||
|
|
||||||
@ -56,6 +54,3 @@ __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset)
|
|||||||
}
|
}
|
||||||
compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3);
|
compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3);
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
# include <posix/sched_setaffinity.c>
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user