musl-tcc/src/thread/pthread_mutexattr_setpshared.c

10 lines
193 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#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;
}