X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_setscope.c;h=46b520c0412c99a22d5e608ff4074a35301f4122;hp=a970a819b52d38472ae3e13b60a46a6d1251b761;hb=ac562aa1ef4012f617583f474a8d8e5c972ed6ee;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 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; + } }