1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Move thrd_exit into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

The __pthread_exit@@GLIBC_PRIVATE symbol is no longer needed
after this change, so remove it.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-05-03 08:12:12 +02:00
parent ae4a5ca074
commit 96e61709b4
64 changed files with 78 additions and 33 deletions

View File

@ -16,10 +16,19 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#include <shlib-compat.h>
#include "thrd_priv.h"
_Noreturn void
thrd_exit (int res)
__thrd_exit (int res)
{
__pthread_exit ((void*)(uintptr_t) res);
}
#if PTHREAD_IN_LIBC
versioned_symbol (libc, __thrd_exit, thrd_exit, GLIBC_2_34);
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
compat_symbol (libpthread, __thrd_exit, thrd_exit, GLIBC_2_28);
# endif
#else /* !PTHREAD_IN_LIBC */
strong_alias (__thrd_exit, thrd_exit)
#endif