diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-24 23:09:59 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-24 23:09:59 +0200 |
commit | f881f17267506f3ced17259a066a4d95bffb57f0 (patch) | |
tree | 8fd2dd37c928033b6cc6fff7835575899b39b1e5 /sysdeps/mach/bits | |
parent | 4c9332bfdc9ccd793b6ded3168602195913cedb3 (diff) |
Fix symbols exposed in linkspace
Libc uses some thread functions, but should not expose the corresponding
symbols, so use aliases.
* Versions (__cthread_detach, __cthread_fork, __cthread_keycreate,
__cthread_getspecific, __cthread_setspecific, __pthread_getattr_np,
__pthread_attr_getstack): Add symbols
* pthread/cthreads-compat.c (cthread_t, cthread_fn_t, cthread_key_t): Do
not define.
(cthread_detach): Rename to __cthread_detach.
(cthread_detach): Define as weak alias to __cthread_detach.
(cthread_fork, cthread_keycreate, cthread_getspecific,
cthread_setspecific): Likewise.
* pthread/pt-getattr.c (pthread_getattr_np): Likewise.
* sysdeps/generic/pt-attr-getstack.c (pthread_attr_getstack): Likewise.
* sysdeps/pthread/pthread.h (__cthread_t, __cthread_key_t,
__cthread_fn_t, __cthread_fork, __cthread_detach, __cthread_keycreate,
__cthread_getspecific, __cthread_setspecific, __pthread_getattr_np,
__pthread_attr_getstack): Declare.
Diffstat (limited to 'sysdeps/mach/bits')
0 files changed, 0 insertions, 0 deletions