pthread_attr_setscope.c 222 B

12345678910111213
  1. #include "pthread_impl.h"
  2. int pthread_attr_setscope(pthread_attr_t *a, int scope)
  3. {
  4. switch (scope) {
  5. case PTHREAD_SCOPE_SYSTEM:
  6. return 0;
  7. case PTHREAD_SCOPE_PROCESS:
  8. return ENOTSUP;
  9. default:
  10. return EINVAL;
  11. }
  12. }