pthread_setcancelstate
int pthread_setcancelstate(int, int *);
PROTO_NORMAL(pthread_setcancelstate);
DEF_STD(pthread_setcancelstate);
if ((rc = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_state)))
rc = pthread_setcancelstate(old_state, NULL);
CHECKr(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL));
CHECKr(pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL));