diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-08 18:46:06 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:31 -0400 |
commit | 91c6a187b89cb1ea9afc6a963106fbccca218dde (patch) | |
tree | ac9bdd0d00994b9f5630ae107af8455208e352de /src | |
parent | f9db9eca40fdc78fae258b8e12eb689fc2d5e0e5 (diff) | |
download | musl-91c6a187b89cb1ea9afc6a963106fbccca218dde.tar.gz musl-91c6a187b89cb1ea9afc6a963106fbccca218dde.tar.bz2 musl-91c6a187b89cb1ea9afc6a963106fbccca218dde.tar.xz musl-91c6a187b89cb1ea9afc6a963106fbccca218dde.zip |
move declarations of tls setup/access functions to pthread_impl.h
it's already included in all places where these are needed, and aside
from __tls_get_addr, they're all implementation internals.
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/pthread_impl.h | 6 | ||||
-rw-r--r-- | src/thread/__tls_get_addr.c | 2 | ||||
-rw-r--r-- | src/thread/pthread_create.c | 2 | ||||
-rw-r--r-- | src/time/timer_create.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index d4d1dc61..3479bcf6 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -135,6 +135,12 @@ struct __timer { ((sigset_t *)(const unsigned long [_NSIG/8/sizeof(long)]){ \ 0x80000000 }) +void *__tls_get_addr(tls_mod_off_t *); +hidden void *__tls_get_new(tls_mod_off_t *); +int __init_tp(void *); +void *__copy_tls(unsigned char *); +void __reset_tls(); + int __clone(int (*)(void *), void *, int, void *, ...); int __set_thread_area(void *); int __libc_sigaction(int, const struct sigaction *, struct sigaction *); diff --git a/src/thread/__tls_get_addr.c b/src/thread/__tls_get_addr.c index 3bc60571..013817b4 100644 --- a/src/thread/__tls_get_addr.c +++ b/src/thread/__tls_get_addr.c @@ -2,8 +2,6 @@ #include "pthread_impl.h" #include "libc.h" -hidden void *__tls_get_new(tls_mod_off_t *); - void *__tls_get_addr(tls_mod_off_t *v) { pthread_t self = __pthread_self(); diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index 27ace2c6..dc869dc1 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -178,8 +178,6 @@ static void init_file_lock(FILE *f) if (f && f->lock<0) f->lock = 0; } -void *__copy_tls(unsigned char *); - int __pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp, void *(*entry)(void *), void *restrict arg) { int ret, c11 = (attrp == __ATTRP_C11_THREAD); diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 16432bec..ad7a2646 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -19,8 +19,6 @@ static void dummy_0() } weak_alias(dummy_0, __pthread_tsd_run_dtors); -void __reset_tls(); - static void cleanup_fromsig(void *p) { pthread_t self = __pthread_self(); |