3 #include <kernel-features.h>
5 RESULT offsetof (struct pthread, result)
6 TID offsetof (struct pthread, tid)
7 PID offsetof (struct pthread, pid)
8 CANCELHANDLING offsetof (struct pthread, cancelhandling)
9 CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
10 MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
11 TLS_PRE_TCB_SIZE sizeof (struct pthread)
12 MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
13 POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
14 #ifndef __ASSUME_PRIVATE_FUTEX
15 PRIVATE_FUTEX offsetof (struct pthread, header.private_futex)