about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2004-03-20 06:43:04 +0000
committerAndreas Jaeger <aj@suse.de>2004-03-20 06:43:04 +0000
commite4871eb8dbd76df2fa062120a029702551b2763e (patch)
tree5f3b976b4b0d9b7cb017a688458bb29e358491ba /sysdeps
parent770c415706f847b5e55019b014f0349c339a213c (diff)
downloadglibc-e4871eb8dbd76df2fa062120a029702551b2763e.tar.gz
glibc-e4871eb8dbd76df2fa062120a029702551b2763e.tar.xz
glibc-e4871eb8dbd76df2fa062120a029702551b2763e.zip
Update.
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>.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sched_setaffinity.c5
1 files changed, 3 insertions, 2 deletions
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