1 --- a/libc/sysdeps/linux/common/sched_getaffinity.c
2 +++ b/libc/sysdeps/linux/common/sched_getaffinity.c
7 +#ifdef __NR_sched_getaffinity
8 libc_hidden_proto(memset)
10 #define __NR___syscall_sched_getaffinity __NR_sched_getaffinity
11 @@ -48,5 +49,15 @@ int sched_getaffinity(pid_t pid, size_t
17 +int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
19 + __set_errno(ENOSYS);
27 --- a/libc/sysdeps/linux/common/sched_setaffinity.c
28 +++ b/libc/sysdeps/linux/common/sched_setaffinity.c
30 #include <sys/types.h>
33 +#ifdef __NR_sched_setaffinity
34 libc_hidden_proto(getpid)
36 #define __NR___syscall_sched_setaffinity __NR_sched_setaffinity
37 @@ -74,5 +75,14 @@ int sched_setaffinity(pid_t pid, size_t
39 return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset);
43 +int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
45 + __set_errno(ENOSYS);