pthread.h 782 B

12345678910111213141516171819202122232425
  1. struct __ptcb {
  2. long __jb[7];
  3. int __dummy;
  4. struct __ptcb *__next;
  5. void *__ptrs[3];
  6. };
  7. static inline void __pthread_register_cancel_2(struct __ptcb *__cb)
  8. {
  9. __asm__ __volatile__( "call __pthread_register_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
  10. }
  11. static inline void __pthread_unregister_cancel_2(struct __ptcb *__cb)
  12. {
  13. __asm__ __volatile__( "call __pthread_unregister_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
  14. }
  15. static inline void __pthread_unwind_next_2(struct __ptcb *__cb)
  16. {
  17. __asm__ __volatile__( "call __pthread_unwind_next" : : "a"(__cb) : "ecx", "edx", "memory" );
  18. }
  19. #define __pthread_register_cancel __pthread_register_cancel_2
  20. #define __pthread_unregister_cancel __pthread_unregister_cancel_2
  21. #define __pthread_unwind_next __pthread_unwind_next_2