1 #include "pthread_impl.h" 2 pthread_attr_setscope(pthread_attr_t * a,int scope)3int pthread_attr_setscope(pthread_attr_t *a, int scope) 4 { 5 switch (scope) { 6 #ifdef __LITEOS_A__ 7 case PTHREAD_SCOPE_SYSTEM: 8 return ENOTSUP; 9 case PTHREAD_SCOPE_PROCESS: 10 return 0; 11 #else 12 case PTHREAD_SCOPE_SYSTEM: 13 return 0; 14 case PTHREAD_SCOPE_PROCESS: 15 return ENOTSUP; 16 #endif 17 default: 18 return EINVAL; 19 } 20 } 21