1 2 3 4 5 6 7
#include <sysdep.h> #include <tls.h> PTHREAD_MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads) PTHREAD_PID_OFFSET offsetof (struct pthread, pid) PTHREAD_TID_OFFSET offsetof (struct pthread, tid) PTHREAD_SIZEOF sizeof (struct pthread)