1 #include <pthread.h> 2 3 #include <errno.h> 4 pthread_setcanceltype(int new,int * old)5 int pthread_setcanceltype(int new, int* old) { 6 if (new != PTHREAD_CANCEL_ENABLE && 7 new != PTHREAD_CANCEL_DISABLE) 8 return EINVAL; 9 return ENOSYS; 10 } 11