X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_setscope.c;h=46b520c0412c99a22d5e608ff4074a35301f4122;hb=52d4444f8eec1a4e7e0861859c705c3a558b4e2a;hp=a970a819b52d38472ae3e13b60a46a6d1251b761;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/thread/pthread_attr_setscope.c b/src/thread/pthread_attr_setscope.c index a970a819..46b520c0 100644 --- a/src/thread/pthread_attr_setscope.c +++ b/src/thread/pthread_attr_setscope.c @@ -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; + } }