summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-09 23:05:32 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-09 23:05:32 +0000
commit3c0c7475bf93e117be94f630589dfac19ce8c6a6 (patch)
tree60e36fda99290889c98d0a3362fca648abdfc614
parent26f5fc4241453871760a5df0905d92e6e4f09a39 (diff)
Get rid of hidden_def
-rw-r--r--include/libc-internal.h1
-rw-r--r--libpthread/linuxthreads.old/mutex.c30
2 files changed, 12 insertions, 19 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 26e06e636..307b0180f 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -140,7 +140,6 @@
#else
# define attribute_hidden
#endif
-#define hidden_def(name) extern __typeof (name) name attribute_hidden;
#ifndef __ASSEMBLER__
# define hidden_strong_alias(name, aliasname) _hidden_strong_alias(name, aliasname)
diff --git a/libpthread/linuxthreads.old/mutex.c b/libpthread/linuxthreads.old/mutex.c
index ca470cd75..9231d477c 100644
--- a/libpthread/linuxthreads.old/mutex.c
+++ b/libpthread/linuxthreads.old/mutex.c
@@ -24,7 +24,7 @@
#include "queue.h"
#include "restart.h"
-int __pthread_mutex_init(pthread_mutex_t * mutex,
+int pthread_mutex_init(pthread_mutex_t * mutex,
const pthread_mutexattr_t * mutex_attr)
{
__pthread_init_lock(&mutex->__m_lock);
@@ -34,10 +34,9 @@ int __pthread_mutex_init(pthread_mutex_t * mutex,
mutex->__m_owner = NULL;
return 0;
}
-strong_alias (__pthread_mutex_init, pthread_mutex_init)
-hidden_def (__pthread_mutex_init)
+hidden_strong_alias (pthread_mutex_init, __pthread_mutex_init)
-int __pthread_mutex_destroy(pthread_mutex_t * mutex)
+int pthread_mutex_destroy(pthread_mutex_t * mutex)
{
switch (mutex->__m_kind) {
case PTHREAD_MUTEX_ADAPTIVE_NP:
@@ -54,10 +53,9 @@ int __pthread_mutex_destroy(pthread_mutex_t * mutex)
return EINVAL;
}
}
-strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
-hidden_def (__pthread_mutex_destroy)
+hidden_strong_alias (pthread_mutex_destroy, __pthread_mutex_destroy)
-int __pthread_mutex_trylock(pthread_mutex_t * mutex)
+int pthread_mutex_trylock(pthread_mutex_t * mutex)
{
pthread_descr self;
int retcode;
@@ -91,10 +89,9 @@ int __pthread_mutex_trylock(pthread_mutex_t * mutex)
return EINVAL;
}
}
-strong_alias (__pthread_mutex_trylock, pthread_mutex_trylock)
-hidden_def (__pthread_mutex_trylock)
+hidden_strong_alias (pthread_mutex_trylock, __pthread_mutex_trylock)
-int __pthread_mutex_lock(pthread_mutex_t * mutex)
+int pthread_mutex_lock(pthread_mutex_t * mutex)
{
pthread_descr self;
@@ -125,10 +122,9 @@ int __pthread_mutex_lock(pthread_mutex_t * mutex)
return EINVAL;
}
}
-strong_alias (__pthread_mutex_lock, pthread_mutex_lock)
-hidden_def (__pthread_mutex_lock)
+hidden_strong_alias (pthread_mutex_lock, __pthread_mutex_lock)
-int __pthread_mutex_timedlock (pthread_mutex_t *mutex,
+int pthread_mutex_timedlock (pthread_mutex_t *mutex,
const struct timespec *abstime)
{
pthread_descr self;
@@ -170,10 +166,9 @@ int __pthread_mutex_timedlock (pthread_mutex_t *mutex,
return EINVAL;
}
}
-strong_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock)
-hidden_def (__pthread_mutex_timedlock)
+hidden_strong_alias (pthread_mutex_timedlock, __pthread_mutex_timedlock)
-int __pthread_mutex_unlock(pthread_mutex_t * mutex)
+int pthread_mutex_unlock(pthread_mutex_t * mutex)
{
switch (mutex->__m_kind) {
case PTHREAD_MUTEX_ADAPTIVE_NP:
@@ -202,8 +197,7 @@ int __pthread_mutex_unlock(pthread_mutex_t * mutex)
return EINVAL;
}
}
-strong_alias (__pthread_mutex_unlock, pthread_mutex_unlock)
-hidden_def (__pthread_mutex_unlock)
+hidden_strong_alias (pthread_mutex_unlock, __pthread_mutex_unlock)
int __pthread_mutexattr_init(pthread_mutexattr_t *attr)
{