musl-tcc/src/thread/pthread_attr_setscope.c

14 lines
222 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#include "pthread_impl.h"
int pthread_attr_setscope(pthread_attr_t *a, int scope)
{
switch (scope) {
case PTHREAD_SCOPE_SYSTEM:
return 0;
case PTHREAD_SCOPE_PROCESS:
return ENOTSUP;
default:
return EINVAL;
}
}