fix powerpc sigsetjmp asm to match the new jmp_buf size/offsets
[musl] / src / thread / pthread_attr_setscope.c
index a970a81..46b520c 100644 (file)
@@ -2,5 +2,12 @@
 
 int pthread_attr_setscope(pthread_attr_t *a, int scope)
 {
-       return 0;
+       switch (scope) {
+       case PTHREAD_SCOPE_SYSTEM:
+               return 0;
+       case PTHREAD_SCOPE_PROCESS:
+               return ENOTSUP;
+       default:
+               return EINVAL;
+       }
 }