1 typedef char *(*__ptr_func_t)(void) __attribute__((const));
3 #define __pthread_self() \
4 ((pthread_t)(((__ptr_func_t)0xffff0fe0)()+8-sizeof(struct pthread)))
7 #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) - 8)
9 #define CANCEL_REG_IP 18