6 -- Abuse tls.h macros to derive offsets relative to the thread register.
7 # undef __thread_register
8 # define __thread_register ((void *) 0)
9 # define thread_offsetof(mem) ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
12 #if TLS_MULTIPLE_THREADS_IN_TCB
13 MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
15 PID thread_offsetof (pid)
16 TID thread_offsetof (tid)