1*c9945492SAndroid Build Coastguard Worker #include "pthread_impl.h" 2*c9945492SAndroid Build Coastguard Worker pthread_condattr_setpshared(pthread_condattr_t * a,int pshared)3*c9945492SAndroid Build Coastguard Workerint pthread_condattr_setpshared(pthread_condattr_t *a, int pshared) 4*c9945492SAndroid Build Coastguard Worker { 5*c9945492SAndroid Build Coastguard Worker if (pshared > 1U) return EINVAL; 6*c9945492SAndroid Build Coastguard Worker a->__attr &= 0x7fffffff; 7*c9945492SAndroid Build Coastguard Worker a->__attr |= (unsigned)pshared<<31; 8*c9945492SAndroid Build Coastguard Worker return 0; 9*c9945492SAndroid Build Coastguard Worker } 10