| 749 | } |
| 750 | |
| 751 | static int pthread_setcanceltype(int type, int *oldtype) |
| 752 | { |
| 753 | pthread_t t = pthread_self(); |
| 754 | |
| 755 | if ((type & PTHREAD_CANCEL_ASYNCHRONOUS) != type) return EINVAL; |
| 756 | if (oldtype) *oldtype = t->p_state & PTHREAD_CANCEL_ASYNCHRONOUS; |
| 757 | t->p_state &= ~PTHREAD_CANCEL_ASYNCHRONOUS; |
| 758 | t->p_state |= type; |
| 759 | |
| 760 | return 0; |
| 761 | } |
| 762 | |
| 763 | static int pthread_create_wrapper(void *args) |
| 764 | { |
nothing calls this directly
no test coverage detected