summaryrefslogtreecommitdiff
path: root/pthreadP.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-19 00:16:48 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-19 00:16:48 +0200
commit8968cc85b696f305b8afe11c0a753ea1209f7abc (patch)
treeff19314b49a1741a245720c3739cfe50b5da4dfd /pthreadP.h
parent23412596845e219b242a763f333fa60954cad84b (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 'pthreadP.h')
-rw-r--r--pthreadP.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/pthreadP.h b/pthreadP.h
new file mode 100644
index 0000000..f1fd625
--- /dev/null
+++ b/pthreadP.h
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _PTHREADP_H
+#define _PTHREADP_H 1
+
+#include <pthread.h>
+
+extern pthread_t __pthread_self (void);
+extern int __pthread_kill (pthread_t threadid, int signo);
+
+#endif /* pthreadP.h */