add new masked cancellation mode
[musl] / src / thread / pthread_setcancelstate.c
index 2268217..822a139 100644 (file)
@@ -2,7 +2,7 @@
 
 int __pthread_setcancelstate(int new, int *old)
 {
-       if (new > 1U) return EINVAL;
+       if (new > 2U) return EINVAL;
        if (!libc.has_thread_pointer) return ENOSYS;
        struct pthread *self = __pthread_self();
        if (old) *old = self->canceldisable;