summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-05 19:26:24 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-05 19:26:24 +0100
commita1ee5b32fc698297149c770417354441ee62701e (patch)
treed3c556f6dbcfd26d6903fdb1ef935db33119d9a1 /libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c
parent8fc39ee8febd800372770cf1be012c03b6302e44 (diff)
pthread_{attr_,}{s,g}etaffinity: cleanup symbol names
and hide __determine_cpumask_size. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c b/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c
index fa7b48904..d28b6f2f3 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c
@@ -29,8 +29,9 @@ size_t __kernel_cpumask_size;
/* Determine the current affinity. As a side affect we learn
about the size of the cpumask_t in the kernel. */
-int
-__determine_cpumask_size (pid_t tid)
+extern int __determine_cpumask_size (pid_t tid);
+libpthread_hidden_proto(__determine_cpumask_size)
+int __determine_cpumask_size (pid_t tid)
{
INTERNAL_SYSCALL_DECL (err);
int res;
@@ -50,10 +51,10 @@ __determine_cpumask_size (pid_t tid)
return 0;
}
-
+libpthread_hidden_def(__determine_cpumask_size)
int
-__pthread_setaffinity_new (pthread_t th, size_t cpusetsize,
+pthread_setaffinity_np (pthread_t th, size_t cpusetsize,
const cpu_set_t *cpuset)
{
const struct pthread *pd = (const struct pthread *) th;
@@ -83,4 +84,3 @@ __pthread_setaffinity_new (pthread_t th, size_t cpusetsize,
? INTERNAL_SYSCALL_ERRNO (res, err)
: 0);
}
-weak_alias(__pthread_setaffinity_new, pthread_setaffinity_np)