3 #include <kernel-features.h>
5 RESULT offsetof (struct pthread, result)
6 TID offsetof (struct pthread, tid)
7 CANCELHANDLING offsetof (struct pthread, cancelhandling)
8 CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
9 CLEANUP offsetof (struct pthread, cleanup)
10 CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
11 MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
12 MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
13 POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
14 VGETCPU_CACHE_OFFSET offsetof (tcbhead_t, vgetcpu_cache)
16 -- Not strictly offsets, but these values are also used in the TCB.
17 TCB_CANCELSTATE_BITMASK CANCELSTATE_BITMASK
18 TCB_CANCELTYPE_BITMASK CANCELTYPE_BITMASK
19 TCB_CANCELING_BITMASK CANCELING_BITMASK
20 TCB_CANCELED_BITMASK CANCELED_BITMASK
21 TCB_EXITING_BITMASK EXITING_BITMASK
22 TCB_CANCEL_RESTMASK CANCEL_RESTMASK
23 TCB_TERMINATED_BITMASK TERMINATED_BITMASK
24 TCB_PTHREAD_CANCELED PTHREAD_CANCELED