about summary refs log tree commit diff
path: root/nptl/pthreadP.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-24 21:27:34 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-29 21:41:09 +0200
commit64786a7090d104a2e4e2e225b1eff08951fe008a (patch)
tree9498fe2a6f2504910df83a3c68c1307f3fb9f2ce /nptl/pthreadP.h
parente4fda4631017e49d4ee5a2755db34289b6860fa4 (diff)
downloadglibc-64786a7090d104a2e4e2e225b1eff08951fe008a.tar.gz
glibc-64786a7090d104a2e4e2e225b1eff08951fe008a.tar.xz
glibc-64786a7090d104a2e4e2e225b1eff08951fe008a.zip
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>
Diffstat (limited to 'nptl/pthreadP.h')
-rw-r--r--nptl/pthreadP.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index c8538de44f..2653e0f1b3 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -355,6 +355,12 @@ extern void __nptl_death_event (void);
 hidden_proto (__nptl_create_event)
 hidden_proto (__nptl_death_event)
 
+/* The fork generation counter, defined in libpthread.  */
+extern unsigned long int __fork_generation attribute_hidden;
+
+/* Pointer to the fork generation counter in the thread library.  */
+extern unsigned long int *__fork_generation_pointer attribute_hidden;
+
 /* Register the generation counter in the libpthread with the libc.  */
 #ifdef TLS_MULTIPLE_THREADS_IN_TCB
 extern void __libc_pthread_init (unsigned long int *ptr,