blob: 69f9deb368d4df781e283c8c4cd6ce6ac1317de4 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001#include <sysdep.h>
2#include <tls.h>
3
4RESULT offsetof (struct pthread, result)
5TID offsetof (struct pthread, tid)
6PID offsetof (struct pthread, pid)
7CANCELHANDLING offsetof (struct pthread, cancelhandling)
8CLEANUP_JMP_BUF offsetof (struct pthread, cleanup_jmp_buf)
9MULTIPLE_THREADS_OFFSET offsetof (tcbhead_t, multiple_threads)
10SYSINFO_OFFSET offsetof (tcbhead_t, sysinfo)
11CLEANUP offsetof (struct pthread, cleanup)
12CLEANUP_PREV offsetof (struct _pthread_cleanup_buffer, __prev)
13MUTEX_FUTEX offsetof (pthread_mutex_t, __data.__lock)
14POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
15#ifndef __ASSUME_PRIVATE_FUTEX
16PRIVATE_FUTEX offsetof (tcbhead_t, private_futex)
17#endif