2003-03-12 20:03:07 +00:00
|
|
|
#include <sysdep.h>
|
|
|
|
#include <tls.h>
|
2014-06-20 23:24:00 +00:00
|
|
|
#include <kernel-features.h>
|
2003-03-12 20:03:07 +00:00
|
|
|
|
2003-06-08 05:28:14 +00:00
|
|
|
RESULT offsetof (struct pthread, result)
|
2003-06-05 19:31:57 +00:00
|
|
|
TID offsetof (struct pthread, tid)
|
2003-06-08 05:28:14 +00:00
|
|
|
CANCELHANDLING offsetof (struct pthread, cancelhandling)
|
|
|
|
CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
|
2003-03-12 20:03:07 +00:00
|
|
|
CLEANUP offsetof (struct pthread, cleanup)
|
|
|
|
CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
|
2003-05-26 02:47:39 +00:00
|
|
|
MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
|
2003-06-17 08:58:31 +00:00
|
|
|
MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
|
2005-12-18 06:58:22 +00:00
|
|
|
POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
|
2007-04-26 04:50:57 +00:00
|
|
|
VGETCPU_CACHE_OFFSET offsetof (tcbhead_t, vgetcpu_cache)
|
2007-05-23 20:51:45 +00:00
|
|
|
#ifndef __ASSUME_PRIVATE_FUTEX
|
|
|
|
PRIVATE_FUTEX offsetof (tcbhead_t, private_futex)
|
|
|
|
#endif
|
2009-08-04 18:03:46 +00:00
|
|
|
|
|
|
|
-- Not strictly offsets, but these values are also used in the TCB.
|
|
|
|
TCB_CANCELSTATE_BITMASK CANCELSTATE_BITMASK
|
|
|
|
TCB_CANCELTYPE_BITMASK CANCELTYPE_BITMASK
|
|
|
|
TCB_CANCELING_BITMASK CANCELING_BITMASK
|
|
|
|
TCB_CANCELED_BITMASK CANCELED_BITMASK
|
|
|
|
TCB_EXITING_BITMASK EXITING_BITMASK
|
|
|
|
TCB_CANCEL_RESTMASK CANCEL_RESTMASK
|
|
|
|
TCB_TERMINATED_BITMASK TERMINATED_BITMASK
|
|
|
|
TCB_PTHREAD_CANCELED PTHREAD_CANCELED
|