From e3d4c585dbc8a5df85d3ed75ae1c9da034525d93 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 20 Mar 2004 07:39:03 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__pthread_setaffinity_old): Fix interface. * sysdeps/unix/sysv/linux/pthread_getaffinity.c (__pthread_getaffinity_old): Likewise. * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__pthread_setaffinity_new): Remove duplicate declaration. 2004-03-20 Andreas Jaeger * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__pthread_setaffinity_old): Fix interface. * sysdeps/unix/sysv/linux/pthread_getaffinity.c (__pthread_getaffinity_old): Likewise. * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__pthread_setaffinity_new): Remove duplicate declaration. --- nptl/ChangeLog | 10 ++++++++++ nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c | 4 ++-- nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c | 5 ++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index e0d09d5a1e..efea03e6a2 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,13 @@ +2004-03-20 Andreas Jaeger + + * sysdeps/unix/sysv/linux/pthread_setaffinity.c + (__pthread_setaffinity_old): Fix interface. + * sysdeps/unix/sysv/linux/pthread_getaffinity.c + (__pthread_getaffinity_old): Likewise. + + * sysdeps/unix/sysv/linux/pthread_setaffinity.c + (__pthread_setaffinity_new): Remove duplicate declaration. + 2004-03-20 Kaz Kojima * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c index c6cf9d71e4..8d3f353ed7 100644 --- a/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c +++ b/nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c @@ -50,10 +50,10 @@ versioned_symbol (libpthread, __pthread_getaffinity_new, #if SHLIB_COMPAT(libpthread, 2_3_3, 2_3_4) int -__pthread_getaffinity_old (const pthread_attr_t *attr, cpu_set_t *cpuset) +__pthread_getaffinity_old (pthread_t th, cpu_set_t *cpuset) { /* The old interface by default assumed a 1024 processor bitmap. */ - return __pthread_getaffinity_new (attr, 128, cpuset); + return __pthread_getaffinity_new (th, 128, cpuset); } compat_symbol (libpthread, __pthread_getaffinity_old, pthread_getaffinity_np, GLIBC_2_3_3); diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c b/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c index 9a73d2c3cb..d436b08466 100644 --- a/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c +++ b/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c @@ -77,7 +77,6 @@ __pthread_setaffinity_new (pthread_t th, size_t cpusetsize, fulfilled. */ return EINVAL; - INTERNAL_SYSCALL_DECL (err); res = INTERNAL_SYSCALL (sched_setaffinity, err, 3, pd->tid, cpusetsize, cpuset); return (INTERNAL_SYSCALL_ERROR_P (res, err) @@ -90,10 +89,10 @@ versioned_symbol (libpthread, __pthread_setaffinity_new, #if SHLIB_COMPAT(libpthread, 2_3_3, 2_3_4) int -__pthread_setaffinity_old (const pthread_attr_t *attr, cpu_set_t *cpuset) +__pthread_setaffinity_old (pthread_t th, cpu_set_t *cpuset) { /* The old interface by default assumed a 1024 processor bitmap. */ - return __pthread_setaffinity_new (attr, 128, cpuset); + return __pthread_setaffinity_new (th, 128, cpuset); } compat_symbol (libpthread, __pthread_setaffinity_old, pthread_setaffinity_np, GLIBC_2_3_3);