1 #include "pthread_impl.h" 2 pthread_mutexattr_setpshared(pthread_mutexattr_t * a,int pshared)3 int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared) 4 { 5 if (pshared > 1U) return EINVAL; 6 a->__attr &= ~128U; 7 a->__attr |= pshared<<7; 8 return 0; 9 } 10