mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 18:53:34 +08:00
* 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 <aj@suse.de> * 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.
This commit is contained in:
parent
e4871eb8db
commit
e3d4c585db
@ -1,3 +1,13 @@
|
||||
2004-03-20 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* 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 <kkojima@rr.iij4u.or.jp>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (CENABLE): Save
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user