diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sched_setaffinity.c | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 7d3376471f..7accd8c854 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-03-20 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/sched_getaffinity.c + (__sched_getaffinity_old): Fix interface. + * sysdeps/unix/sysv/linux/sched_setaffinity.c + (__sched_setaffinity_old): Likewise. + + * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>. + 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/kernel-features.h diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index 0e2d5b55e8..457dacd7b4 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -23,6 +23,7 @@ #include <unistd.h> #include <sys/types.h> #include <shlib-compat.h> +#include <alloca.h> #ifdef __NR_sched_setaffinity @@ -72,10 +73,10 @@ versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, # if SHLIB_COMPAT(libc, 2_3_3, 2_3_4) int attribute_compat_text_section -__sched_setaffinity_old (const pthread_attr_t *attr, const cpu_set_t *cpuset) +__sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) { /* The old interface by default assumed a 1024 processor bitmap. */ - return __sched_setaffinity_new (attr, 128, cpuset); + return __sched_setaffinity_new (pid, 128, cpuset); } compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3); # endif |