diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 13:57:17 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:35 -0400 |
commit | 49722a8ed4c8fd056ac8aebd6bec9d998b700f80 (patch) | |
tree | 9c8655196727127bb9682a6548de33bec5179fad | |
parent | 7e399fabd3db2c528b5982803eeba2841f547695 (diff) | |
download | musl-49722a8ed4c8fd056ac8aebd6bec9d998b700f80.tar.gz musl-49722a8ed4c8fd056ac8aebd6bec9d998b700f80.tar.bz2 musl-49722a8ed4c8fd056ac8aebd6bec9d998b700f80.tar.xz musl-49722a8ed4c8fd056ac8aebd6bec9d998b700f80.zip |
move additional pthread internal declarations to pthread_impl.h, hide
these were overlooked for various reasons in earlier stages.
-rw-r--r-- | src/aio/aio_suspend.c | 2 | ||||
-rw-r--r-- | src/internal/pthread_impl.h | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/aio/aio_suspend.c b/src/aio/aio_suspend.c index 08fb5ddc..b269dd0f 100644 --- a/src/aio/aio_suspend.c +++ b/src/aio/aio_suspend.c @@ -5,8 +5,6 @@ #include "libc.h" #include "pthread_impl.h" -extern volatile int __aio_fut; - int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec *ts) { int i, tid = 0, ret, expect = 0; diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 8487d2b5..a89ef9ac 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -142,6 +142,18 @@ hidden int __init_tp(void *); hidden void *__copy_tls(unsigned char *); hidden void __reset_tls(); +hidden void __dl_thread_cleanup(void); +hidden void __fork_handler(int); +hidden void __testcancel(); +hidden void __do_cleanup_push(struct __ptcb *); +hidden void __do_cleanup_pop(struct __ptcb *); +hidden void __pthread_tsd_run_dtors(); + +extern hidden volatile int __block_new_threads; +extern hidden volatile size_t __pthread_tsd_size; +extern hidden void *__pthread_tsd_main[]; +extern hidden volatile int __aio_fut; + hidden int __clone(int (*)(void *), void *, int, void *, ...); hidden int __set_thread_area(void *); hidden int __libc_sigaction(int, const struct sigaction *, struct sigaction *); @@ -168,6 +180,9 @@ hidden void __acquire_ptc(void); hidden void __release_ptc(void); hidden void __inhibit_ptc(void); +extern hidden size_t __default_stacksize; +extern hidden size_t __default_guardsize; + #define DEFAULT_STACK_SIZE 81920 #define DEFAULT_GUARD_SIZE 4096 |