mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
htl: Let libc call __pthread_mutex_{,try,un}lock
Now that NPTL was moved to libc, libc makes internal __pthread calls, so htl has to expose them internally.
This commit is contained in:
parent
9ed752af8d
commit
c27bcc9588
@ -187,6 +187,7 @@ libpthread {
|
||||
__pthread_enable_asynccancel;
|
||||
__pthread_disable_asynccancel;
|
||||
|
||||
__pthread_mutex_lock; __pthread_mutex_trylock; __pthread_mutex_unlock;
|
||||
_pthread_mutex_lock; _pthread_mutex_trylock; _pthread_mutex_unlock;
|
||||
_pthread_rwlock_destroy; _pthread_rwlock_init;
|
||||
}
|
||||
|
@ -36,10 +36,13 @@ extern struct __pthread **__pthread_threads;
|
||||
extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr);
|
||||
extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex);
|
||||
extern int __pthread_mutex_lock (pthread_mutex_t *__mutex);
|
||||
hidden_proto (__pthread_mutex_lock)
|
||||
extern int __pthread_mutex_trylock (pthread_mutex_t *_mutex);
|
||||
hidden_proto (__pthread_mutex_trylock)
|
||||
extern int __pthread_mutex_timedlock (pthread_mutex_t *__mutex,
|
||||
const struct timespec *__abstime);
|
||||
extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
|
||||
hidden_proto (__pthread_mutex_unlock)
|
||||
extern int __pthread_mutexattr_init (pthread_mutexattr_t *attr);
|
||||
extern int __pthread_mutexattr_settype (pthread_mutexattr_t *attr, int kind);
|
||||
|
||||
|
@ -76,5 +76,6 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
hidden_def (__pthread_mutex_lock)
|
||||
strong_alias (__pthread_mutex_lock, _pthread_mutex_lock)
|
||||
weak_alias (__pthread_mutex_lock, pthread_mutex_lock)
|
||||
|
@ -80,5 +80,6 @@ __pthread_mutex_trylock (pthread_mutex_t *mtxp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
hidden_def (__pthread_mutex_trylock)
|
||||
strong_alias (__pthread_mutex_trylock, _pthread_mutex_trylock)
|
||||
weak_alias (__pthread_mutex_trylock, pthread_mutex_trylock)
|
||||
|
@ -87,5 +87,6 @@ __pthread_mutex_unlock (pthread_mutex_t *mtxp)
|
||||
return ret;
|
||||
}
|
||||
|
||||
hidden_def (__pthread_mutex_unlock)
|
||||
strong_alias (__pthread_mutex_unlock, _pthread_mutex_unlock)
|
||||
weak_alias (__pthread_mutex_unlock, pthread_mutex_unlock)
|
||||
|
Loading…
Reference in New Issue
Block a user