Consolidate pthread_atfork
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Jan 2021 17:06:56 +0000 (14:06 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Jun 2021 13:04:41 +0000 (10:04 -0300)
commit9f70985569888d68612012fcb538c47c154c1e8b
treede4f909d44053c366c19232307c4806a6a8cbffb
parentd0c40833862f5cfe4d03d9130d79c1d93f284af0
Consolidate pthread_atfork

The pthread_atfork is similar between Linux and Hurd, only the compat
version bits differs.  The generic version is place at sysdeps/pthread
with a common name.

It also fixes an issue with Hurd license, where the static-only object
did not use LGPL + exception.

Checked on x86_64-linux-gnu, i686-linux-gnu, and with a build for
i686-gnu.
htl/Makefile
nptl/Makefile
sysdeps/htl/old_pt-atfork.c [deleted file]
sysdeps/htl/pt-atfork.c [deleted file]
sysdeps/htl/pthread_atfork_compat.h [new file with mode: 0644]
sysdeps/nptl/pthread_atfork_compat.h [new file with mode: 0644]
sysdeps/pthread/Makefile
sysdeps/pthread/pthread_atfork.c [moved from nptl/pthread_atfork.c with 98% similarity]
sysdeps/pthread/pthread_atfork_compat.c [moved from nptl/old_pthread_atfork.c with 84% similarity]