regex: treat \| in BRE as alternation
[musl.git] / src / thread / pthread_mutexattr_setpshared.c
blob100f6ff203f1b2ead3585b656db6d36c32b8beec
1 #include "pthread_impl.h"
3 int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
5 if (pshared > 1U) return EINVAL;
6 a->__attr &= ~128U;
7 a->__attr |= pshared<<7;
8 return 0;