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