]> git.ipfire.org Git - thirdparty/glibc.git/commit
fork.h: replace with register-atfork.h
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 24 Mar 2021 20:27:34 +0000 (21:27 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 29 Mar 2021 19:41:09 +0000 (21:41 +0200)
commit64786a7090d104a2e4e2e225b1eff08951fe008a
tree9498fe2a6f2504910df83a3c68c1307f3fb9f2ce
parente4fda4631017e49d4ee5a2755db34289b6860fa4
fork.h: replace with register-atfork.h

UNREGISTER_ATFORK is now defined for all ports in register-atfork.h, so most
previous includes of fork.h actually only need register-atfork.h now, and
cxa_finalize.c does not need an ifdef UNREGISTER_ATFORK any more.

The nptl-specific fork generation counters can then go to pthreadP.h, and
fork.h be removed.

Checked on x86_64-linux-gnu and i686-gnu.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
12 files changed:
htl/forward.c
nptl/libc_pthread_init.c
nptl/nptl-init.c
nptl/pthreadP.h
nptl/pthread_atfork.c
stdlib/cxa_finalize.c
sysdeps/generic/fork.h [deleted file]
sysdeps/htl/fork.h [deleted file]
sysdeps/htl/pt-atfork.c
sysdeps/nptl/fork.c
sysdeps/nptl/fork.h [deleted file]
sysdeps/nptl/libc-lockP.h