From a1ee5b32fc698297149c770417354441ee62701e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 5 Feb 2010 19:26:24 +0100 Subject: pthread_{attr_,}{s,g}etaffinity: cleanup symbol names and hide __determine_cpumask_size. Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c') 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) -- cgit v1.2.3