musl/src/thread/pthread_attr_setscope.c
Rich Felker 63b06c0e90 reject invalid attribute settings
note that this is a pedantic conformance issue and waste of code. it
only affects broken code or code that is probing for conformance.
2011-03-07 15:46:37 -05:00

8 lines
130 B
C

#include "pthread_impl.h"
int pthread_attr_setscope(pthread_attr_t *a, int scope)
{
if (scope > 1U) return EINVAL;
return 0;
}