diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-19 00:16:48 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-19 00:16:48 +0200 |
commit | 8968cc85b696f305b8afe11c0a753ea1209f7abc (patch) | |
tree | ff19314b49a1741a245720c3739cfe50b5da4dfd /sysdeps/hurd/pt-kill.c | |
parent | 23412596845e219b242a763f333fa60954cad84b (diff) |
Fix pthread_kill and pthread_self visibility from raise
* pthreadP.h: New file.
* sysdeps/generic/pt-kill.c (pthread_kill): Rename to __pthread_kill.
pthread_kill: New strong alias.
* sysdeps/hurd/pt-kill.c: Likewise.
* sysdeps/generic/raise.c: Include <pthreadP.h> instead of <pthread.h>.
Make __pthread_kill and __pthread_self weak.
(raise): Use __pthread_kill and __pthread_self instead of pthread_kill
and pthread_self.
Diffstat (limited to 'sysdeps/hurd/pt-kill.c')
-rw-r--r-- | sysdeps/hurd/pt-kill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/hurd/pt-kill.c b/sysdeps/hurd/pt-kill.c index 49dfd7d..6aaf241 100644 --- a/sysdeps/hurd/pt-kill.c +++ b/sysdeps/hurd/pt-kill.c @@ -25,7 +25,7 @@ #include <pt-internal.h> int -pthread_kill (pthread_t thread, int sig) +__pthread_kill (pthread_t thread, int sig) { struct __pthread *pthread; struct hurd_signal_detail detail; @@ -49,3 +49,4 @@ pthread_kill (pthread_t thread, int sig) __spin_lock (&ss->lock); return _hurd_raise_signal (ss, sig, &detail); } +strong_alias (__pthread_kill, pthread_kill) |