diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-06 13:55:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:28 -0400 |
commit | 10bbbbf5c63085b84d683c2d597ba482d6dd07d9 (patch) | |
tree | a8102ef6d0109f65cec6405ec76917675f5a359b /src/thread | |
parent | b5dbf4d424efdbe54daa939aae80d69c4244c023 (diff) | |
download | musl-10bbbbf5c63085b84d683c2d597ba482d6dd07d9.tar.gz musl-10bbbbf5c63085b84d683c2d597ba482d6dd07d9.tar.bz2 musl-10bbbbf5c63085b84d683c2d597ba482d6dd07d9.tar.xz musl-10bbbbf5c63085b84d683c2d597ba482d6dd07d9.zip |
make inadvertently exposed __pthread_{timed,try}join_np functions static
these exist for the sake of defining the corresponding weak public
aliases (for C11 and POSIX namespace conformance reasons). they are
not referenced by anything else in libc, so make them static.
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/pthread_join.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/pthread_join.c b/src/thread/pthread_join.c index 18264da6..551c3675 100644 --- a/src/thread/pthread_join.c +++ b/src/thread/pthread_join.c @@ -5,7 +5,7 @@ int __munmap(void *, size_t); void __pthread_testcancel(void); int __pthread_setcancelstate(int, int *); -int __pthread_timedjoin_np(pthread_t t, void **res, const struct timespec *at) +static int __pthread_timedjoin_np(pthread_t t, void **res, const struct timespec *at) { int state, cs, r = 0; __pthread_testcancel(); @@ -28,7 +28,7 @@ int __pthread_join(pthread_t t, void **res) return __pthread_timedjoin_np(t, res, 0); } -int __pthread_tryjoin_np(pthread_t t, void **res) +static int __pthread_tryjoin_np(pthread_t t, void **res) { return t->detach_state==DT_JOINABLE ? EBUSY : __pthread_join(t, res); } |