10 lines
193 B
C
10 lines
193 B
C
|
#include "pthread_impl.h"
|
||
|
|
||
|
int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
|
||
|
{
|
||
|
if (pshared > 1U) return EINVAL;
|
||
|
a->__attr &= ~128U;
|
||
|
a->__attr |= pshared<<7;
|
||
|
return 0;
|
||
|
}
|