diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-09 23:05:32 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-09 23:05:32 +0000 |
commit | 3c0c7475bf93e117be94f630589dfac19ce8c6a6 (patch) | |
tree | 60e36fda99290889c98d0a3362fca648abdfc614 /libpthread/linuxthreads.old/mutex.c | |
parent | 26f5fc4241453871760a5df0905d92e6e4f09a39 (diff) |
Get rid of hidden_def
Diffstat (limited to 'libpthread/linuxthreads.old/mutex.c')
-rw-r--r-- | libpthread/linuxthreads.old/mutex.c | 30 |
1 files changed, 12 insertions, 18 deletions
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) { |